Skip to main content
Glama

paint_sample

Read-only

Reads exact RGBA pixel values at specified canvas points from the merged output or a chosen layer, enabling precise color sampling and verification.

Instructions

Read exact RGBA at document pixel points; merged canvas, or one layer (layer_id, or active with sample_merged=false).

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

Input Schema

NameRequiredDescriptionDefault
pointsYes
layer_idNoTarget layer id or unique layer name; the active layer stays unchanged. Default: active layer
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)
sample_mergedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context beyond that, notably the precedence rule that layer_id targets a specific layer while sample_merged=false samples the active layer, and that the default is the merged canvas. It also discloses the return content (exact RGBA), which is useful given there is no output schema. It does not cover what happens for out-of-range points or empty pixels.

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?

A single compact sentence, front-loaded with the core action and the return type, followed by the mode-selection detail. Nothing is redundant, though the parenthetical '(layer_id, or active with sample_merged=false)' is terse enough to require a second read.

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?

For a read-only pixel-sampling tool with four parameters and no output schema, the definition covers the essentials: what is read, from where, and under which layer/merged mode. It omits edge-case behavior (invalid coordinates, empty or transparent pixels), the ordering/shape of the returned sample array, and any note about document_id sharing despite the schema flagging it for multi-agent use.

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?

With only 50% schema description coverage, the description compensates for the two undocumented-in-narrative parameters: it explains that points are document pixel coordinates and that sample_merged=false selects a single layer rather than the merged canvas. That clarifies the non-obvious interaction between layer_id and sample_merged that the schema leaves implicit. document_id is left entirely to the schema, and the point tuple format is never spelled out.

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?

Names a specific verb and resource: read exact RGBA at document pixel points. The scope clause clarifies what is sampled (merged canvas vs. a single layer), so an agent can distinguish this from other paint_* tools that manipulate layers, shapes, or strokes. It stops short of naming a sibling it replaces, which keeps it at 4.

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 description makes clear this is the tool for inspecting pixel values at coordinates, and it explains the layer-vs-merged selection condition. There is no explicit when-to-use framing, no mention of when not to use it, and no alternative named among the many paint_* siblings.

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