Skip to main content
Glama
redash-mcp

redash-mcp

by frauniki

execute_query

Run a SQL query against a specified Redash data source and return the result set, with optional cache age control for fresh or cached data.

Instructions

Execute a SQL query against a Redash data source 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": {
      "data_source_id": "<data_source_id>",
      "query": "<query>"
    },
    "name": "execute_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSQL query to execute
max_ageNoMax age in seconds for cached results (0 = no cache)
data_source_idYesID of the data source

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, and it omits the important behavioral facts for an arbitrary-SQL tool: whether write/DDL statements are permitted or rejected, permission requirements on the data source, and what the returned result shape or row limits are. It does say results are returned and that max_age affects caching, which is modest added context, but the safety profile is entirely undisclosed.

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 filler or repetition. It is efficient, though its brevity is partly a consequence of missing content rather than disciplined editing.

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 three-parameter tool with full schema coverage and no output schema, the definition covers the mechanics but leaves a meaningful gap for an arbitrary-SQL execution tool: no annotation coverage of read/write safety, no permission notes, and no mention of result limits. Adequate but not complete for its risk level.

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 all three parameters (query, max_age, data_source_id) are already documented in the schema. The description adds nothing beyond it—no format expectations, no note on how data_source_id relates to the sibling list_data_sources tool. Baseline 3 applies.

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?

States a specific verb+resource: 'Execute a SQL query against a Redash data source and return results.' This is clearly distinguishable from sibling tools like create_query or get_query_result, though it never names those alternatives explicitly. The ad-hoc execution vs. saved-query distinction is inferable but not stated.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer 'use this to run SQL', but there is no explicit when-to-use, when-not-to-use, or routing to siblings such as get_query_result for an existing saved query. No prerequisites or constraints are stated.

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