Skip to main content
Glama

sample_colors

Samples mean colors at specified map points and compares source VTT with rebuilt export, revealing per-channel RGB differences so you can adjust tints by number rather than by eye.

Instructions

Read the mean colour at map points, to match tints by number, not by eye.

For a rebuild: compare the source image with your build at the same
points (a floor patch, a wall, each rug) and adjust tints until max_diff
is a few levels. Tints judged by eye came out 10-20% too saturated.

points: up to 64 [x, y] map woxels, on what you want to compare.
dd2vtt: path to the Universal VTT export the map was rebuilt from. Its
  image is the source, aligned as import_dd2vtt placed it.
export: 'latest' samples your newest export_map render, or name an
  export file; '' skips it. Export with grid=False at the source's
  pixels-per-grid (source_ppg in the reply), after each tint change:
  with the grid drawn, identical floors differed by up to 22 levels.
radius: half-width in woxels of the square averaged around each point
  (default 32, an eighth of a tile). Keep it inside one surface.

Returns each point's colour per source and, with both, diff_rgb (export
minus source, per channel: positive is lighter or more of that channel)
and max_diff. Both images include lighting; compare like with like.

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
dd2vttNo
exportNolatest
pointsYes
radiusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.7/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so: it discloses the 64-point cap, that both images include lighting so comparisons must be like-for-like, that the source image is aligned as import_dd2vtt placed it, and the critical operational constraint to export with grid=False at source_ppg or readings skew by up to 22 levels. It also explains the diff_rgb sign convention.

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 purpose, then per-parameter notes, then return values — a structure that scans well. A few motivating asides ('tints judged by eye came out 10-20% too saturated', the 22-level grid anecdote) are persuasive but slightly beyond strictly necessary 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?

There is no output schema, and the description compensates by describing the reply: each point's colour per source, plus diff_rgb (export minus source, positive meaning lighter) and max_diff when both are supplied. For a four-parameter sampling tool, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, yet every parameter is explained beyond the schema: points are [x, y] map woxels with a 64 cap, dd2vtt is a path to the Universal VTT export whose image is the source, export accepts 'latest', a named file, or an empty string to skip, and radius is a half-width in woxels with default 32 and the instruction to keep it inside one surface.

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 concrete verb and resource — 'Read the mean colour at map points' — plus the goal ('match tints by number, not by eye'). An agent immediately knows this is a measurement/verification tool, distinct from the export/import/add_* build siblings.

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 an explicit workflow: 'For a rebuild: compare the source image with your build at the same points ... and adjust tints until max_diff is a few levels.' That is clear when-to-use and even supplies an acceptance threshold. It does not name a when-not case or point to an alternative sibling tool, so it stops short of a 5.

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

Deploy Server

Other Tools