Skip to main content
Glama

update_query

Idempotent

Rename a saved analytics query or change its description, on every dashboard that shows it. To change what it measures, use update_insight_query / update_funnel_query / update_retention_query / update_heatmap_query instead. Saved when this runs; explain it in reason. Load the manage-dashboards skill (load_skill("manage-dashboards")) first.

Input Schema

NameRequiredDescriptionDefault
nameNo
reasonYesWhy you are making this change, in one sentence the user will read on the approval card.
queryIdYesThe saved query to change.
projectIdYesThe project (application) id to scope this call to. Use list_projects to discover valid ids.
descriptionNo
environmentYesThe environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: the change propagates to every dashboard displaying the query, the change is persisted ('Saved when this runs'), and the reason surfaces on an approval card. It stops short of saying what happens on a name collision or whether both fields can be changed in one call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each load-bearing: scope of the edit, the routing rule to alternatives, and the skill prerequisite. The most important constraint (what this tool does not do) is front-loaded right after the purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter mutation with no output schema, the description covers purpose, scope of effect, persistence, required rationale, and the prerequisite skill. Remaining gaps are edge-case behavior (partial updates, name conflicts, error shape), which are minor but would be useful for a write tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, with queryId, projectId, environment and reason already documented in the schema. The description maps 'rename' to the name field and 'change its description' to the description field, which is mild added meaning, but it says nothing extra about the three id/scoping parameters or the length limits. Baseline 3 is appropriate when the schema does most of the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb pair and resource: 'Rename a saved analytics query or change its description,' plus the propagation scope 'on every dashboard that shows it.' It explicitly names the sibling tools it is not (update_insight_query / update_funnel_query / update_retention_query / update_heatmap_query), so an agent can separate metadata edits from definition edits without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit when-not rule ('To change what it measures, use update_insight_query / ... instead') with named alternatives, and a prerequisite ordering ('Load the manage-dashboards skill ... first'). Nothing about tool selection is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources