Skip to main content
Glama

sample_pixel

Read pixel values from a node's output in working space, defaulting to the centre pixel, current frame, and RGBA channels.

Instructions

Read pixel values (working space) from a node's output; default centre pixel, current frame, rgba.

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
nameYes
frameNo
channelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that this is a read-only operation and that values come from the working space rather than display space. It says nothing about permissions, cost, out-of-bounds coordinates, invalid node names, or rate limits, so the behavioral picture is only partly filled in.

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 with the action front-loaded and defaults trailing; every clause carries information. Slightly telegraphic phrasing ("default centre pixel, current frame, rgba") costs minor readability but not length.

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 5-parameter tool with no annotations and no output schema, the description should say what a sample returns (scalar per channel? list? tuple?) and how failures behave. It establishes the core semantics but leaves the return shape and error behavior unspecified.

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 description coverage is 0%, so the description is the only source of parameter meaning: it implies x/y default to centre, frame defaults to current, and channels default to rgba. It does not clarify whether x/y are pixel indices or normalized coordinates, nor what channel name strings are accepted, so it only partially compensates for the coverage gap.

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?

States a specific verb and resource ("Read pixel values ... from a node's output") and scopes it to the working space, which separates it from render/view_node style siblings. It is clear but does not explicitly name which sibling to use instead when sampling is the wrong approach.

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: the defaults (centre pixel, current frame, rgba) suggest the common no-argument call, but there is no statement of when to prefer this over view_node, render, or get_node, and no prerequisites or exclusions are given.

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