Skip to main content
Glama
akontadakis
by akontadakis

run_grid

Calculate point-in-time human-centric lighting metrics at specified grid points using Radiance simulation, with optional CSV export.

Instructions

Point-in-time grid HCL metrics via Radiance (oconv -> rtrace -I per channel -> recombine).

scene_sets: 1 list of .rad paths for 3-channel, or 3 lists (blue/green/red bin sets) for 9-channel. points: rows [x,y,z,dx,dy,dz] or a .pts path. Runs Radiance if present, else returns the commands. export_csv: optional path (abs or relative to work_dir) to dump the per-point result table.

sky_files: which scene paths are sky, listed exactly as they appear in scene_sets. Only matters with electric_lights, which builds a sky-free octree for the electric block. Left unset, the sky is DETECTED (gensky/gendaylit primitives, skyfunc, the sky/ground hemispheres, plus a basename hint), which covers the generators this codebase and Radiance use but cannot cover a hand-rolled sky using none of them. Pass it explicitly for an unusual scene — in both directions: to name a sky nothing would detect, or to KEEP a sky-looking file (exterior context) inside the electric octree. A leak here reports daylight as electric light; the electric block carries a lumen_bound (sum of luminaire lumens / grid area) so an over-count is visible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runNo
pointsYes
qualityNo
work_dirNo
sky_filesNo
export_csvNo
rad_paramsNo
scene_setsYes
channel_typeNo
electric_lightsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it delivers substantial context: it discloses the fallback ('Runs Radiance if present, else returns the commands'), the sky-detection heuristic (gensky/gendaylit primitives, skyfunc, hemispheres, basename hint), and even the failure consequence ('A leak here reports daylight as electric light... so an over-count is visible'). This is genuinely useful behavioral disclosure beyond the schema. It falls short of 5 only because it never addresses side effects such as file/octree writes or work_dir mutation.

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

Conciseness3/5

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

The description is front-loaded with purpose and uses parameter names as scannable markers, which is good structure. However, the sky_files paragraph is a dense wall of conditional logic that runs several sentences without a break, making it hard to parse. For a tool this complex some length is justified, but the text is not concise and could be tightened.

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?

Given 10 parameters, 0% schema coverage, and an output schema that covers return values, the description handles the hardest parameter (sky_files) extremely well but leaves run, quality, rad_params, and channel_type entirely undocumented. With no annotations and zero schema coverage, that is a real completeness gap — an agent cannot correctly configure those parameters from this description alone.

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 0%, so the description must compensate, and it does for some parameters: scene_sets (1 list vs 3 lists for 3/9-channel), points (row format [x,y,z,dx,dy,dz] or .pts path), export_csv (abs or relative path), and sky_files (detailed semantics tied to electric_lights). But roughly half the parameters — run, quality, rad_params, channel_type, and electric_lights' own semantics — receive no explanation at all. Partial compensation for a large 10-parameter surface.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific, informative statement: 'Point-in-time grid HCL metrics via Radiance (oconv -> rtrace -I per channel -> recombine)'. This names a clear verb+resource and even spells out the pipeline, which implicitly distinguishes it from siblings like run_annual and run_image. It is not a tautology and not vague, though it never explicitly names a sibling for contrast, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this tool over alternatives such as run_annual, daylight_factor, or run_image. The description explains mechanics (how Radiance is invoked, fallback behavior) but never states the use-case boundary or exclusions. An agent gets no help deciding whether point-in-time HCL grid metrics is the right call versus an annual or imaging sibling.

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