An agent using our MCP server ran a small script and got this back:
TypeScript conversion failed (InvalidSyntax)
It decided our tool couldn't handle escaped double quotes. So it switched to single quotes, ran the script again, and gave its user an answer. Nobody at Oodle knew any of this had happened.
A person would have pinged us on Slack. The agent just moved on.
Except this time, it left us a note. The note blamed the wrong thing: escaped quotes work fine, and the real problem was a quote escaped twice. But the agent was right that something was broken. Our error had no line number, no column and no reason, so the agent had to guess. We fixed the error message a few hours after we read the report.
In this post, I walk through:
- Why agents need their own way to report problems.
- The four small things we added to Oodle's MCP server.
- What agents told us, and when they got it wrong.
- The daily agent that turns those reports into pull requests.
Agents don't file tickets
Kiran recently wrote that 93% of queries in our US production region now come from agents, through MCP from Claude, Codex and Slack. Our main user is no longer a person.
Every way we had to hear from users assumed a person on the other end: support chat, Slack, customer calls. When one of our tools fails, an agent retries, tries another tool, or tells its user "I couldn't find that." The user gets a weaker answer, and we never hear about it.

Our telemetry told us which tools were called, how long they took and which ones threw errors. It couldn't tell us when a tool returned the wrong answer with a 200, when a tool description confused the agent, when a tool was missing, or why the agent made the call in the first place.
We borrowed the idea
I was making slides for a Rootconf talk when I came across two posts.
Teddy Riker wrote in Designing for Agents that when Ramp launched its MCP server, "observability was our largest problem". Ramp asks for a rationale on every tool call and gives agents a feedback tool. He also found agents "more specific and more consistent in their feedback than most humans you'd ever ship to."
Jon Eide Johnsen wrote in How to get product feedback from agents about Sanity's give_feedback tool and an optional intent argument, which agents fill in on 88% of tool calls.
It was simple enough that I put the slides away and opened a pull request.
Step 1: Give agents a way to complain
We added two tools. report_bug is for things that broke: an error the agent didn't cause, a wrong or confusing result, or a description that led it to call a tool the wrong way. request_feature is for things that are missing. We kept them apart because a bug needs a fix, while a feature request needs someone to decide if it's worth building.
Here is what report_bug asks for:
| Field | Required | What the agent writes |
|---|---|---|
tool_ | yes | The exact tool, or none |
summary | yes | The bug in one sentence |
goal | yes | What the user asked for, and the step it was on |
actual | yes | What happened, with the error text copied exactly |
expected | no | What it expected |
arguments | no | The exact JSON of the call that failed |
workaround | no | What it did instead |
category | no | error, wrong_, confusing_, bad_, slow or other |
severity | no | blocked, workaround or minor |
A few things we learned while designing it:
- Keep required fields few. Every required field is one more reason for the agent to skip the report.
- Never reject a report. If the agent sends a category we don't know, we store it as
other. An agent whose report fails validation rarely tries again. - Keep the description short. The tool list goes to the model on every turn, so every extra word costs tokens on every call.
- Reply right away. The tool answers "Do not wait for a reply: continue the task," and the agent goes back to its user.
Step 2: Tell agents when to use it
An agent won't call a feedback tool unless something tells it when. Like Sanity, we mention it in three places:
- The tool description.
- The server instructions, which MCP sends at the start of every session: "If you hit problems with these tools (errors, wrong or confusing output, unclear descriptions), report them with report_bug. If no tool can do a step of the task, tell us with request_feature. Then continue the task."
- The error message. When a call fails in a way we didn't expect, like a 5xx or a timeout, the error ends with "If this error seems like a bug or blocks your progress, report it with report_bug."
We don't add that last line when the agent passed a bad argument. It fixes those on its next call, and we don't want a report for each one.
Step 3: Ask why, not just what
MCP gives the server the tool call, but not the conversation around it. So every data tool now takes an optional intent: "Why you call this: the user's goal."
A bare call to query_logs_with_filters tells us little. The same call with "find why a deploy broke checkout" tells us what people are trying to do. When many intents point at the same goal and no tool serves it well, we know what to build next.
Step 4: Put the report inside the trace
We trace every MCP request. Each tool call is a span with the client name (codex-mcp-client, opencode, Cursor), the arguments and the start of the result. When an agent calls report_bug, the report is written onto that span. So the report sits in the same trace as the calls that led to it.

