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

Amigent – Amiga remote control for AI agents

amiga_screen_diff

Capture a screen or region as a baseline, then compare it later to detect visual changes, returning changed-pixel share, changed-area boxes, and a diff image.

Instructions

Visual regression test: save a picture of the screen (or a region), later compare the screen with it. compare answers the share of changed pixels, the boxes of the changed areas and a picture of them (changed pixels magenta, boxes yellow). threshold: how different a pixel must be (0-255).

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_screen_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
nameNobaseline
widthNo
actionNocompare
heightNo
machineNo
thresholdNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 burden; it does disclose the compare output content (changed-pixel share, changed-area boxes, a magenta/yellow annotated image) and the pixel-difference threshold semantics, which is useful beyond the schema. It does not say what happens on save when a baseline of the same name already exists, where images are stored, or whether the operation is reversible.

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?

Three sentences, front-loaded with the purpose before mechanics and parameter notes; no filler. Slightly dense in the second sentence but every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be spelled out, and the description covers the compare semantics well. However, for a tool with 8 undocumented parameters, no annotations, and two distinct modes, leaving 'action' values and 'name' semantics unstated is a meaningful gap.

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

Parameters2/5

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

Schema description coverage is 0% for 8 parameters, so the description must compensate and only partly does: it explains threshold (0-255) and machine resolution fallbacks, and '(or a region)' hints at x/y/width/height. The 'action' parameter's allowed values and the 'name' baseline identifier are never explained, and the meaning of zero width/height is left to inference.

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 description names a concrete capability (visual regression: save a screen/region snapshot, later compare against it) and describes what compare returns. It is clearly not a plain screenshot tool, but it never explicitly contrasts itself with screen-capture siblings such as amiga_screen_front or amiga_screen_text.

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?

The save-then-compare workflow implies when the tool is appropriate, and the default action of 'compare' is discoverable only by reading the schema. There is no explicit statement of when to use this over other screen tools, nor any exclusion or prerequisite guidance.

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