Skip to main content
Glama

Match gray blockout level surfaces and props to CC0 Poly Haven assets

texture_project_match_materials
Read-onlyIdempotent

Matches named level surfaces and 3D prop queries to Poly Haven CC0 PBR textures and models using reference images, returning per-query referenceHex values for material selection.

Instructions

Evaluates named level surfaces and 3D prop/object queries against Poly Haven CC0 PBR textures and 3D models using one or more reference images, CIELAB chroma/contrast invariance, and multi-scale gradient energy, extracting referenceHex per query. Default to mode: "lean" (keyless Poly Haven CC0 PBR textures & 3D models + referenceHex fallbacks) unless the user explicitly asks for detailed OpenRouter AI projection.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "texture_project_match_materials"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWorkflow mode: "detailed" (Poly Haven PBR + OpenRouter AI projection) or "lean" (CC0 Poly Haven PBR textures/models + procedural/tint fallbacks only, no API key). Defaults to the server mode.
modelsNo
surfacesNo
topCandidatesNo
referenceImagePathNoPrimary reference image to match against Poly Haven textures/models, project-relative.
referenceImagePathsNoMultiple project-relative reference images (first entry is the default when an item omits referenceImagePath).

Output Schema

NameRequiredDescriptionDefault
modeYes
resultsYes
modelResultsYes
requiresOpenRouterKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world, and non-destructive behavior, and the description adds useful process detail: reference images, CIELAB chroma/contrast invariance, multi-scale gradient energy, referenceHex extraction, and keyless lean-mode fallbacks. It does not cover rate limits or authentication details, but the behavioral bar is lower given the annotations.

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?

The description is two sentences and front-loads the core evaluation operation before specifying the default mode. It is dense with algorithm terms but does not contain obvious filler or repetition.

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 six-parameter matching tool with an output schema, the description covers the main workflow, mode default, and referenceHex extraction. It still leaves several parameters and selection criteria unexplained, and it does not clarify how this tool relates to sibling search tools, so completeness is adequate but not full.

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 50%, and the description adds some meaning by mentioning named surfaces, 3D prop/object queries, one or more reference images, referenceHex per query, and the lean/detailed mode default. It does not explain parameters such as topCandidates, homogeneous, crop, maxPolycount, or dimensionsMeters, 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?

The description states a specific operation: evaluating named level surfaces and 3D prop/object queries against Poly Haven CC0 PBR textures and models. It clearly identifies the resource and the reference-image matching workflow, though it does not explicitly distinguish itself from siblings like polyhaven_search_assets or asset_search.

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 implied by the matching workflow and the title's blockout-level context, and the description gives mode guidance: default to lean unless the user explicitly asks for detailed OpenRouter AI projection. However, it does not explicitly say when to use this tool instead of the sibling asset-search tools.

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