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

Amigent – Amiga remote control for AI agents

amiga_wait_window

Waits on the Amiga until a window matching a title opens or closes, optionally only for new windows, so agents can pause for programs, requesters, or dialog completion.

Instructions

Wait on the Amiga itself until a window with this title opens (or closes, gone=True).

title is part of the title, or an AmigaDOS pattern. With new=True only a window that was not open yet counts, e.g. a second requester; right after amiga_start, one that was not open before the start. The Amiga looks ten times a second and the line stays quiet meanwhile, so this is the cheap way to wait for a program, a requester or the end of a dialog.

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": {
      "title": "<title>"
    },
    "name": "amiga_wait_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
newNo
goneNo
titleYes
machineNo
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose useful traits: polling at ten times a second, a quiet line while waiting, and the new=True counting rule. It omits what happens when the timeout (default 30s) elapses, i.e. whether an error is raised or a negative result is returned, which matters for a blocking call.

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 and its gone=True variant are front-loaded in the first sentence, with semantics and machine resolution following. A few clauses (e.g. the repeated new=True examples) are slightly verbose but each carries meaning.

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?

The tool is simple and an output schema exists, so return values need no explanation. The definition covers the tricky semantics of title matching, new, gone, and machine defaults; the only real gap is timeout behavior, which leaves it short of complete.

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%, so the description must compensate and largely does: title is explained as a substring or AmigaDOS pattern, gone and new as window-state flags, and machine as a saved name/ID falling back to AMIGENT_HOST or the sole machine. Only timeout is left entirely undocumented.

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 sentence gives a specific verb and resource: wait until a window with a given title opens or closes. That resource focus (window) implicitly separates it from the other wait_* siblings. It stops short of naming an alternative, so it lands just below the top mark.

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 clear usage context: use it to wait for a program, a requester, or the end of a dialog, and it explains the special new=True case right after amiga_start. There is no explicit when-not guidance or named alternative among the wait_* tools, which keeps it at 4.

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