Skip to main content
Glama

Stop a running command

amiga_break
Destructive

Stops a command started by amiga_run using its slot number, sending Ctrl-C and freeing the slot after three seconds if it does not exit. The program loses any unsaved work.

Instructions

Stop a command started by amiga_run, by its slot number from amiga_slots: sends Ctrl-C, and if it has not stopped within three seconds, frees the slot anyway (the program is then left running until it ends, and amiga_slots shows it as stuck). The program loses whatever it had not saved. To stop any other task use amiga_kill.

Input Schema

NameRequiredDescriptionDefault
slotYesslot number from amiga_slots
ctrl_c_onlyNoonly send Ctrl-C and keep the slot

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / ctrl_c_only / description
      Previous value: -"only send Ctrl-C, keep the slot"New value: +"only send Ctrl-C and keep the slot"
    • changedInput schema / properties / slot / description
      Previous value: -"slot number"New value: +"slot number from amiga_slots"
  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?

Goes well beyond the destructiveHint annotation by disclosing the mechanism (Ctrl-C), the three-second grace period, the fallback behavior (slot freed anyway, process left running and shown as stuck), and the data-loss consequence ("loses whatever it had not saved"). That is exactly the operational detail an agent needs before invoking a destructive stop.

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?

Three sentences, no filler: identity/scope first, then behavior with consequences, then the routing rule to the alternative. Each clause carries distinct information the agent cannot infer elsewhere.

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?

For a destructive, non-idempotent two-parameter tool with no output schema, the definition covers what it does, the timeout/fallback path, the failure mode, data-loss risk, and the sibling alternative. Nothing an agent needs in order to call it correctly is missing.

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%, so both parameters are already documented, and the description's mention of the slot number largely restates the schema. It does implicitly contrast with ctrl_c_only by describing the default free-the-slot-after-timeout behavior, but it never names that parameter or explains the keep-the-slot trade-off directly.

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 ("Stop a command started by amiga_run") and pins down the identifier semantics ("by its slot number from amiga_slots"). It explicitly distinguishes itself from the sibling amiga_kill, so the agent can choose without opening either 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?

Names the prerequisite lineage (only commands from amiga_run) and names the alternative with its selection condition: "To stop any other task use amiga_kill." Both the when-to-use and when-not-to-use cases are covered explicitly.

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