Skip to main content
Glama

esp_control

Acquire, release, or check a 300-second input lease before controlling a real USB mouse and keyboard, preventing concurrent agents from conflicting over shared input.

Instructions

Input lease. Every input tool needs the control_id from begin. control_busy means another task holds it: do not retry in a loop. The lease expires after 300 s without actions.

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": {
      "operation": "<operation>"
    },
    "name": "esp_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idNobegin: short description of your task, shown to other agents.
operationYesbegin: take the input lease; end: give it back; status: who holds it.
control_idNoend: the control_id returned by begin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the lease model, a 300 s idle expiry, the control_busy conflict signal, and anti-patterns (no retry loops). Remaining gaps are what happens to an in-flight action when the lease expires, and whether 'end' releases immediately for waiting holders.

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

Conciseness5/5

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

Four short, front-loaded sentences covering purpose, prerequisite, failure mode, and expiry. Every sentence carries operational information; nothing is padding despite the terse fragment style.

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 three-parameter coordination tool with no annotations and no output schema, the definition covers the essential mechanics: acquisition prerequisite, contention behavior, and timeout. It could add what 'status' reports and what happens on expiry mid-operation, but an agent can call it correctly as written.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains task_id, operation, and control_id in detail. The description only adds the cross-tool provenance of control_id (it comes from begin), which is a modest increment over the schema baseline.

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 fragment 'Input lease' plus 'Every input tool needs the control_id from begin' makes clear this tool acquires/releases a mutual-exclusion lease that gates the other input tools (esp_click, esp_type, etc.). It effectively distinguishes itself from the action siblings, though it never states the purpose as a plain verb phrase and does not differentiate the 'status' operation from the sibling esp_input_status.

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 when-to-use guidance in the form of a prerequisite ('Every input tool needs the control_id from begin') and an explicit when-not-to-behave-a-certain-way rule ('control_busy means another task holds it: do not retry in a loop'). It lacks explicit guidance on when to call 'end' versus letting the lease lapse, and does not address overlap with esp_input_status.

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