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

Amigent – Amiga remote control for AI agents

amiga_locks

Identifies who holds screen and window layer locks and who waits, helping diagnose stuttering, hangs, or deadlocks on an Amiga screen without taking locks itself.

Instructions

Who holds the layer locks of a screen and its windows, and who waits for them.

For a screen that stutters or hangs: a window being dragged, a program that draws and holds its layer, a deadlock between two tasks. screen_id from amiga_screens, default the front screen. amigentd only looks (under Forbid), it takes no lock itself. 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

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

Input Schema

NameRequiredDescriptionDefault
machineNo
screen_idNo

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?

Without annotations, the description does real work: it declares the operation is observational ('amigentd only looks, it takes no lock itself'), names the Forbid context, and gives a version prerequisite (amigentd 1.4.0). However, 'under Forbid' is left unexplained, so an agent is not told that the machine's multitasking is suspended during the query or how disruptive/slow the call may be — a meaningful gap for a no-annotation tool.

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?

Roughly five short sentences, each carrying information — purpose, scenarios, parameter sourcing, safety note, version requirement — with the diagnostic purpose front-loaded. The mid-sentence line breaks and question-fragment opening are slightly awkward but add no bloat.

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 two-parameter diagnostic read whose return values are covered by an output schema, the definition supplies purpose, triggering symptoms, both parameter defaults, the no-lock safety guarantee, and a daemon version requirement. Only the practical consequence of running under Forbid is missing.

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 description coverage is 0%, so the description must compensate, and it does: screen_id is sourced from amiga_screens and defaults to the front screen, and machine's provenance and fallback chain (AMIGENT_HOST, saved default, sole registered machine) are spelled out beyond the empty-string defaults in the schema.

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 states the resource (layer locks of a screen and its windows) and what is reported (holders and waiters), which is specific enough to distinguish it from general screen tools like amiga_screens. It opens with a question-style fragment rather than a declarative verb phrase, but the meaning is unambiguous.

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 explicitly frames the use case: 'For a screen that stutters or hangs,' with three concrete scenarios (a window being dragged, a program drawing while holding its layer, a deadlock between tasks). It does not name an alternative tool or state when not to use it, so it stops short of full routing guidance.

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