Skip to main content
Glama

Get a saved query

draxlr_get_query
Read-onlyIdempotent

Get the details of a saved query by its id — for example to resolve a query link. Returns the query's name, description, type ('raw' SQL or 'builder'), SQL (for raw queries) and a url to view it in Draxlr. Links look like /explore/:databaseId/:tableId/:queryId, where :tableId is raw_query for raw SQL queries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryIdYesThe query id (the :queryId part of an /explore/... link)
databaseIdNoThe database id (the :databaseId part of the link), used to build the view url

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint, and openWorldHint, so the safety profile is covered. The description adds useful behavioral context by listing the returned fields (name, description, type, SQL, url) and explaining the 'type' values ('raw' SQL or 'builder'), which helps the agent anticipate the 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose, followed by return details and link format. Every sentence earns its place without redundancy, making it easy to parse quickly.

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

Completeness5/5

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

For a simple read tool with full schema coverage and rich annotations, the description covers what the tool does, how to obtain the required id from a link, and what the response contains. No output schema exists, and the description compensates by describing return fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by giving the full link pattern /explore/:databaseId/:tableId/:queryId and noting that :tableId is 'raw_query' for raw SQL queries, which contextualizes why databaseId is needed.

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 ('Get') and resource ('details of a saved query by its id'), and clarifies the return fields. It does not explicitly name a sibling to differentiate from (e.g., list_saved_queries), but the 'by its id' scoping makes the individual-vs-list distinction reasonably clear.

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?

Provides a use case example ('for example to resolve a query link'), which implies when to use it, but offers no explicit when-not guidance or alternatives. The intended usage is inferable but not spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources