Skip to main content
Glama

Run an AmigaDOS command

amiga_run
Destructive

Run one AmigaDOS command line and wait for it to finish, returning merged stdout and stderr plus a return code. Use it to execute Shell commands on a real Amiga or FS-UAE.

Instructions

Run one AmigaDOS command line (as typed in a Shell) and wait for it to finish. Returns everything it printed, stdout and stderr merged, then a line '[return code N]': 0 ok, 5 warning, 10 error, 20 failure. The command can do anything a Shell can, including delete files. For a program that opens a window and keeps running, start it with 'Run >NIL: Program' so this returns at once, then use amiga_wait for its window. Stuck commands: amiga_slots and amiga_break. Prefer amiga_ls and amiga_read_file for looking at files.

Input Schema

NameRequiredDescriptionDefault
commandYesthe command line, e.g. 'List SYS:C' or 'Version exec.library'
max_timeNostop it (Ctrl-C) after this many seconds; default: wait up to 600 s

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / command / description
      Previous value: -"the command line, e.g. 'list SYS:'"New value: +"the command line, e.g. 'List SYS:C' or 'Version exec.library'"
    • changedInput schema / properties / max_time / description
      Previous value: -"stop it after this many seconds"New value: +"stop it (Ctrl-C) after this many seconds; default: wait up to 600 s"
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotent, and the description reinforces this with 'The command can do anything a Shell can, including delete files.' It also discloses the blocking behavior, the merged stdout/stderr return shape, the '[return code N]' trailer with the meaning of each code, and that max_time triggers a Ctrl-C – context the annotations cannot express.

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 core action and return contract, then progressively narrower routing advice. Every sentence carries a distinct fact (return format, code meanings, danger, backgrounding idiom, stuck-command escape hatches, alternatives) with no filler.

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?

With no output schema, the description fully carries the return contract: merged stdout/stderr followed by a '[return code N]' line with a decoding table. Combined with the timeout semantics and the windowed-program idiom, an agent has everything needed to call and interpret this correctly.

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 coverage is 100%, and the schema already documents both parameters including the Ctrl-C/default-600s behavior of max_time. The description adds only the framing that the command is 'as typed in a Shell' and the example-style usage, so the schema is doing the heavy lifting – baseline 3 is appropriate.

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 ('Run one AmigaDOS command line ... and wait for it to finish') and immediately delimits itself against siblings: 'Prefer amiga_ls and amiga_read_file for looking at files' and 'use amiga_wait for its window'. An agent can place this tool relative to the file, window, and process siblings without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use alternatives with the condition that selects them: use amiga_ls/amiga_read_file for inspecting files, use 'Run >NIL: Program' plus amiga_wait for windowed programs, and amiga_slots/amiga_break for stuck commands. Both routing and exclusion guidance are present.

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