Skip to main content
Glama

paint_region

Defines named rectangular document regions and stores them in a project so snapshots can compare stable image details across preview views.

Instructions

Named document region [left,top,right,bottom], stored in project. Use paint_snapshot(region=name) for stable detail comparisons across preview views.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
actionNodefine
rectangleNo
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. 'Stored in project' does disclose persistence, but the destructive delete action is never mentioned, nor is the fact that define presumably requires a rectangle, nor that get is a pure read. A mutation-capable tool with an undisclosed delete path is a meaningful gap.

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?

Two short sentences, front-loaded with the resource definition and no filler. Brevity is not the problem here; the definition is under-specified rather than padded.

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

Completeness2/5

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

A four-parameter tool with a three-way action enum, no annotations and no output schema needs more than this. The description leaves the core mode semantics, deletion consequences, and the define/rectangle relationship entirely undocumented, so an agent cannot confidently invoke anything but the default path.

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 coverage is only 25% (only document_id is documented), so the description has room to compensate. It does add real value by specifying the rectangle ordering [left,top,right,bottom], which the schema does not, but the action enum's three values are left completely unexplained and the description never ties rectangle to the define action.

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

Purpose3/5

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

The description identifies the resource ('Named document region') and the rectangle coordinate order, but it is a noun phrase with no verb, and it never mentions the define/get/delete modes that the tool actually supports. An agent learns what a region is, not what calling this tool does.

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?

The one guidance sentence routes the agent to paint_snapshot(region=name) for stable detail comparisons, which implies the region is meant to be referenced by other tools. There is no when-to-use vs. when-not guidance for this tool itself, no indication of which action to pick, and no exclusions.

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