Skip to main content
Glama

viewshed

Read-only

Compute visibility from a point in a Blender scene, returning visible and hidden areas, farthest sight distance, and a map for spawns, sniper spots, hiding places, or objectives.

Instructions

What can be seen from a point: for each reachable cell, a ray from the eye to a point target_height above the floor. Returns visible and hidden area, the farthest visible distance and a map. Use it for spawns (what does an enemy see?), sniper spots, hiding places, objective visibility. The area is the one that contains the point.

Input Schema

NameRequiredDescriptionDefault
cellNo
namesNo
pointYes
max_stepNo
max_rangeNo
eye_heightNo
agent_heightNo
agent_radiusNo
max_slope_degNo
target_heightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / cell / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / cell / default
      Previous value: -0.5New value: +null
    • removedInput schema / properties / cell / type
      Removed value: -"number"
  2. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds useful behavior (returns visible and hidden area, farthest visible distance and a map, scoped to the area containing the point), but says nothing about computational cost, sampling density, or how max_step/max_range affect results.

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-loads the core operation in the first sentence, then adds return contents and use cases without padding. Every sentence earns its place, though the run-on first sentence could be split for readability.

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?

It compensates for the absence of an output schema by describing what is returned. But with 10 parameters at 0% coverage and no sibling differentiation against line_of_sight/sightline_map, an agent lacks enough to invoke it confidently; the definition is adequate but not complete for a tool of this complexity.

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

Parameters2/5

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

Schema description coverage is 0% across 10 parameters, so the description must carry the burden. It only explains one parameter (`target_height`) and the scoping of `point` via 'the area that contains the point'; the remaining eight (cell, names, max_step, max_range, eye_height, agent_height, agent_radius, max_slope_deg) are left entirely undocumented, leaving the agent guessing at units, defaults meaning and interactions.

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?

States a specific operation (viewshed computation from a point) and the exact geometry it uses, a ray from the eye to a point `target_height` above the floor. This is far more than a tautology and lets an agent understand the resource, but it never names or contrasts the highly similar siblings line_of_sight, sightline_map or raycast.

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?

It offers concrete use cases (spawn visibility, sniper spots, hiding places, objective visibility), which is genuine implied guidance. However it gives no when-not-to-use and no routing to the obvious alternatives line_of_sight or sightline_map, which an agent will struggle to choose between.

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