Skip to main content
Glama

Inspect reference

inspect_reference
Read-only

Read colors from a frame's reference image (the one the frame remembers from a comparison, or reference), instead of guessing them from a screenshot: the image's main colors, the exact color at points, and the main colors of areas (or of where an element of the frame is). Coordinates are frame CSS px, as in comparisons.

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": {
      "fileId": "<fileId>",
      "frameId": "<frameId>"
    },
    "name": "inspect_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorsNoSize of the palette.
fileIdYes
nodeIdNoAlso the main colors of the reference where this element is rendered (id#n: its n-th copy in a template's rows; instanceId>nodeId: an element drawn by an instance).
pointsNo[x, y] in frame CSS px: the color of each pixel.
frameIdYes
regionsNoAreas in frame CSS px: their main colors (background, then text...).
referenceNo/api/assets/<id> or https URL. Omit to use the frame's reference.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the description's job is lighter. It still adds real context: where the reference image comes from (a remembered comparison or an explicit `reference`) and that coordinates follow the same frame CSS px convention as comparisons. It does not describe response shape, but the outputs are summarized.

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-loads the core purpose, then a colon-led enumeration of what can be read, then a coordinate caveat. Dense but every clause carries information; the single long sentence is slightly harder to parse than it could be.

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 7-parameter read tool with no output schema and no nested objects, the description covers purpose, data source, and coordinate semantics. A short note on whether all three output groups are returned together would make it complete, but nothing essential for correct invocation is missing.

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 71% schema coverage, the schema already documents colors, points, regions, and nodeId. The description adds meaning beyond it by explaining the `reference` fallback ('Omit to use the frame's reference') and by pinning the coordinate system to frame CSS px, which is crucial for points and regions.

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 and resource ('Read colors from a frame's reference image') and enumerates the three outputs: palette colors, colors at points, and colors of regions. It also distinguishes itself from screenshot-based color reading, so an agent can tell it apart from get_screenshot.

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?

Explicitly frames the usage as an alternative to 'guessing them from a screenshot', which gives a clear selection rule. It stops short of naming the sibling tool or stating when-not-to-use conditions (e.g., when no comparison exists).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.