Skip to main content
Glama

Keep only the part of the picture that matters

qa_shot_crop

Set or clear the export rectangle for a screenshot in image pixels so evidence focuses on one area; the full bitmap stays, letting you widen the region without retaking the shot.

Instructions

SET OR CLEAR THE REGION a shot exports. The crop is a rectangle remembered beside the marks, NOT applied to the bitmap — so the edge can be pulled back out afterwards, by you or by the tester, and «a bit more on the left» never means «take the screenshot again». Pixels are image pixels, the same ones qa_screenshot maps and qa_shot_mark draws in. Pass no rectangle to go back to the whole picture. This is the difference between a screenshot of a page and evidence about one thing: a reader who is handed eight thousand pixels and told «it is visible here» cannot see it.

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": {
      "shot": "<shot>"
    },
    "name": "qa_shot_crop"
  }
}

Input Schema

NameRequiredDescriptionDefault
cropNoIn image pixels. Omit to clear the crop and export the whole picture again.
shotYesThe name from qa_shot_list
tabIdNoTarget tab (from qa_tabs); omit for the active tab

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.2/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 well: it discloses that the crop is remembered metadata rather than baked into the bitmap, that it is reversible by either party, and that it does not force re-capture. Missing are failure behavior for an unknown shot name and whether the crop affects only subsequent exports.

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

Conciseness3/5

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

The imperative and the reversibility rule are front-loaded, which is right. But the closing rhetorical asides («a bit more on the left», «eight thousand pixels») are persuasive padding rather than operative instruction, so several clauses do not earn their place.

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, no-annotation, no-output-schema tool, the description covers purpose, reversibility, clearing, and coordinate system. It is only thin on error handling and on exactly when a non-null crop should be set versus skipped.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: the coordinates are image pixels matching qa_screenshot and qa_shot_mark, and omitting the crop object is the documented clear path. It still leaves x/y/w/h origin-and-extent semantics to the schema.

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 pair and resource: 'SET OR CLEAR THE REGION a shot exports.' It also distinguishes itself from siblings by anchoring coordinates to qa_screenshot and qa_shot_mark, so an agent knows this is crop metadata, not a capture or drawing tool.

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 a clear usage framing — crop when you need evidence about one thing rather than a whole-page screenshot — and explicitly says omitting the rectangle restores the full picture. It does not name a competing sibling or state a when-not-to-use case, 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.