Search Attributes
search_attributesFind or list span, log, or metric attribute keys in Sentry by meaning or partial name, including types and examples, to confirm exact keys before searching traces, logs, or metrics.
Instructions
Find span, log, or metric attribute keys in Sentry by meaning or partial name, with their types, descriptions, examples, and deprecation status. Alternatively, list the spans, logs, or metric attributes available. Use it to get information about attributes or find the exact key before searching traces, logs, or metrics. For attribute values, use search_traces, search_logs, or search_metrics; for issue tag values, use get_issue_tag_values.
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>"
},
"name": "search_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Bypass cached reads. | |
| limit | No | Maximum attributes to return. Defaults to 10 with a query and 50 when listing. | |
| query | No | What attribute to find, in plain English or as part of a key. Omit to list the dataset's attributes. | |
| period | No | Relative time window, e.g. `30m`, `24h`, `7d`, `90d`. | |
| dataset | Yes | Dataset to search: spans for requests, latency, DB, or AI calls; logs for log lines; metrics for counters, gauges, and distributions. | |
| 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 |
|---|---|---|---|
| best | Yes | With matches, the one key that clearly answers query, if any. | |
| notes | Yes | ||
| query | Yes | ||
| period | Yes | ||
| dataset | Yes | ||
| attributes | Yes | With list, the attributes shown. With matches, the other candidates, most relevant first. | |
| resultType | Yes | list: the dataset's attributes. matches: the attributes that answer query. | |
| totalAttributes | Yes | How many attributes this result was picked from, before limit. | |
| presentationHint | Yes | How best to present this data. |