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

Amigent – Amiga remote control for AI agents

amiga_serial_log

Records the Amiga's Emu68 serial debug output over USB with timestamps, reports logging status, shows recent lines, and narrows JIT debug output to address ranges for focused troubleshooting.

Instructions

The Pi's serial debug output (Emu68), recorded on this PC through a USB serial adapter.

"start" records port (COM5, /dev/ttyUSB0; default the only USB adapter) at baud (921600, Emu68's speed) with time stamps until "stop", into the config folder (serial/.log); amigent-serial does the same on its own. Only reads. amiga_debug_log then includes what came, and amiga_status gives the last lines when the Amiga stops answering. "status" tells whether it records, "show" the last lines lines.

"narrow" limits Emu68's JIT debug output to the 68k addresses low..high (hex, e.g. $00F80000) with verbosity 0-3 and disassemble, through Emu68's control registers at run time; "wide" switches that off again (verbosity 0, every address). Both run a small program on the Amiga and need confirm=True; only on Emu68.

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

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "amiga_serial_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
lowNo
baudNo
highNo
portNo
linesNo
actionNostatus
confirmNo
machineNo
verboseNo
disassembleNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose useful traits: the log file location (config folder, serial/<machine-id>.log), the confirm=True gate on narrow/wide, the Emu68-only restriction, and that narrow/wide run a small program on the Amiga at run time. However, the claim 'Only reads' is misleading given that start writes log files and narrow/wide execute programs on the Amiga, leaving the mutation surface ambiguous.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded with background context rather than the action, and the dense run-on sentences with nested parentheses and semicolons make it hard to scan. Most information earns its place, but the structure could be broken into clearly labeled per-action clauses for faster parsing by an agent.

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 10-parameter tool with no schema descriptions and an output schema that covers return values, the description supplies the critical context: action meanings, defaults, the confirm gate, the Emu68 restriction, and destinations for the captured data. The remaining gaps are the unclear mapping of 'verbose' and the ambiguous 'Only reads' framing around file writes and on-target program execution.

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?

Schema coverage is 0% across 10 parameters, so the description must compensate, and it largely does: it explains port (COM5, /dev/ttyUSB0, default the sole USB adapter), baud (921600), low/high as hex addresses like $00F80000, verbosity 0-3, disassemble, lines for 'show', confirm, and machine (defaults to AMIGENT_HOST/default/sole machine). The 'verbose' parameter is only implicitly tied to the 'verbosity 0-3' phrasing, and the action values are not presented as an explicit set, so mapping is not fully airtight.

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 line names a specific resource (the Pi's Emu68 serial debug output captured over a USB serial adapter) and the action sub-modes (start/stop/status/show/narrow/wide) are enumerated. It also distinguishes itself from amiga_debug_log (which consumes the captured output) and amiga_status (which surfaces the last lines when the Amiga stops answering), so an agent can separate it from those siblings, though the multi-action design makes the single primary purpose less immediately obvious.

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?

It gives concrete when-to-use context for each action: 'start' to record, 'stop' to end, 'status' to check recording, 'show' to read the last lines, and it routes the agent to amiga_debug_log and amiga_status for adjacent needs. It also flags the confirm=True prerequisite and the Emu68-only constraint for narrow/wide. What is missing is any explicit note on when to prefer this over the dedicated amiga_emu68_jit tool, which the narrow/wide behavior overlaps with.

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