Skip to main content
Glama

set_cycles_sampling

Configure Blender Cycles sampling to balance render quality and speed by setting sample counts, adaptive noise thresholds, time limits, light clamps, path guiding, and seeds.

Instructions

Tune how Cycles spends samples. Set the sample count with set_render_samples.

Leave anything unset to keep it.

Args: adaptive: Stop sampling pixels once they are clean enough. noise_threshold: Adaptive cut-off, 0.0 to 1.0. 0.01 is Blender's default; 0.05 renders faster and noisier, 0.001 slower and cleaner. min_samples: Samples every pixel gets before adaptive stopping, 0 to 4096. 0 lets Blender choose. time_limit: Seconds per frame before stopping, 0 to 86400. 0 means no limit. clamp_direct: Cap on direct light per sample, 0 to 1000000. 0 means no clamp. Lowers fireflies at the cost of some energy. clamp_indirect: Cap on bounced light per sample, 0 to 1000000. 10 is Blender's default; lower removes fireflies. path_guiding: Learn where light comes from; helps interiors lit through small openings. CPU only. seed: Noise pattern seed, 0 or more. animated_seed: Change the seed every frame so noise does not stick to the screen in animations.

Returns: Dict with the sampling settings after the change.

Input Schema

NameRequiredDescriptionDefault
seedNo
adaptiveNo
time_limitNo
min_samplesNo
clamp_directNo
path_guidingNo
animated_seedNo
clamp_indirectNo
noise_thresholdNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses partial-update semantics, numeric ranges and defaults for every setting, the speed/noise tradeoff of noise_threshold and the clamp values, and a real constraint ('path_guiding: ... CPU only'). It does not say whether the scene must already be using Cycles or what happens if it isn't, which is the main remaining behavioral gap.

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?

Front-loaded one-line purpose, then a compact per-argument list where every line carries operational value. The trailing 'Returns: Dict with the sampling settings after the change' is largely redundant with the output schema, a small amount of waste in an otherwise tight definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter, zero-required partial-update tool with no annotations, the description supplies ranges, defaults, tradeoffs, one environment constraint, and update semantics — everything an agent needs to call it correctly. Return values are covered by the output schema.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate entirely, and it does — all nine parameters get meaning, valid range, default, and effect (e.g. clamp_indirect: '10 is Blender's default; lower removes fireflies', time_limit: '0 to 86400. 0 means no limit'). This is exactly the information the bare schema lacks.

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 — 'Tune how Cycles spends samples' — and immediately distinguishes itself from the closest sibling by delegating sample count to set_render_samples. An agent can tell this is the adaptive-sampling/quality tuning tool, not the resolution tool.

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?

Explicitly routes the agent to set_render_samples for the raw sample count and states the partial-update rule ('Leave anything unset to keep it'), which is the key invocation pattern. It stops short of naming alternatives for noise cleanup at the render setting level (e.g. set_denoising) or stating prerequisites like the Cycles engine being active.

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

Deploy Server

Other Tools