Here is a trimmed version with the Python MCP SDK and OpenTelemetry:
import uuid
from mcp.server.fastmcp import FastMCP
from opentelemetry import trace
mcp = FastMCP("my-server", instructions=(
"If you hit problems with these tools (errors, wrong or confusing "
"output, unclear descriptions), report them with report_bug. "
"Then continue the task."
))
SEVERITIES = {"blocked", "workaround", "minor"}
@mcp.tool()
def report_bug(tool_name: str, summary: str, goal: str, actual: str,
expected: str = "", arguments: str = "",
workaround: str = "", severity: str = "workaround") -> dict:
"""Tell the engineers about a bug in a tool: an error you did not
cause, a wrong or confusing result, or a description that made you
call a tool incorrectly. Not for your own argument mistakes.
Returns at once."""
if severity not in SEVERITIES:
severity = "workaround" # never reject a report
report_id = uuid.uuid4().hex
span = trace.get_current_span()
for key, value in {
"id": report_id, "kind": "bug", "tool_name": tool_name,
"summary": summary, "goal": goal, "actual": actual,
"expected": expected, "arguments": arguments,
"workaround": workaround, "severity": severity,
}.items():
if value:
span.set_attribute(f"feedback.{key}", value)
return {"report_id": report_id,
"message": "Thank you. Do not wait for a reply: continue the task."}
What our dashboards never showed us
Reports started coming in within days. A few of them:
| What the agent reported | What was really wrong |
|---|---|
| "TypeScript conversion failed", so it blamed escaped quotes | Our syntax error gave no position. Now it gives the line, column and reason. |
A log query with size: 300 failed with "Result size limit exceeded" | Code mode rejected any result over 128 KiB, so the agent lost every call in its script, including one that had run for about 500 seconds. |
| Couldn't find the ID of a Slack notifier to route two monitors | No tool listed notifiers. |
find_ with ^quality_ returned unrelated metrics | We split terms on _, so the pattern became .*.*.* and matched every metric. |
A skill told it to use web_, which didn't exist over MCP | The skill was shared with our in-product agent, which had the tool. MCP never registered it. |
None of these would have fired an alert. Many were about words, not code: a vague error, a skill that pointed at a missing tool. When a person gets a vague error, they ask someone. An agent guesses and keeps going.
Feature requests were just as useful. A customer's Codex agent, checking dashboards after a migration, asked for one tool that runs every panel on a dashboard and lists the broken ones. It sent a name, the inputs, the outputs and the workaround it was using. The pull request was up the same day.
Agents get it wrong too
Agent reports are tidy. They copy the error text exactly, include the arguments, and say what they did instead. But a report is still the agent's memory of what happened.
One report said a query_string search over 6 hours returned 0 rows, while the same filter written another way returned 2,310. When we opened the traces, there was no 6-hour call. The 0-row call was over 1 hour. The agent had mixed up two of its own calls.

This is where Step 4 pays off. With the report and the calls in one trace, it took minutes to see what really ran.
Step 5: Let an agent read the reports
For the first couple of weeks, I read every report myself. Then I handed that job to an agent. It runs once a day against our MCP servers in all three regions, and this is its whole prompt (D-9267 is our parent ticket in Linear):
Find reported bugs in traces using filter `span::oodle.feedback.kind = bug` in last 24 hours.
For each reported bug, file a sub-issue under D-9267 linear ticket and raise a PR for it in oodle repo
Similarly, use filter `span::oodle.feedback.kind = feature` in last 24 hours, and do similar work for each feature request.
From those three lines, each run:
- Finds the spans that carry a report.
- Reads the report and the failed call from the same trace.
- Looks in Linear for the same bug. Agents report it again until the fix ships, so it adds to the old ticket instead of filing a new one.
- Reproduces the problem with the same MCP tools.
- Files a ticket with the root cause, or closes it as not a bug, like the
query_stringreport. - Opens a pull request with a fix and tests, and asks me to review it.

I still review and merge every PR, because some fixes touch access rules or product choices. But finding the root cause and writing a tested fix now happens while I work on other things.
In the first six weeks, agent reports turned into 25 tickets and 27 fix PRs, and 15 of those are merged. The remaining PRs are bottlenecked on me 🤦.
Parting thoughts
Agents don't complain when something breaks. They work around it, and you pay later in slower answers, wasted tokens and users who trust you a little less. If you run an MCP server, here is the short version:
- Add a
report_bugtool with few required fields, and never reject a report. - Mention it in the tool description, the server instructions and your unexpected errors.
- Ask for an optional
intenton the tools that matter. - Trace every tool call, and write each report onto its span.
- Read the reports every day, then hand that job to an agent and keep the merge button.
If you do only one of these, do the tracing. It shows you how agents really use your tools, even before they report anything.
To see what agents can do with your production data, connect Oodle's MCP server to Claude, Codex or Cursor, or read about agent-driven debugging. If you build agents of your own, Oodle Agent Observability keeps every trace, so you can always check a report against what really ran.





