Skip to main content
Glama

Scripts (myIO Script programs)

myio_scripts
Read-onlyIdempotent

Inspect myIO controller program slots, states, cycle times, variables, arrays, global variables, and recent trace data to diagnose script execution.

Instructions

The program engine (GIGA/Opta 4.10+): every slot (prog/N.txt, 16 on GIGA, 8 on Opta) with name, state (off / RUNNING / ERROR with line:col and message), cycle time, runs, timing, local variables and arrays, plus the 32 global variables and (trace=true) the recent trace. Editor/admin level.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "myio_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
traceNo
serverNocontroller name (default Ground floor)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is carried. The description adds real context beyond that: the required editor/admin privilege level, firmware applicability (4.10+), capacity limits (16 slots on GIGA, 8 on Opta), and the fact that trace data is only returned when trace=true. It does not describe behavior for an unreachable controller or unknown slot id.

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?

One dense sentence front-loads the engine identity and then lists returned fields in a parenthesized enumeration, ending with the permission note. Every clause carries information; nothing is redundant padding.

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

Completeness5/5

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

There is no output schema, so the description takes on the burden of describing return contents, and it does so thoroughly — slot names, state with line:col error detail, cycle time, runs, timing, variables, globals, and trace. Combined with the annotations and the permission note, an agent has enough to call and interpret the result.

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 only 33% (only 'server' is documented, with its default), so the description must compensate, and it partly does: the trace flag's effect is explained explicitly and id is implicitly the slot selector via the 'every slot (prog/N.txt)' framing. The exact semantics of id (slot index vs. program path) is never stated outright, which holds it below a 5.

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 names the resource precisely (the myIO Script program engine, GIGA/Opta 4.10+) and enumerates what is read: every slot with name, state, cycle time, runs, timing, local variables/arrays, the 32 globals, and the optional trace. That is far more specific than the title. It does not, however, explicitly contrast itself with sibling readers such as myio_script, myio_script_get, or myio_globals.

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 'Editor/admin level' note signals a permission prerequisite, and the trace=true flag hints at an inspection workflow. There is no explicit statement of when to use this aggregate view versus the single-script or globals siblings, so the agent must infer the choice from content alone.

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