Skip to main content
Glama

write_named_query

Create or replace a named SQL query resource in an Ignition project. Define parameters and query type, with dry-run preview and confirm-gated writes.

Instructions

Create or replace a named query resource.

Args: path: Named query path. query: SQL text with named parameters. 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": "write_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

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose three non-obvious behaviors: it replaces existing content, writes require confirm=True, and dry_run previews without writing. It does not state what happens to existing parameters on replace, nor what permissions or validation failures can occur.

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 one-line purpose is front-loaded and the Args list is scannable and proportionate to seven parameters. A few entries are padding (the path and query_type lines could be tighter), but nothing is structurally confusing.

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?

An output schema exists, so the brief Returns line is sufficient. For a seven-parameter mutation tool with no annotations, however, the definition should say more about replacement side effects and how this differs from the sibling create_named_query.

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 0%, so the description must compensate for all seven parameters. It lists every one, but several entries merely restate the parameter name ('path: Named query path'), while the genuinely useful notes are limited to query being SQL with named parameters, parameters having name/type, query_type defaulting to 'query', and project defaulting to the active project.

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 line gives a specific verb and resource ('Create or replace a named query resource'), which is clearer than the bare tool name. It stops short of distinguishing itself from the sibling create_named_query, so an agent must infer that this one also handles replacement.

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: you write when you want to persist or overwrite a named query, and you set dry_run to preview. There is no explicit 'use this instead of create_named_query' routing, no statement of when a replace is inappropriate, and no prerequisites beyond the confirm flag.

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