Skip to main content
Glama
redash-mcp

redash-mcp

by frauniki

get_query

Fetch a Redash query by ID, including its visualizations, to inspect saved query details and related charts.

Instructions

Get a Redash query by ID (with visualizations)

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": {
      "query_id": "<query_id>"
    },
    "name": "get_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
query_idYesThe ID of the query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does add one useful piece of context beyond the schema — that visualizations are included in the response — and "Get" signals a read operation, but it says nothing about permissions, error behavior for a missing ID, or the overall response shape.

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?

One short sentence with the resource and the key scope note (visualizations) front-loaded; nothing is padded or redundant. It is arguably terse to the point of omitting routing guidance, but not verbose.

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

Completeness3/5

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

For a simple one-parameter read tool with no output schema and no annotations, the description covers what it fetches and that visualizations come along. It stops short of describing the returned query fields or failure modes, which matters more here because no annotations or output schema fill that gap.

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% for the single query_id parameter, so the schema already explains it. The description's "by ID" phrasing is consistent but adds no syntax, format, or lookup-hint information beyond the schema.

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 names a specific verb and resource ("Get a Redash query") and adds scope detail that the query is fetched "by ID (with visualizations)". This distinguishes it from result-oriented siblings like get_query_result or execute_query by implication, though it never names them explicitly.

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 when-to-use guidance: nothing says to prefer this over get_query_result, list_queries, or execute_query, nor any prerequisite such as needing the query to exist or being in the right workspace. The agent must infer that this retrieves a query definition rather than its data.

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