Skip to main content
Glama

run

Execute a PlayStation 2 ELF or .irx module under the server root, optionally wait for a text marker or timeout, and return its state and printed output.

Instructions

Runs a program under the server's root, served to the target as host:: an ELF on the EE, or, if its name ends in .irx, a module on the IOP. Waits up to timeout seconds for it to end, or returns as soon as it has printed the text until, if that's given.

Returns its state and everything it printed as output. For an ELF the state is "exited" with an exit_code, "crashed" with the exception (what, where and the registers), or "running" if it hasn't ended, in which case output and stop carry on from there. Not every target can tell that a program has ended: one that can't leaves it "running", and until is the way to know it's done. For a module the state is "loaded", with its number and what its start returned.

On a target with the debug capability an ELF can be held instead of lost. hold is "exception", for a program that's kept where it would have crashed, or "entry", for one kept at its first instruction too; any breakpoint set does the first by itself. The state is then "held", with held saying why and where, and the program waits, whole, for registers, read_memory, step and resume, or for stop to end it.

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>"
    },
    "name": "run"
  }
}

Input Schema

NameRequiredDescriptionDefault
holdNonever
pathYes
untilNo
timeoutNo
argumentsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/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: it discloses the blocking/waiting behavior, the possible states (exited/crashed/running/loaded/held), exit codes, exception detail, and that a held program remains intact awaiting registers/read_memory/step/resume or stop. This is unusually rich behavioral context that an agent could not infer from the schema.

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?

Front-loaded with the core action and resource, then layered detail about states and hold. Sentences are dense but almost all substantive; minor verbosity in the state enumeration keeps it from a 5.

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 complex 5-parameter tool with no annotations, the definition covers invocation, timing, return states, and debug-hold behavior thoroughly, even though an output schema exists. The only shortfall is the unaddressed `arguments` parameter, slightly reducing completeness relative to schema richness.

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?

With 0% schema coverage, the description must supply parameter meaning, and it explains `path` (served as host:<path>), `timeout` (wait duration), `until` (sentinel text), and `hold` (exception/entry values). The `arguments` parameter is never addressed, leaving one gap, so not a full 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Runs a program under the server's root'), then immediately distinguishes two execution modes: an ELF on the EE, or a .irx module loading on the IOP. An agent can tell exactly what this does and how it differs from the steps/register/stop siblings that only apply after a run.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains when to rely on `until` (targets that can't detect program end) and when `hold` applies (targets with the debug capability). It also implies the hand-off to `output`, `stop`, `registers`, `read_memory`, `step`, and `resume` when a program is left running or held. It does not give explicit when-not-to-run guidance, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.