Skip to main content
Glama

Bake Texture

bake_texture
Destructive

Bakes mesh materials into a PNG using a UV map and Cycles CPU, restoring render settings and selection afterward. Use it for procedural materials and ambient occlusion.

Instructions

Bake a mesh's materials into a PNG through a UV map with Cycles (CPU), wired into them; render settings and selection are put back. Returns: path, size, seconds, image_driven channels. WHEN TO CALL: for procedural materials, AO.

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": {
      "object": "<object>",
      "path": "<path>"
    },
    "name": "bake_texture"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes*.png, only over a PNG
sizeNoPixels a side (1024)
typeNoDefault diffuse; ao multiplies base colour
objectYesName
uv_mapNoDefault active
samplesNoDefault 32
timeoutNoSeconds (120)
from_objectsNoHigh-poly sources
use_in_materialNoDefault true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With destructiveHint=true already flagged, the description usefully adds that render settings and selection are restored afterward and that baking runs on CPU via Cycles — real context beyond the annotations. It omits the most relevant destructive detail: that the target PNG at `path` is overwritten, which matters given destructiveHint=true.

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?

Compact and front-loaded: action first, then a returns line, then a WHEN TO CALL marker. Some phrasing is telegraphic to the point of ambiguity — 'wired into them' has no clear referent — but there is no padding.

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 nine-parameter, mutating operation with no output schema, the description does well to enumerate return fields and state restoration. It still leaves the side-effect surface underspecified: whether the existing PNG is replaced, what a timeout does mid-bake, and what 'image_driven channels' actually contains.

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 the schema already documents all nine parameters including enums and defaults, setting the baseline at 3. The description adds no parameter-level meaning beyond a passing mention of 'image_driven channels' in the return line.

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 — bake a mesh's materials into a PNG via a UV map using Cycles on CPU — which no sibling tool covers. An agent can distinguish this from render_preview or export_file without opening the schema.

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?

There is a 'WHEN TO CALL' section, but it only names two narrow cases ('procedural materials, AO') with no conditions for choosing a different tool and no when-not guidance. Notably, 'AO' is already a bake type in the enum, so the guidance is partly redundant with the schema.

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