Home / Servers / Sentry API / list_organization_trace_metrics

List an Organization's Trace Metrics

An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.

List an Organization's Trace Metrics **Experimental:** This API is under active development and may change. List trace metrics (name, type, unit, count, last seen) with optional context. [GET /api/0/organizations/{organization_id_or_slug}/trace-items/metrics/]

Name on the gateway: sentry_api__list_organization_trace_metrics · read-only.

Parameters

NameTypeDescription
organization_id_or_slug requiredstringThe ID or slug of the organization the resource belongs to.
projectarrayThe IDs or slugs of projects to filter by. Project slugs are unique within…
environmentarrayThe name of environments to filter by.
statsPeriodstringThe period of time for the query, will override the start & end parameters, a…
startstringThe start of the period of time for the query, expected in ISO-8601 format.…
endstringThe end of the period of time for the query, expected in ISO-8601 format. For…
querystringSearch query to filter metrics, using the same syntax as the metrics dataset.
sort-count | -lastSeen | -name | -type | -unit | count | lastSeen | name | type | unitResponse field to sort by, prefixed with - for descending. Defaults to metric…
expandarrayOptional fields to expand. Pass context to include each metric's authored…
contextOnlybooleanReturn only metrics that have authored context, and include that context in…

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:

call_tool arguments
{
  "name": "sentry_api__list_organization_trace_metrics",
  "arguments": {
    "organization_id_or_slug": "…"
  }
}

Or connect the Sentry API server directly, which lists 272 tools including this one:

Run in your terminal
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 list an organization's trace metrics tool with organization_id_or_slug set to ….

More from Sentry API