Render Sentry Chart
render_sentry_chartChart 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
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Absolute end, ISO 8601; requires start. | |
| fresh | No | Bypass cached reads. | |
| query | No | Sentry search syntax filter, such as `level:error environment:production`. Empty matches everything. | |
| start | No | Absolute start, ISO 8601; requires end. | |
| title | No | Chart heading, such as `Checkout errors`; defaults to the aggregate. Leave out the time range: the chart shows it, and the user can change it. | |
| yAxis | Yes | Aggregate to plot, such as `count()`, `p95(span.duration)`, or `count_unique(user)`. | |
| period | No | Relative time window, e.g. `1h`, `24h`, `7d`; defaults to 24h. Do not combine with start and end. | |
| dataset | Yes | Data to chart. | |
| groupBy | No | Attribute to split by, such as `release` or `transaction`; plots its 5 values with the most events. Not supported for profiles. | |
| interval | No | Bucket size such as 5m or 1h. Omit to let Sentry pick. | |
| regionUrl | No | ||
| projectSlug | No | ||
| organizationSlug | No | The organization slug, from `find_organizations`. In `org/project` notation, the part before the slash. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| peak | Yes | Highest bucket that is no longer receiving data; null for grouped charts. | |
| tool | Yes | Tool that drew this chart; changing the range calls it again. | |
| query | Yes | ||
| times | Yes | Start of each bucket, oldest first; shared by every series. | |
| title | Yes | ||
| yAxis | Yes | ||
| series | Yes | One series per measure or top group, most events first. | |
| dataset | Yes | ||
| groupBy | Yes | ||
| interval | Yes | Bucket size, such as 5m or 1h. | |
| ingestion | Yes | ||
| timeRange | Yes | ||
| valueType | Yes | Such as integer, number, duration, percentage, or size. | |
| valueUnit | Yes | Such as millisecond or byte. | |
| incomplete | Yes | Indexes into `times` of buckets still receiving data, whose values may rise. | |
| outsideRetention | Yes | Indexes into `times` of buckets that start before the retention window, so older data is missing and the value will not change. |