Sentry error triage
Ranks yesterday's new and regressed Sentry errors by users affected, posts them to Slack and files Linear issues for the worst.
Find errors, inspect traces, and triage production issues. Toolspoke gives your agents 14 of its actions, and you decide which ones each project allows.
Open the marketplace in your workspace, add Sentry to the project your agents work in, and it appears on the gateway immediately.
Provide the credential Sentry asks for. Where to get it, and what it has to be able to reach, is the next section.
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every Sentry action the project leaves on.
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
Mention it on a pull request, and it answers there.
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use Sentry, and only the actions the project leaves on.
Auth token. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
14 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
9 read, 5 write, none destructive
Fetches data and changes nothing.
list_issuesSearch the organization's issues, newest and most frequent first. `query` takes Sentry's own search syntax (for example `is:unresolved level:error`, `release:1.4.2`, `user.email:[email protected]`); when omitted Sentry defaults to `is:unresolved`. Start here when triaging production errors, then pass an id to get_issue or get_issue_event.
get_issueRetrieve one issue by its numeric id or short id (e.g. ACME-3F). Returns status, assignee, counts, first and last seen, affected releases, and tag breakdowns. Long activity feeds are stripped; use get_issue_event for the stack trace.
get_issue_eventFetch a single event for an issue, including its exception stack trace, HTTP request, tags, and runtime context. Defaults to the latest event. This is the action to call when you need to see why an error happened. Breadcrumbs are omitted unless you ask for them because they are large.
list_issue_eventsList recent events for one issue so you can see how often it fires, across which releases, users, and environments. Returns event metadata only, call get_issue_event for a full payload.
list_issue_tag_valuesBreak one issue down by a tag, release, environment, browser, url, server_name, user, showing the most common values and how many events each accounts for. Use it to work out which release or environment introduced a regression.
get_traceRetrieve a distributed trace by its 32-character trace id and return the span tree with any attached errors. Use it after finding a trace id on an event to see which service or query made a request slow. The tree is depth-limited to keep the response readable.
list_projectsList the organization's projects with their slugs and platforms. Call this to find the project slugs that list_issues and list_releases filter on.
list_releasesList releases newest first, with when they were deployed and how many new issues each introduced. Use it to line an error up against a deploy, and to find the version string that resolve_issue's next-release behaviour refers to.
list_membersList organization members with their emails, roles, and teams. Use it to pick a valid assignee for assign_issue.
Creates or updates something on the other side.
resolve_issueMark an issue as resolved immediately. Use resolve_issue_in_next_release instead when you want Sentry to reopen it if the error survives the next deploy. Reversible with reopen_issue.
resolve_issue_in_next_releaseResolve an issue in the next release: Sentry marks it resolved now and automatically reopens it if the error still occurs after the next deploy. Use resolve_issue to resolve it outright. Reversible with reopen_issue.
ignore_issueIgnore (mute) an issue so it stops alerting. Optionally re-open it automatically after a number of minutes or once it recurs a given number of times. Reversible with reopen_issue.
reopen_issueMove an issue back to unresolved, undoing a resolve_issue or ignore_issue.
assign_issueAssign an issue to a person or a team. Pass a username, email, or user id for a person, or "team:<team_id>" for a team. Call list_members first if you need a valid identifier.
The gateway enforces each of these, so they can be stated flatly.
14 named actions: 9 that only read and 5 that write. They include list_issues, get_issue and get_issue_event. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
Auth token. The connector asks for auth token and organization slug, and optionally instance url. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.
Install Sentry in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
The 14 actions above are the whole of it. A call to any other name is refused before it reaches Sentry rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. This connector writes to Sentry, but nothing in it deletes or permanently alters anything. Toolspoke holds no access to Sentry of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Sentry. An agent has to ask. Toolspoke does not retry, queue or back off around Sentry's own rate limits. A call that Sentry refuses comes back to the agent as a failed call.
Yes, in two places. The project switches Sentry's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.
Ranks yesterday's new and regressed Sentry errors by users affected, posts them to Slack and files Linear issues for the worst.