Skip to main content
Glama

Sample colors

sample_colors

Read pixel colors at specified points from a painting’s composite or a single layer, returning hex, alpha, and HSL values for color matching or inspection.

Instructions

Eyedropper: read colors at points from the composite (or one layer). Returns hex, alpha and HSL.

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

Input Schema

NameRequiredDescriptionDefault
layerNoSample a single layer instead of the composite
pointsYes
radiusNoAverage over a (2r+1)² square

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose the key behavior: it is a read, it works on the composite or a chosen layer, and it returns hex, alpha and HSL rather than just a color. It does not mention out-of-bounds points, error behavior, or cost of large point arrays, which keeps it from 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.

Conciseness5/5

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

Two short sentences, front-loaded with the action and scope, and the return payload is stated immediately after; nothing is wasted.

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?

There is no output schema, so it is useful that the description names the return fields (hex, alpha, HSL). For a simple 3-param read tool this is nearly complete, though edge-case behavior for invalid points is unaddressed.

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 67%, and both the layer param and the radius averaging are already documented in the schema; the description only restates the composite-vs-layer distinction and says nothing about the points array format or what radius averaging does to the returned value.

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?

'Eyedropper: read colors at points from the composite (or one layer)' states a specific verb (read), resource (colors at points), and scope (composite vs single layer), which clearly separates it from siblings like fill, stroke, or filter.

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 only implied by the eyedropper framing and the 'composite (or one layer)' parenthetical inside the schema param; the description never says when to prefer this over get_state or analyze, nor any preconditions.

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