Skip to main content
Glama

ParCAD

Probe a part along rays and points

probe_part
Read-only

Measure a part along rays and at points instead of looking at it. This is the tool for every question of the form 'is there material here', 'how thick is that', 'does this hole break through', 'do these two bores meet' — a render cannot settle any of them, and neither can arithmetic on the script: the script says what was asked for, and this says what was built. Reach for it before you reason from a dimension in the source.

Each point reports medium, either "material" or "void", plus the distance to the nearest surface (negative in material). Each ray reports every crossing in order, each with the medium it passed into and surface_of, the tag of the node whose surface that face belongs to — read those names down the list and they name the features the line went through, which is how you tell two voids that meet from two that do not. Also solid_mm, and first_solid_mm, which is a wall thickness, measured.

A ray that reports no crossings at all crossed nothing but void: that is a positive result, not a failed measurement. Everything is measured on the exact solid — every fillet and chamfer is in it, and a distance near a corner is the true distance — so there is nothing left out to allow for. For a part in several bodies each crossing and point also says which body. On a surface, which has no inside, a point is never material: its distance_mm is to the surface, and a ray lists every place it passes through the surface as a crossing into void.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "probe_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
raysNoLines to measure along.
editsNoChanges to make before building, in order, each { old, new } replacing text that appears exactly once; nothing is written back.
pointsNoPoints to test for material, in mm.
scriptNoA parcad DSL script ending in a returned shape. Give this or `project`, not both.
projectNoThe part to build instead of sending it, as list_projects spells it, or "@session" for the script on the user's screen.
timeout_sNoSeconds the kernel may take to build the part, 1 to 600. Defaults to 20, or PARCAD_OCCT_TIMEOUT.

Output Schema

NameRequiredDescriptionDefault
moreNo
raysYes
unitsYes
pointsYes
script_sha256Yes
unlisted_raysNo
matched_looselyNo
unlisted_pointsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish readOnly/non-destructive/closed-world, and the description stays consistent while adding real behavioral content: measurements are taken on the exact built solid including fillets and chamfers, nothing is written back from `edits`, and a ray with zero crossings is a positive result rather than a failure. That last point is exactly the kind of interpretive caveat annotations cannot carry.

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-loaded with the one-line purpose and the decision rule, then organized by output semantics, then edge cases — a sensible order. It runs long and spends several sentences explaining return fields that the output schema already declares, which is useful interpretation but not free.

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

Completeness5/5

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

For a six-parameter measurement tool with a rich return payload, the description covers what is measured, how to read crossings and media, the multi-body case, the surface case, and the zero-crossing pitfall. Nothing an agent needs in order to call it correctly or interpret the answer is missing.

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 100%, so the schema already documents origin/direction/max_distance/script/project/timeout_s, making 3 the baseline. The description adds interpretive meaning to the results (solid_mm, first_solid_mm as a measured wall thickness, the crossing list naming features) but adds little parameter-level guidance, e.g. when to prefer `edits` over `script`, or how `points` and `rays` combine in one call.

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?

States a specific verb and resource ('Measure a part along rays and at points') and immediately scopes it against the obvious wrong approaches: rendering and reasoning from the script's source dimensions. The enumeration of question shapes ('is there material here', 'how thick is that', 'does this hole break through') lets an agent match a user intent to this tool without opening the schema.

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?

Explicit when-to-use is given, plus two when-not conditions ('a render cannot settle any of them', 'neither can arithmetic on the script') and an imperative 'Reach for it before you reason from a dimension in the source.' It never names a concrete sibling as the alternative, so routing against the nearest overlap (e.g. a dedicated wall-thickness tool) still requires the agent's own judgment.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.