Skip to main content
Glama

create_named_query

Creates a named SQL query resource in an Ignition project using a path, query text, and parameters; supports dry-run previews and confirmation before writing.

Instructions

Create a named query resource.

Args: path: Named query path, e.g. Production/GetCounts. query: SQL text with named parameters such as :line. parameters: Parameter definitions with name and type. query_type: Ignition query type, normally query. project: Project name; defaults to the active project. confirm: Must be True to write. dry_run: Preview the change without writing.

Returns: Write acknowledgement or a dry-run diff.

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": {
      "path": "<path>",
      "query": "<query>"
    },
    "name": "create_named_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
queryYes
confirmNo
dry_runNo
projectNo
parametersNo
query_typeNoquery

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does meaningful work: it discloses that confirm must be True to actually write and that dry_run previews the change without writing, which is exactly the safety information an agent needs for a mutation tool. It also briefly states the return (write acknowledgement or dry-run diff). It stops short of disclosing what happens if the path already exists (overwrite vs error) or what permissions are required.

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?

It is front-loaded with a one-line purpose, then structured Args/Returns sections, with no filler sentences. The docstring format is slightly verbose relative to the tiny amount of prose, but every line conveys information.

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 seven-parameter mutation tool with no annotations, the definition covers parameters, the confirm/dry_run safety contract, and the return shape, and an output schema exists so return values need not be detailed. The remaining gap is behavioral: overwrite semantics, required permissions, and its relationship to write_named_query are unstated.

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

Parameters5/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: every one of the seven parameters is explained with concrete meaning, including a path example ('Production/GetCounts'), the named-parameter SQL convention (':line'), the shape of parameters entries ('name' and 'type'), the typical query_type value, and the project default. This adds substantially more than the bare schema titles.

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 opening sentence gives a specific verb and resource: 'Create a named query resource.' That is unambiguous about what the tool does. However, it never distinguishes itself from the sibling write_named_query (or read_named_query), so an agent cannot tell from the definition alone why both a 'create' and a 'write' tool exist.

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: the presence of confirm and dry_run hints at a preview-then-confirm workflow, and 'defaults to the active project' hints at project scoping. There is no explicit statement of when to use this versus write_named_query, nor any stated prerequisite or exclusion.

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