Skip to main content
Glama

create-query

Create a new Redash query from a name, data source ID, and SQL text, plus optional tags, description, schedule, and options to save reusable queries.

Instructions

Create a new 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": {
      "name": "<name>",
      "data_source_id": "<data_source_id>",
      "query": "<query>"
    },
    "name": "create-query"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the query
tagsNoTags for the query
queryYesSQL query text
optionsNoQuery options
scheduleNoQuery schedule
descriptionNoDescription of the query
data_source_idYesID 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?

No annotations are provided, so the description carries the entire behavioral burden. It implies a mutation but says nothing about required permissions, whether the query executes on creation, what defaults apply to the optional options/schedule objects, or whether the operation is reversible — all material facts for a write tool.

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 single sentence has zero waste and is front-loaded, but its brevity here reflects under-specification rather than discipline — at eight words it omits everything an agent needs about behavior and prerequisites.

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?

For a mutation tool with seven parameters, two nested objects (options, schedule), no annotations, and no output schema, the description is far too thin. It should at minimum address what the nested objects control, whether creation triggers execution, and what is returned.

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 seven parameters are already documented in the input schema. The description adds no meaning beyond that, but per the coverage rule the schema does the heavy lifting and a baseline 3 is appropriate.

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 gives a specific verb plus resource ("Create a new query") and names the system (Redash), so an agent can immediately distinguish it from read-oriented siblings like get-query or list-queries. It stops short of differentiating from the closest sibling, update-query, or clarifying what "create" encompasses.

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 instead of update-query or execute-query, no mention that creation is distinct from running the query, and no prerequisites such as needing a valid data_source_id from list-data-sources. The agent must infer all routing decisions.

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