Skip to main content
Glama

marks

Read-only

Captures a window screenshot with numbered red overlays on accessible controls and returns a JSON legend mapping each number to role, name, value, and click coordinates.

Instructions

Set-of-Marks capture: a screenshot of the window WITH its accessible controls drawn as numbered red marks, plus a JSON legend mapping each number to the control's role, name, current value, and exact global click point. One glance replaces the estimate-zoom-estimate loop for every control the accessibility tree knows: read the number off the image and call click_ui(mark=N) (or pointer at the legend's x,y). window is an address from desktop (default: focused); name filters the marked controls. Falls back to the plain legend when ImageMagick is not installed, and to a fall-back-to-vision note when the app exposes no tree (then use screenshot + zoom).

Input Schema

NameRequiredDescriptionDefault
nameNo
windowNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.4

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the bar is lower, yet the description adds genuine degradation behavior: falling back to a plain legend when ImageMagick is missing, and to a fall-back-to-vision note when no tree exists. It does not cover return shape edge cases or performance costs, keeping it short of a 5.

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?

Front-loaded with the core purpose and the payoff (one glance replaces the zoom loop); the trailing sentences on params and fallbacks are information-dense. It is slightly long with stacked parentheticals, but each sentence carries actionable content.

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

Completeness5/5

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

Given an output schema exists, the description need not detail the legend's exact return structure, and it still sketches it. Combined with sibling routing, param semantics, and both failure modes, an agent has everything needed to call `marks` correctly.

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: `window` is explained as an address from desktop with focused as default, and `name` as a filter over the marked controls. Both parameters gain meaning not present in the bare schema, though format syntax for the address string is not spelled out.

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?

States a specific verb and artifact: a screenshot of a window with accessible controls drawn as numbered red marks, plus a JSON legend mapping numbers to role/name/value/click point. This is clearly distinguishable from the sibling `screenshot` (plain image) and `zoom` (magnified view) because it names the marking behavior explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: 'read the number off the image and call `click_ui(mark=N)` (or `pointer` at the legend's x,y)', replacing the estimate-zoom-estimate loop. It also states the when-not case by naming the fallback to `screenshot` + `zoom` when the app exposes no accessibility tree.

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