Skip to main content
Glama

get-query

Fetches details of a specific Redash query using its queryId, enabling you to inspect query metadata and configuration.

Instructions

Get details of a specific query

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": "get-query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryIdYesID of the query to get

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only says "get details." It does not say what fields are returned, whether it is a pure read, whether the query must exist, or what error occurs for an unknown queryId — all material for a metadata fetch with no output schema.

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 no filler and the resource is front-loaded. It is efficient, though the terseness tips into under-specification rather than excess.

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?

With no annotations and no output schema, the description is the only place an agent could learn what "details" comprises (SQL text, owner, tags, schedule, timestamps). That gap is significant for a retrieval tool whose siblings include results and execution variants.

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?

There is a single required parameter with 100% schema description coverage ("ID of the query to get"), so the schema already does the heavy lifting. The description adds nothing about ID format, validity, or behavior for a missing ID, which is the baseline case when schema coverage is complete.

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

Purpose3/5

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

The description names a recognizable verb and resource ("Get details of a specific query"), so the agent can tell this is a single-resource fetch by ID. However, "details" is vague and does nothing to separate it from close siblings like get-query-results or get-query-results-style retrieval tools, leaving the differentiation to the name alone.

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?

No guidance is given about when to use this versus get-query-results, execute-query, or list-queries. The agent must infer from the tool name which of several query-related tools returns metadata versus contents versus execution.

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