Skip to main content
Glama

check_script_indentation

Validate Ignition script indentation in its real execution context and return structured diagnostics to catch formatting or indentation issues.

Instructions

Check Ignition script indentation in its real execution context.

Args: code: Script source, already decoded from view.json. context: One of :data:SCRIPT_CONTEXTS. indent_unit: auto, tab, 2 or 4.

Returns: Validity, indentation metadata and structured diagnostics.

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": "check_script_indentation"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
contextNoperspective_event
indent_unitNoauto

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. 'Check' plus a Returns section describing validity and diagnostics implies a non-mutating analysis, but the description never states that the script is left untouched, whether any state is cached, or what failure modes look like. It discloses the return shape at a high level, which is useful but thin given zero annotation coverage.

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 Google-style Args/Returns structure is front-loaded with the purpose sentence and has no filler. The single weakness is the unhelpful 'One of :data:`SCRIPT_CONTEXTS`' reference, which spends a line without transferring information.

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 Returns summary is sufficient and the description need not detail result fields. Parameters are largely covered, but the unresolvable context enum and the absence of any usage or alternative guidance leave gaps for a validation tool that sits among several similar script-checking siblings.

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, and it does for two of three parameters: it clarifies that code must already be decoded from view.json, and it enumerates the valid indent_unit values ('auto', 'tab', '2', '4'). However, the context parameter is only described by reference to SCRIPT_CONTEXTS, a symbol an agent cannot resolve, so the allowed values remain undocumented.

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 description gives a specific verb and resource ('Check Ignition script indentation') plus a distinguishing qualifier ('in its real execution context') that separates it from a plain formatting or syntax tool. It is clear what the tool does, though it never names its closest siblings (format_ignition_script, validate_script_syntax) to sharpen the boundary.

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 explicit when-to-use, when-not-to-use, or alternative routing guidance. The phrase 'in its real execution context' hints at why the context argument matters, but an agent is left to infer whether to call this versus validate_script_syntax or format_ignition_script. No prerequisites or exclusions are stated.

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