Skip to main content
Glama

Quote texturing a gray blockout level or environment

texture_project_quote
Read-onlyIdempotent

Plan camera views for a gray blockout level and quote texturing costs before purchase, including model, atlas size, UV stretch, and blurred texel coverage from the planned views.

Instructions

Plan the camera views that would paint a gray blockout level or environment (greybox/untextured scene), and report what texturing it costs before anything is bought: planned views, model and price, the atlas size the bake would choose by measuring the plan, the UV stretch of the level's mapping and how much of that atlas the views would leave blurred. Uses OpenRouter image models with the user's own key at paint time; this quote makes no network call and needs no key. Fails closed with TEXTURE_PROJECT_MISSING_UV when the GLB has no UVs.

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": {
      "levelPath": "<levelPath>"
    },
    "name": "texture_project_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
atlasNoAtlas size in pixels, or "auto" (default) for the smallest power of two that matches what the planned views resolve.auto
holesNoExtra views over the largest unpainted texels players can see, painted until visible coverage reaches 95% (default 12).
modelNoImage model alias: "or-klein" (default), "flux-3", "qwen-2.1-turbo", "qwen-2.1-pro", "muse-image", "or-seedream-lite" or "or:<model id>".or-klein
roofsNoClose roof passes painted with the roof prompt (default 0).
viewsNoMaximum number of camera views to plan (default 36).
aerialNoAerial ring cameras around the level (default 0).
verifyNoOpt-in vision check: one OpenRouter chat call per painted view, priced separately here (default false, so the quote prices images only).
levelPathYesGray blockout level or environment GLB, project-relative; it must carry TEXCOORD_0 (unwrapped).
atlasPagesNoMulti-page UV atlas count (1-4), or "auto" (default) to split large levels across up to 4 atlases for higher texel density.auto
verifyModelNoOpenRouter chat model id with image input for the opt-in vision check (default google/gemini-2.5-flash-lite).

Output Schema

NameRequiredDescriptionDefault
atlasYes
holesYes
modelYes
roofsYes
viewsYes
aerialYes
modelIdYes
uvStretchYes
atlasPagesYes
verifyModelYes
estimatedUsdYes
estimatedVerifyUsdYes
estimatedBlurredTexelPercentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, closed-world profile, and the description adds substantive behavior on top: no network call, no key required, fail-closed behavior with the exact error code TEXTURE_PROJECT_MISSING_UV, and the composition of the report (planned views, model/price, measured atlas size, UV stretch, blurred coverage). That is exactly the extra context annotations cannot express.

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 capability and its key outputs are front-loaded in the first sentence, with operating constraints (no network, no key) and the failure mode in short follow-ups. It is dense for a 10-parameter tool but every sentence carries information; only the OpenRouter/key clause is slightly redundant with the 'no network call' phrasing.

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 an output schema present, the description needn't enumerate return fields and instead summarizes them, while annotations cover the safety profile and the schema covers all ten parameters. The only real gap is what the 'price' is denominated in and whether the quote is deterministic across runs, which the idempotent hint implies but does not explain.

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%, so every parameter including 'atlas' auto-selection, 'verify' pricing, and model aliases is already documented in structured fields. The description echoes the atlas-auto behavior ('the atlas size the bake would choose by measuring the plan') but adds no format, constraints, or tradeoffs beyond what the schema states.

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 — plan camera views for a gray blockout level and report the texturing cost — and pins the scope with 'before anything is bought', which separates it from a paint tool. The parenthetical '(greybox/untextured scene)' removes ambiguity about the input asset type.

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?

'Report what texturing it costs before anything is bought' clearly implies this is the pre-purchase planning step that precedes painting, and it explicitly reassures that no key or network call is needed at quote time. It stops short of naming the paint sibling as the follow-on action or stating exclusions beyond the missing-UV failure case.

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