Skip to main content
Glama

Update saved query

fastero_update_query
DestructiveIdempotent

Change a saved query’s name or SQL text; fields not sent stay as they are, and its connection cannot be changed here. New SQL must be read-only, as for fastero_create_query. Every report, dashboard chart and alert built on the query reads the new SQL from its next run, and a chart plotting a column the new SQL no longer returns stops drawing it. The old SQL is not kept. When the SQL changes, send definitionsUsed again so it is restamped at the current version.

Input Schema

NameRequiredDescriptionDefault
sqlNoThe new SQL text, replacing the old.
nameNoA new name.
queryIdYesA saved query’s id, from fastero_list_queries.
projectIdYesThe project’s id, from fastero_list_projects.
definitionsUsedNoNames of the shared definitions (metrics, datasets) the SQL was built from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / name / description
      Added value: +"A new name."
    • addedInput schema / properties / projectId / description
      Added value: +"The project’s id, from fastero_list_projects."
    • addedInput schema / properties / queryId / description
      Added value: +"A saved query’s id, from fastero_list_queries."
    • addedInput schema / properties / sql / description
      Added value: +"The new SQL text, replacing the old."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag readOnlyHint=false, destructiveHint=true and idempotentHint=true; the description goes well beyond them by disclosing the destructive cascade (every report, dashboard chart and alert reads the new SQL from its next run), that charts plotting dropped columns stop drawing, and that the old SQL is not retained. It also carries a required conditional behavior: resend definitionsUsed so it is restamped at the current version.

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

Conciseness4/5

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

Three sentences, all information-dense, with the mutation and its field scope front-loaded before the downstream side effects. Each sentence carries unique content, though the phrasing is slightly dense and the definitionsUsed rule arrives last rather than being surfaced as a hard requirement.

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

Completeness5/5

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

For a destructive, no-output-schema mutation tool, the description covers the field-level semantics, an immutable field, downstream side effects, dropped-column behavior, loss of the old SQL, and the version restamping requirement. Nothing an agent needs to call it safely is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the per-parameter meanings are already documented and the baseline is 3. The description adds conditional semantics the schema cannot express: definitionsUsed must be resent specifically when SQL changes, and the sql parameter carries the read-only constraint rather than arbitrary SQL.

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?

States a specific verb and resource ('Change a saved query's name or SQL text') and immediately scopes the operation by naming the two mutable fields and excluding connection changes. An agent can distinguish this from fastero_create_query, fastero_delete_query and fastero_get_query without opening any schema.

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

Usage Guidelines4/5

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

Explains the partial-update rule ('fields not sent stay as they are') and an explicit exclusion ('its connection cannot be changed here'), and cross-references fastero_create_query for the read-only SQL constraint. It does not spell out when to prefer create-vs-update or any prerequisite permissions, so it stops short of 5.

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.