Skip to main content
Glama
Amigent – Amiga remote control for AI agents

Amigent – Amiga remote control for AI agents

amiga_task

Inspect or change an Amiga task's priority, signal it with Ctrl-C, D, E or F, and dump its stack to find hangs or tasks waiting on each other over the network.

Instructions

Look at or change a task: priority (-128..127, 0 is normal; above 5 can starve the system) or signal it with Ctrl-C, D, E or F (e.g. 'C', or 'CD'). stack=N shows what it waits for (SigWait, SigRecvd) and up to N return addresses on its stack, named: for a task that hangs or two that wait for each other. task is a name, a program as amiga_tasks shows it, or an address. Needs amigentd 1.4.0.

machine: saved Amiga name or ID from amiga_machines; defaults to AMIGENT_HOST, the saved default, or the sole registered machine.

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": {
      "task": "<task>"
    },
    "name": "amiga_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes
stackNo
signalNo
machineNo
priorityNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does so well: it warns that priority above 5 'can starve the system', explains that signals map to Ctrl-C/D/E/F, describes exactly what stack=N surfaces (SigWait, SigRecvd, return addresses), and states the daemon version requirement. Gaps remain on reversibility of a priority change and on whether changes take effect immediately.

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 core action is front-loaded and every clause carries information, but the stack sentence is a run-on ('up to N return addresses on its stack, named: for a task that hangs...') that takes a second pass to parse. The machine paragraph is cleanly separated and self-contained.

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 five-parameter mutation tool with an output schema (so return values needn't be described), the definition covers inputs, prerequisites, defaults, and one important hazard. It is only slightly short of complete in not saying whether priority and signal may be combined in one call or whether signaling terminates the target task.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry all five parameters, and it does: task (name / program as amiga_tasks shows it / address), stack (count of return addresses plus wait states), signal (single letters or combinations like 'CD'), priority (-128..127, 0 normal, >5 dangerous), and machine (saved name or ID with the full default-resolution chain). This goes well beyond the bare parameter titles.

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 opening 'Look at or change a task' names both the read and write modes, and the body enumerates the concrete levers (priority, signal, stack). It ties the task identifier back to amiga_tasks output, which distinguishes it from the pure-listing sibling, though it never contrasts itself with amiga_wait_task or amiga_break.

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 implied rather than stated: 'for a task that hangs or two that wait for each other' narrows when stack inspection is worth doing, and the 'Needs amigentd 1.4.0' prerequisite is a useful gate. There is no explicit when-to-use-this-vs-alternatives routing, and no statement of what happens on combinations of priority and signal.

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