Home / Servers / Sentry API / update_organization_discover_saved_query
Edit an Organization's Discover Saved Query
An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.
Edit an Organization's Discover Saved Query Modify a saved query. [PUT /api/0/organizations/{organization_id_or_slug}/discover/saved/{query_id}/]
Name on the gateway: sentry_api__update_organization_discover_saved_query · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
organization_id_or_slug required | string | The ID or slug of the organization the resource belongs to. |
query_id required | integer | The ID of the Discover query you'd like to retrieve. |
name required | string | The user-defined saved query name. |
projects | array | The saved projects filter for this query. |
queryDataset | discover | error-events | transaction-like | The dataset you would like to query. Note: discover is a **deprecated** value.… |
start | string | The saved start time for this saved query. |
end | string | The saved end time for this saved query. |
range | string | The saved time range period for this saved query. |
fields | array | The fields, functions, or equations that can be requested for the query. At… |
orderby | string | How to order the query results. Must be something in the field list, excluding… |
rollup | integer | Time-bucket granularity in seconds for the saved query. |
aggregations | array | Aggregate functions to apply, each as a [function, column, alias] triple. |
groupby | array | Columns to group results by. |
conditions | array | Filter conditions, each as a [column, operator, value] triple. |
limit | integer | Maximum number of rows to return, from 0 to 1000. |
version | integer | Saved query schema version. 1 for the legacy shape, 2 for the current one. |
environment | array | The name of environments to filter by. |
query | string | Filters results by using query syntax. |
widths | array | Rendered column widths, in the same order as the query's fields. |
yAxis | array | Aggregate functions to be plotted on the chart. |
display | string | Visualization type for saved query chart. Allowed values are: - default… |
topEvents | integer | Number of top events' timeseries to be visualized. |
interval | string | Resolution of the time series. |
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__update_organization_discover_saved_query",
"arguments": {
"organization_id_or_slug": "…",
"query_id": 0,
"name": "…"
}
}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 edit an organization's discover saved query tool with organization_id_or_slug set to ….