Skip to main content
Glama

raycast

Cast a single ray in world space to return the first hit, distance, point, and surface normal. Use it to measure floors, ceilings, wall thickness, or free space in Blender.

Instructions

Shoot one ray in world space. Returns the first object hit, the distance, the point and the surface normal. Use it to find floors, ceilings, wall thickness and free space.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originYes
directionYes
max_distanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully states that the ray runs in world space and returns the first hit, distance, point, and normal, but omits critical behavior such as what happens on a miss, whether non-mesh objects are ignored, and how max_distance limits results.

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?

Two tightly packed sentences with no filler. The core action and return payload are front-loaded, and the usage sentence follows immediately, so every sentence earns its place.

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?

For a tool with no annotations, no output schema, and 0% schema description coverage, the description covers the return payload and use cases but leaves significant gaps: max_distance semantics, no-hit behavior, and parameter vector formats are all absent. An agent could call it, but with avoidable guesswork.

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%, so the description must compensate. 'World space' clarifies the coordinate frame for origin and direction, but max_distance is never mentioned and no vector format or units are specified, leaving a required parameter and a key optional parameter unexplained.

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 verb and resource ('Shoot one ray in world space') and describes what it returns, so the agent can distinguish it from general measurement or mapping tools. It does not explicitly name or contrast with siblings like line_of_sight, so sibling differentiation is only implicit.

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?

Provides explicit use cases ('find floors, ceilings, wall thickness and free space'), giving clear context for when to reach for this tool. It stops short of naming alternatives such as line_of_sight or viewshed, so the when-not condition is left to inference.

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