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

Amigent – Amiga remote control for AI agents

amiga_drag_measure

Measures how reliably a window follows dragging by its title bar, recording per-step frame timing, median, p95 and max delays, and steps where the window failed to move.

Instructions

Measure how smoothly a window follows when it is dragged by its title bar.

amigentd drags it itself, at priority 21 above input.device: zigzag (8 steps one way, 8 back) or jumps (4 steps' worth each way in turn), steps of step pixels, and records each frame: time per step, how long input.device took the event, where the window and the pointer are. Shows median, p95 and max ms per step and the steps the window did not move. window is part of its title or its id from amiga_ui_tree; it must be on the front screen with its title bar uncovered. It ends where it started. 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": {
      "window": "<window>"
    },
    "name": "amiga_drag_measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepNo
stepsNo
windowYes
machineNo
patternNozigzag

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses that amigentd performs the drag itself at priority 21 above input.device, that it moves the window (a side effect), and critically that 'It ends where it started', which tells the agent the window position is restored. It also names the version dependency and the front-screen/title-bar preconditions.

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 purpose is front-loaded in the first sentence and every subsequent sentence carries operational information. The mid-section is dense and run-on with hard line breaks inside sentences, which hurts scanability, but little is actually wasted.

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 tool with no annotations, the definition covers preconditions, side effects, restoration of state, dependency version, and what is measured. Because an output schema exists, the description needn't document return values, and it only briefly gestures at them (median, p95, max ms per step, non-moving steps). That brief mention is adequate rather than exhaustive.

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 it largely does: window accepts a title fragment or an id from amiga_ui_tree, step is the pixel size of each step, pattern's two values (zigzag, jumps) are described, and machine's defaulting chain is spelled out. The 'steps' parameter is only indirectly conveyed through the zigzag/jumps phrasing ('8 steps one way, 8 back'), leaving its exact role slightly murky.

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?

Opens with a specific verb and object: 'Measure how smoothly a window follows when it is dragged by its title bar', which is clearly distinct from a plain drag tool like amiga_drag. It also names amiga_ui_tree as the source of the window identifier. It stops short of explicitly contrasting itself with amiga_drag, so the sibling differentiation is implied rather than stated.

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?

Gives concrete preconditions: the window 'must be on the front screen with its title bar uncovered' and the tool 'Needs amigentd 1.4.0'. It also explains how to obtain the window argument. It never states when an agent should prefer this measurement over a plain drag, which is the one clear gap.

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