Skip to main content
Glama

Diff two skins

texel_diff
Read-onlyIdempotent

Compare two Texel skin specs pixel by pixel to see which faces changed, confirming a patch touched only intended areas. Returns a magenta changed-pixel mask over the texture map.

Instructions

Compare two specs pixel by pixel and report which faces changed. Use it to confirm a patch touched only what you intended. Returns the changed-pixel mask over the texture map (magenta = changed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterYesA Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1
beforeYesA Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
facesYes
changedPixelsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and closed-world scope, so safety is covered. The description adds genuine value beyond that by describing the return artifact (changed-pixel mask over the texture map) and the magenta encoding for changed regions.

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?

Three compact sentences, front-loaded with the core action and ending with the return convention. Nothing is wasted, though the return-value sentence partially overlaps with the existing output schema.

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?

With a full output schema, rich annotations, and fully documented parameters, the description only needs to frame intent and it does so. A brief note on what inputs are accepted (JSON object vs. text) would close the small remaining gap.

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 100% and both before/after parameters are fully documented in the schema, including the skinspec.v1 format reference. The description adds no additional parameter-level guidance, so the baseline 3 applies.

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 (compare/diff) and resource (two skin specs) plus the output granularity (per-face, pixel by pixel). This clearly distinguishes it from write-oriented siblings like texel_patch or rendering siblings like texel_render.

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?

"Use it to confirm a patch touched only what you intended" gives a concrete scenario, implicitly positioning it after texel_patch. It does not, however, name an alternative tool or state any when-not-to-use condition.

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