Skip to content
View original post on X: Serge
Published

Sentry adds an MCP tool for AI agents to submit feedback

AISerge explains that Sentry’s MCP now includes `submit_feedback_to_sentry_team`, a tool for AI agents to report gaps and problems without asking end users. He describes prompting agents to use feedback tools through error messages and tool descriptions, and says an automation created 9 PRs over 3 days, 2 of which were merged.
SergeVerified on X
@sergical
View on X

first article, yay https://x.com/i/article/2120940190839775232

Your agent is our customer

TLDR: We gave your agent a way to tell us what sucks about the Sentry MCP.

Feedback comes in different shapes. You can extrapolate it from how your customers are using (or not using) your product. You can ask for it directly via annoying popups, banners and emails, but user attention is getting shorter and shorter, and getting in touch with users is becoming harder and harder.

Certain types of feedback, I'd argue, is the kind you don't have to ask for: something broke in your app.

Sentry's got you covered on that one with error monitoring. You get informed that something broke and you ask your agent to go and fix it.

But what if it's not an error? And what if it's not a person using your application anymore? We have all seen the perpetual decline in UI usage and a very rapid increase in agents becoming users of your software through APIs, CLIs and MCPs.

For people, we have a way. On every single page of our docs and throughout our app you will see a version of this:

When someone clicks "No" we have a text field that a person can fill out and it ends up in Sentry as an Issue, just with different metadata and context.

Some feedback ends up being quite actionable, and we put together a way to go from feedback to feature without too much human-in-the-loop involvement.

But as I said, people aren't looking at your docs or apps anymore. Well, not as much, and definitely not enough to leave feedback consistently.

Yet agents are WebFetching, calling MCP tools and trying to put pieces together from tool definitions, skills and system prompts into something valuable for you.

And sometimes, more than you'd think, they aren't holding the thing correctly. Tool calls end up with the wrong parameters no matter how many Zod checks you do. Code mode slapped together your APIs and it didn't quite do it right.

Some of it will show up in tracing as failed tool calls, but then they will self correct and the outcome can end up fine, but it just burned some tokens unnecessarily which will cost you.

So give the agents a tool to let you, the maintainer, know what problems they ran into.

I built an MCP server for Plausible, our web analytics tool. It's open source and kinda cool, but the one thing I explored back in July was adding a send_feedback tool to let agents let me know if they tried something and it didn't work as expected.

Fast forward to now and the Sentry MCP has a submit_feedback_to_sentry_team tool that helps us figure out the gaps, annoyances and paper cuts at scale without bugging the end user for feedback.

How does the agent discover it can do this?

We don't just register it and hope the agent finds it, we steer it there. When a Plausible query fails and the error doesn't say how to fix the call, the response ends with:

"If this message doesn't tell you how to fix the call, report it with send_feedback."

The Sentry CLI does the same thing. When it detects it's running inside an agent and a command fails, it adds:

"If this took several tries or was hard to figure out, tell the Sentry CLI team why once you're done: sentry cli feedback "<what you tried and what got in the way>""

The tool descriptions do the rest:

at most once per task, after you finish or give up, and skip it if everything went fine.

There’s obviously limitations too.

A CLI can only nudge the agent when it prints something. Or the client first has to run your CLIs --help command to discover what "tools" exist.

MCP has primitives for this baked into the spec: a server can send instructions that the client can put right in the system prompt, every tool comes with a description the agent reads before it calls anything, and tool errors are meant to go back to the model so it can self-correct. So the agent knows the feedback tool exists before it hits the wall, and gets pointed at it when it does.

Not every client respects instructions yet, though, and some load tools lazily, so the description might never reach the model, which is exactly why the nudge in the error response matters. Neither of our servers mentions feedback in its instructions yet, so that's probably next for us to try.

So this ends up being that annoying popup, but for agents, shown at the exact moment they get stuck. And unlike people, agents don't get annoyed, don't get tired of being asked, and don't decide to keep it short.

Closing the loop

Surprise, this turned into a software factory™ post. How could it not?

If you have been living under a rock, in tech Twitter lingo, aka not following @zeeg, you might not have heard about Junior.

It's our softslopware factory. It has automations, memory, it's great at collaborating, and a bunch of other benefits you should probably read and hear about from David instead of me.

Sentry's Slack alerts have a notes field that is actually OP in my opinion. You can tag a Slack user (in this case a bot) and let it run a playbook automatically.

This has been running for 3 days and out of 9 PRs it created, 2 got merged. It's still rough. The Notion page is infuriating to look at with human eyes. But it's probably good as a database / interface for the clanker intern.

Give agents a way to leave feedback in your API, CLI, MCP, UI, and whatever else they have access to, because everything is new, we don't know a lot yet, but we do know that feedback is priceless.

Will keep you updated on how this progresses. See ya later.

Source details

Serge · x.comPublished · added here

Original title: Your agent is our customer