Skip to main content
Glama

lightprobe-generate-grid

Generate a 3D grid of light probes within local light influence ranges, using density gradients for optimal placement and raycasting to avoid geometry.

Instructions

Generate Light Probes in a 3D grid within local light influence ranges. Supports density gradient: denser probes near light centers, sparser at edges. Scans Point/Spot/Area lights, skips Directional lights. Uses raycasting to find ground level and Physics.CheckSphere to avoid placing probes inside geometry. Use 'lightprobe-analyze' first to get recommended spacing values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spacingXZNoHorizontal spacing between probes. Default: 33
spacingYNoVertical spacing between probes. Default: 22
heightLevelsNoNumber of vertical layers of probes above ground.3
groundOffsetNoHeight offset from ground for the first probe layer.0.5
groupNameNoName of the LightProbeGroup GameObject to create.LightProbeGroup_Auto
insideCheckRadiusNoRadius for CheckSphere to reject probes inside geometry. Set to 0 to disable.0.300000012
useDensityGradientNoEnable density gradient: denser probes near light centers (d<0.4 range → half spacing), standard spacing at mid-range (0.4-0.8), sparser at edges (>0.8 → double spacing). When false, uses uniform spacingXZ everywhere.true
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does an excellent job describing the tool's behavior: scanning specific light types, using raycasting and Physics.CheckSphere for placement, implementing density gradients, and creating a LightProbeGroup GameObject. The only minor gap is not explicitly stating this is a write/mutation operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly structured and concise - four sentences with zero waste. Each sentence adds critical information: the core functionality, technical implementation details, light type handling, and prerequisite usage guidance. It's front-loaded with the main purpose.

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 complex 7-parameter tool with no annotations and no output schema, the description provides substantial behavioral context. It explains what the tool does, how it works, and when to use it. The only gap is not explicitly describing the return value or output format, which would be helpful given the absence of an output schema.

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?

With 100% schema description coverage, the schema already documents all 7 parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema, so it meets the baseline expectation but doesn't provide additional semantic context.

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?

The description clearly states the specific action ('Generate Light Probes in a 3D grid') and resource ('within local light influence ranges'), with additional technical details like density gradient and light type scanning. It explicitly distinguishes from sibling 'lightprobe-analyze' by stating when to use that tool first.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('Use 'lightprobe-analyze' first to get recommended spacing values') and when not to use it ('skips Directional lights'). It also mentions the alternative tool by name, giving clear context for tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server