Skip to main content
Glama

raycast_triangle_intersection_fast

Computes ray-triangle intersection using Möller-Trumbore, returning distance t, barycentric coordinates (u, v), and surface normal orientation for 3D geometry.

Instructions

Executes Möller-Trumbore ray-triangle intersection tests, determining intersection distance $t$, barycentric coordinates $(u, v)$, and surface normal orientation. (0.020 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are present, so the description carries the disclosure burden. It transparently describes the mathematical behavior, the computed outputs, and the 0.020 USDC cost, but it does not address edge cases such as parallel rays, no-intersection results, coordinate conventions, or payment failure behavior. It is partial but not misleading.

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 a single front-loaded sentence stating the operation and its outputs, followed by a compact cost note. Every word contributes information, with no filler or repetition.

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

Completeness2/5

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

With no output schema, no annotations, and a generic payload description, the tool definition does not provide enough information for an agent to construct a valid request. The mathematical intent is clear, but the required JSON payload structure, coordinate system, vertex ordering, and return format are all undocumented, which is a significant gap for a parameter-driven computation tool.

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 coverage is 100%, so the baseline is 3. The payload property description only says 'Input parameters or JSON string payload', which is generic; the description adds algorithm context but does not explain how to encode ray origin, direction, triangle vertices, or other required inputs. It neither improves nor harms the schema's already limited parameter semantics.

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 names a specific algorithm (Möller-Trumbore), the exact operation (ray-triangle intersection tests), and the concrete outputs (distance t, barycentric u/v coordinates, normal orientation). This is specific enough to distinguish the tool from every sibling in the list, none of which perform ray-triangle intersections.

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 about when to use this tool versus alternatives, no prerequisites, and no exclusions. The description only states what the tool does and its cost; an agent is left to infer selection solely from the tool name and mathematical description.

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