Home / Servers / Sentry API / get_organization_trace
Retrieve a Trace
An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.
Retrieve a Trace Retrieve the spans, errors, and (optionally) uptime checks that make up a single trace. The response is a list of top-level events; each item may have nested children, errors, and occurrences arrays… [GET /api/0/organizations/{organization_id_or_slug}/trace/{trace_id}/]
Name on the gateway: sentry_api__get_organization_trace · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
organization_id_or_slug required | string | The ID or slug of the organization the resource belongs to. |
trace_id required | string | The ID of the trace, a 32-character hexadecimal string. |
statsPeriod | string | The period of time for the query, will override the start & end parameters, a… |
start | string | The start of the period of time for the query, expected in ISO-8601 format.… |
end | string | The end of the period of time for the query, expected in ISO-8601 format. For… |
referrer | string | Internal referrer identifier used for query tracing. Most clients can omit this. |
errorId | string | A 32-character hexadecimal event ID to bias the trace results toward including. |
additional_attributes | array | Additional span attributes to include on each event. Repeat to request multiple. |
include_uptime | 0 | 1 | Set to 1 to include uptime check results in the trace. Defaults to 0. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "sentry_api__get_organization_trace",
"arguments": {
"organization_id_or_slug": "…",
"trace_id": "…"
}
}Or connect the Sentry API server directly, which lists 272 tools including this one:
claude mcp add --transport http hj-sentry-api https://mcp.hjlabs.in/mcp/sentry-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the retrieve a trace tool with organization_id_or_slug set to ….