Skip to main content
Glama

execute-query

Execute a Redash query by ID and return its results, optionally passing parameters to run parameterized queries.

Instructions

Execute a Redash query and return results

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

Input Schema

NameRequiredDescriptionDefault
queryIdYesID of the query to execute
parametersNoParameters to pass to the query (if any)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

C2.9/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 burden. It does not disclose whether execution is synchronous or returns a job handle, expected latency/timeouts, whether it re-runs a possibly expensive query, permission requirements, or any rate limits — significant omissions for a query-execution tool.

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?

A single front-loaded sentence with no wasted words. Its brevity is efficient, though it is arguably under-specified rather than genuinely crisp.

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 output schema, the description should explain the shape of the returned results (rows/columns, truncation, pagination) or execution semantics, but "return results" leaves that entirely opaque. For a tool with a nested parameter object and execution side effects, this is too thin.

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 100%, with queryId and parameters both documented in the schema, so the description need not repeat them. It adds no detail about how the nested parameter object is shaped or how it maps to the query's declared parameters.

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?

"Execute a Redash query and return results" names a concrete verb (execute) and resource (Redash query) plus the outcome. It does not, however, distinguish this from the sibling get-query-results, which an agent could easily confuse with the result-returning half of this tool.

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 on when to execute a query versus fetching existing results via get-query-results, or whether execution is needed each time rather than using cached results. The agent must infer the routing decision from the name alone.

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