Skip to main content
Glama

read_named_query

Reads a named query's SQL and parameters by path from an Ignition project, returning decoded query.json for inspection or reuse.

Instructions

Read a named query's SQL and parameters.

Args: query_path: Named query path, e.g. Production/GetCounts. project: Project name; defaults to the active project.

Returns: The decoded query.json resource.

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": {
      "query_path": "<query_path>"
    },
    "name": "read_named_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
query_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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. 'Read' implies a non-mutating operation and the Returns section discloses that the decoded query.json resource is produced, plus the active-project default. It does not state failure behavior for a missing path, permission requirements, or whether the returned SQL is raw or interpolated.

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?

The docstring layout with Args and Returns is front-loaded and easy to scan, and every line carries information. The reStructuredText markup and double backticks are slightly noisy but not wasteful.

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

Completeness4/5

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

For a two-parameter read tool with an output schema already describing the return value, the description covers both parameters, the path format, the project default, and the return type. Only edge-case behavior for a nonexistent query is missing.

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 0%, so the description must compensate, and it does: query_path is given a concrete path format example (Production/GetCounts) and project is documented as defaulting to the active project. This adds real meaning beyond the bare 'Query Path' / 'Project' schema titles, though it does not say whether query_path is case-sensitive or whether a leading slash is accepted.

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 and resource ('Read a named query's SQL and parameters') and names what is returned, so the agent knows this is a fetch of a stored query definition rather than an execution. It does not distinguish itself from near-siblings such as inspect_named_query_parameters or list_named_queries, leaving overlap to be inferred.

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 when-to-use or when-not-to-use guidance and no mention of alternatives; the reader must infer that this reads a single stored query while list_named_queries enumerates them. The only contextual hint is the description of the project default.

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

Deploy Server

Other Tools