Skip to main content
Glama
Sentry MCP

Sentry MCP

Official
by getsentry

Render Sentry Chart

render_sentry_chart
Read-only

Chart counts, rates, durations, or other aggregates of Sentry errors, logs, spans, metrics, or profiles over time, optionally split by an attribute to compare the top five values.

Instructions

Chart a count, rate, duration, or other aggregate of Sentry errors, logs, spans, metrics, or profiles over time, optionally split by one attribute into the 5 values with the most events. Returns every bucket of each series, with each group's event count when split, and MCP Apps hosts show it as an interactive chart. To find individual events, use the dataset search tools.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "dataset": "<dataset>",
      "yAxis": "<yAxis>"
    },
    "name": "render_sentry_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoAbsolute end, ISO 8601; requires start.
freshNoBypass cached reads.
queryNoSentry search syntax filter, such as `level:error environment:production`. Empty matches everything.
startNoAbsolute start, ISO 8601; requires end.
titleNoChart heading, such as `Checkout errors`; defaults to the aggregate. Leave out the time range: the chart shows it, and the user can change it.
yAxisYesAggregate to plot, such as `count()`, `p95(span.duration)`, or `count_unique(user)`.
periodNoRelative time window, e.g. `1h`, `24h`, `7d`; defaults to 24h. Do not combine with start and end.
datasetYesData to chart.
groupByNoAttribute to split by, such as `release` or `transaction`; plots its 5 values with the most events. Not supported for profiles.
intervalNoBucket size such as 5m or 1h. Omit to let Sentry pick.
regionUrlNo
projectSlugNo
organizationSlugNoThe organization slug, from `find_organizations`. In `org/project` notation, the part before the slash.

Output Schema

NameRequiredDescriptionDefault
urlYes
peakYesHighest bucket that is no longer receiving data; null for grouped charts.
toolYesTool that drew this chart; changing the range calls it again.
queryYes
timesYesStart of each bucket, oldest first; shared by every series.
titleYes
yAxisYes
seriesYesOne series per measure or top group, most events first.
datasetYes
groupByYes
intervalYesBucket size, such as 5m or 1h.
ingestionYes
timeRangeYes
valueTypeYesSuch as integer, number, duration, percentage, or size.
valueUnitYesSuch as millisecond or byte.
incompleteYesIndexes into `times` of buckets still receiving data, whose values may rise.
outsideRetentionYesIndexes into `times` of buckets that start before the retention window, so older data is missing and the value will not change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false, openWorldHint), and the description adds real context on top: it discloses the return shape (every bucket of every series, plus per-group event counts when split) and the interactive-chart rendering on MCP Apps hosts. It does not mention permissions, rate limits, or cost of wide intervals, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with the core action and the split semantics front-loaded, then return behavior, then the alternative. No filler. Slightly dense in the opening sentence, but every clause carries usable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter tool with an output schema and full annotation coverage, the description covers purpose, aggregation semantics, splitting, rendering, and the search alternative. Remaining details (start/end pairing, interval defaults, dataset enum) live in the schema, so nothing critical is missing, though a note on combining period vs start/end would have helped.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 85%, so the parameters are already well documented. The description's note that groupBy splits into "the 5 values with the most events" largely restates the groupBy schema text and adds no syntax or default details for yAxis, interval, or period beyond what the schema provides. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: chart a count/rate/duration aggregate of Sentry errors, logs, spans, metrics, or profiles over time. It clearly separates itself from the event-search tools at the end. The one gap is that the closest sibling, render_issue_chart, is never contrasted, so the agent must infer the distinction from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent elsewhere for a different need: "To find individual events, use the dataset search tools." The aggregation-over-time use case is clear from the opening sentence. There is no statement of when-not to use this tool beyond that one alternative, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.