Skip to main content
Glama

access_script_console

Execute Jython code in the Ignition Gateway Script Console with optional project and scope targeting, using dry-run validation or explicit confirmation to preview and safely run scripts.

Instructions

Execute code in the Gateway Script Console.

Args: code: Jython code to execute. project: Project context. scope: Execution scope. confirm: Must be True to execute. dry_run: Validate the code without executing it.

Returns: Execution output, or a guard/preview payload.

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

Input Schema

NameRequiredDescriptionDefault
codeYes
scopeNogateway
confirmNo
dry_runNo
projectNo

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, the description must carry the behavioral burden. It usefully discloses that confirm must be True to execute and that dry_run validates without executing, returning output or a guard/preview payload. However, for arbitrary code execution it omits important context about side effects, permissions, modified resources, and reversibility.

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 description is compact and front-loaded, with a clear purpose sentence followed by structured Args and Returns sections. It avoids unnecessary prose, though some phrases like 'guard/preview payload' could be clearer.

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 description does not need to detail return values. For a five-parameter execution tool with no annotations, however, it should provide more guidance on alternatives, security implications, and the meaning of project/scope to be fully complete.

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 Args section is doing real work by explaining that code is Jython and clarifying confirm/dry_run semantics. It still leaves 'project' and 'scope' vague, with no allowed values or concrete meaning beyond 'Project context' and 'Execution scope.'

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 states a specific verb and resource: 'Execute code in the Gateway Script Console.' This is clear enough to distinguish execution from sibling tools like validate_script_syntax, analyze_script, and format_ignition_script, though it does not explicitly name the alternatives or contrast itself with them.

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?

The description gives parameter-level guidance such as confirm and dry_run, but no when-to-use or when-not-to-use guidance. It does not explain when an agent should execute code here versus validating, analyzing, or writing scripts through the many sibling tools.

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