Skip to main content
Glama

render_cull

Hides scene items the camera cannot see from Iray renders to cut geometry and texture load while keeping lights, walls, and visible objects; restores hidden items afterward.

Instructions

Finds what a camera cannot see and leaves it out of the render, so Iray loads less geometry and fewer textures (faster, and less memory on CPU or a small GPU). Out of the picture, behind the camera, or worn under other clothing: those nodes get "Visible in Render" off. The viewport and the saved file do not change, and restore puts everything back. Keeps things that still matter off screen: walls and ceilings that hold light in, things between a light and the subject, things close to it, lamps that glow, and everything when a mirror is in view. render, render_shots and render_animation do this per shot with cull=true.

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

Input Schema

NameRequiredDescriptionDefault
keepNoLabels never to drop (a figure keeps what it wears).
actionNocheck: only report; hide: take out of the render what the camera does not see; restore: put back what an earlier hide took out.check
cameraNoCamera label; default the viewport camera.
detailNoList every node with its status.
samplesNoFrames of the range to test (spread evenly, ends included).
end_frameNo
occlusionNoworn: also drop clothing hidden under other clothing of the same figure (underwear under a long skirt). none: only what is out of the picture.worn
resolutionNoWidth of the depth buffer for the covered-clothing test.
start_frameNoWith end_frame: an animation range; what is seen at any sampled frame is kept.
depth_marginNocm a worn item must sit behind other clothing to count as covered.
frame_marginNoShare of the picture added on each side before testing.
shadow_marginNocm: keep out-of-picture things this close to the picture (contact shadows, bounce light).
ignore_reflectionsNoDrop out-of-picture things even with a mirror in view.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the exact mechanism (turning off 'Visible in Render'), that viewport and saved file are untouched, and that restore reverts every change — aligning with destructiveHint=false. It also documents the safety heuristics (walls, ceilings, light-to-subject geometry, lamps, mirrors) that explain why things are deliberately kept.

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?

Purpose is front-loaded in the first clause, and every sentence carries information about behavior or exceptions. It runs slightly long as a single dense paragraph, and the sibling-routing sentence is buried at the end where it would be more useful earlier.

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?

For a 13-parameter mutation tool with no output schema, the description is solid: it covers mechanism, reversibility, exceptions and sibling routing. It leaves the check/detail output shape unstated and does not say whether a hide persists across scenes or sessions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 92%, so the baseline is 3, but the description adds real meaning: the 'keep what still matters' list explains which nodes survive, the mirror clause maps to ignore_reflections, and the worn-clothing case maps to occlusion. It does not add meaning for samples, resolution, frame_margin or start/end_frame beyond the schema.

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: it finds geometry/textures the camera cannot see and disables their 'Visible in Render' flag to lower Iray load. It also distinguishes itself from the render family by noting that render, render_shots and render_animation do the same thing per shot via cull=true.

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?

Gives clear context (pre-render cleanup for speed/memory) and names the alternative path — use cull=true on the render tools for per-shot culling. It also implies the check → hide → restore workflow through the description, but never states when not to use it (e.g. scenes where nothing is occluded).

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