Skip to main content
Glama

esp_screenshot

Capture a monitor or screen region as a scaled image, returning a screenshot_id, origin and scale for clicking on-screen coordinates with the position tools.

Instructions

Screenshot of a monitor (default the primary one) or a region, scaled to max_width. The result gives screenshot_id, origin and scale: pass coords "screenshot" with that screenshot_id to the position tools to click what you see in the image. No lease needed.

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": "esp_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNojpeg (default) or png.
regionNoOr a region in physical screen pixels; it must lie on one monitor.
monitorNoIndex into `monitors` of esp_status (default: the primary monitor).
qualityNoJPEG quality 1..100 (default 80).
max_widthNoLargest image width in px, 100..3840 (default 1568, config screenshot_max_width). Never scaled up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonable work: it discloses the default monitor, the max_width scaling, the shape of the result (screenshot_id, origin, scale), and that no lease is required. It omits cost/latency, failure modes (e.g., what happens with an invalid monitor index or region spanning monitors, though the schema covers the latter), and whether the image is returned inline.

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?

Three dense sentences with no filler: purpose and default first, then the critical coordinate-round-trip instruction, then the lease note. Every clause carries operational information.

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?

No output schema exists, and the description compensates by enumerating the returned fields and their purpose. For a five-parameter, zero-required tool it is nearly complete; the only gap is not stating whether the image payload itself is returned alongside the metadata.

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 100%, so the schema already documents each parameter; the description nonetheless adds the conceptual link that the returned origin and scale are what make coordinates from the scaled image mappable. That is meaning beyond the field-level docs, though it does not restate per-parameter ranges or defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Screenshot of a monitor ... or a region') and states the default scope (primary monitor) plus the scaling behavior. It also distinguishes itself from the position tools by explaining that its output feeds them, so an agent can place it in the workflow without opening a schema.

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 explicit downstream guidance: pass coords "screenshot" with the returned screenshot_id to the position tools to act on what is visible. It also states 'No lease needed', clarifying a prerequisite an agent would otherwise have to guess. It lacks an explicit statement of when to prefer this over esp_status or when not to screenshot.

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