Skip to main content
Glama

guided_region_focus

Lets a user drag a loose box over the screen, then returns the gesture and cropped region image so an AI agent can infer the exact UI element.

Instructions

Flash an overlay; user drags a loose box; returns gesture + region JPEG (base64).

The agent should infer the precise UI element from the loose gesture + pixels. Blocks until release (accept) or Esc (cancel). Also saves under latest_focus/.

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

Input Schema

NameRequiredDescriptionDefault
blurNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.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, and it does disclose genuinely important behavior: the call blocks until the user releases (accept) or presses Esc (cancel), it returns base64 JPEG data, and it writes a side-effect file under latest_focus/. Still missing is what comes back on cancel, whether screen-capture permissions or a live GUI session are required, and any note about cost or timeouts on a long block.

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 short sentences, behavior front-loaded in the first line, no filler. The only inefficiency is that return format detail is spent in the description even though a rich output schema already exists.

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?

Core flow is covered, and the existence of an output schema excuses deeper return-value documentation. For an interactive, blocking, side-effecting capture tool with an undocumented parameter and unspecified cancel-path behavior, the description is adequate but leaves real gaps an agent would hit at call time.

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?

The single parameter (blur, default false) has 0% schema description coverage and is never mentioned in the description, so its meaning and effect on the returned image are completely undocumented. With one opaque parameter and no compensating prose, the description does not meet the low-coverage bar.

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?

States a concrete verb and resource: flashes an overlay, has the user drag a box, and returns a gesture plus a region JPEG. That is far more specific than the name alone, but the description never names an alternative (get_region_frame, get_display_frame) or explains how this differs from them, so sibling differentiation is left to the agent.

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?

Usage is implied rather than stated: the agent learns it should interpret the loose gesture itself to find the exact UI element, and that the call blocks until release or Esc. There is no explicit when-to-use versus when-not-to-use rule, no statement that it requires a live human in front of the screen, and no pointer to get_region_frame as the non-interactive alternative.

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