Skip to main content
Glama

update-query

Modify an existing Redash query by ID, including its SQL text, name, description, tags, schedule, data source, and draft or archive status.

Instructions

Update an existing query in Redash

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": {
      "queryId": "<queryId>"
    },
    "name": "update-query"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name of the query
tagsNoTags for the query
queryNoSQL query text
optionsNoQuery options
queryIdYesID of the query to update
is_draftNoWhether the query is a draft
scheduleNoQuery schedule
descriptionNoDescription of the query
is_archivedNoWhether the query is archived
data_source_idNoID of the data source to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but fails to disclose critical mutation semantics: whether unspecified fields remain unchanged, whether changes are reversible, what permissions are required, or what the response contains. A single sentence is insufficient for a 10-parameter update operation.

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

Conciseness3/5

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

The description is a single short sentence with no wasted words and the purpose is front-loaded. However, it is too sparse for the complexity of the tool, so conciseness comes at the cost of necessary detail.

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

Completeness2/5

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

The tool is a mutation with 10 parameters, nested objects, no annotations, and no output schema. The one-sentence description is incomplete for this complexity, missing behavioral context, update semantics, and error/return expectations.

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 description coverage is 100%, so each of the 10 parameters is already documented in the input schema. The description adds no additional meaning beyond the schema, which is acceptable at the baseline of 3 when the schema does the heavy lifting.

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

Purpose4/5

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

The description states a specific verb ("Update") and resource ("query") and names the platform (Redash), so the action is immediately clear. It does not explicitly differentiate from siblings such as create-query or archive-query, but the core purpose is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives like create-query, archive-query, or get-query. The description also omits prerequisites, such as the need for a valid queryId or write permissions, leaving the agent to infer usage context.

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