Skip to main content
Glama

format_ignition_script

Format and normalize Ignition script code in memory, with dry-run diff previews and confirmation before returning the formatted body for safe review or targeted writes.

Instructions

Preview or produce a normalized Ignition script body.

This tool formats an in-memory string; it does not write a project file. A confirmed result can be passed to a targeted write tool, which performs the snapshot and read-back.

Args: code: Script source. context: One of :data:SCRIPT_CONTEXTS. indent_unit: auto, tab, 2 or 4. dry_run: Return a diff instead of the formatted string. confirm: Must be True to return the formatted string when not dry-running.

Returns: A diff preview, a confirmation request, or the formatted code.

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": {
      "code": "<code>"
    },
    "name": "format_ignition_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
confirmNo
contextNoperspective_event
dry_runNo
indent_unitNoauto

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does well: it says the tool is non-mutating (in-memory only, no project file written), that confirmation is required to get formatted output, and that the actual snapshot and read-back belong to a separate write tool. It does not disclose default behavior (dry_run defaults to true) or error/failure characteristics, which keeps it below 5.

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?

Front-loaded with the one-line purpose, followed by a critical scoping caveat, then Args and Returns in a clean structure. Sentences are tight and every line adds information; there is minimal redundancy even though the Returns section overlaps with the existing output schema.

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 five-parameter tool with no annotations and an output schema, the description covers the important behavioral facts (non-mutating, confirm gate, handoff to a write tool) and all arguments. Completeness falls short only on the unresolvable SCRIPT_CONTEXTS reference and unmentioned defaults.

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 documents all five parameters including the allowed indent_unit values ('auto', 'tab', '2', '4') and the role of confirm versus dry_run. The notable gap is context: it says only 'One of :data:`SCRIPT_CONTEXTS`,' referencing internal documentation the agent cannot resolve, with no enum in the schema.

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: 'Preview or produce a normalized Ignition script body,' and immediately scopes it by saying it formats an in-memory string and does not write a project file. That distinguishes it from the write-oriented siblings, but it never names which sibling to use instead or what 'normalized' means concretely, so an agent still has to infer its relation to tools like validate_script_syntax or check_script_indentation.

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?

The description implies usage through the dry_run/confirm flow and notes a confirmed result can be handed to a targeted write tool, which gives useful workflow context. However, there is no explicit 'use this when' or 'use X instead' guidance against the many script siblings, and the condition for choosing this tool over validate_script_syntax or analyze_script is left to inference.

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