Skip to main content
Glama

ParCAD

Check the fit

check_fit
Read-only

Lay a reference object against a part and measure how they sit, on the two exact solids: verdict is clear, touching or interfering; interference_mm3 is the material the two share, which is what would have to be cut away for the object to fit, and depth_mm at deepest_mm is how far one reaches into the other — the number to read, since a volume is not a depth; clearance_mm and closest_mm say how much room there is and where, when they do not overlap, and contact_mm2 over contact_patches patches says how much of a face they share when they touch, which is what tells a seat from a corner. This is the question 'does the laptop fit in its holder' or 'does the lid clear the boss', and neither a render nor arithmetic on the script can answer it — the script says what was asked for and this measures what was built.

Both arguments are scripts. The reference is usually one line drawing the object where it sits, e.g. a 16-inch MacBook Pro as return box(355.7, 248.1, 16.8).at(0, 0, 18.4). A holder is right when the reference is clear by about the clearance it was drawn with, and wrong when it interfering — the depth and where it is deepest say by how much. When both objects are bodies of one part — return { holder, laptop } — evaluate_part already measures the pair in between_bodies, with the same verdict and numbers, and no second call is needed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "reference": "<reference>"
    },
    "name": "check_fit"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsNoChanges to make to the part before building, in order, each { old, new } replacing text that appears exactly once; nothing is written back.
scriptNoThe part, as a parcad script. Give this or `project`, not both.
projectNoThe part as saved, instead of sending it: a path as list_projects spells it, or "@session" for the script on the user's screen.
referenceYesThe object laid against it, as a parcad script placed where it sits — usually one line, e.g. `return box(355.7, 248.1, 16.8).at(0, 0, 18.4)`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly/non-destructive/closed-world, so the bar is lower, and the description still carries the full interpretive burden of the result: what verdict values mean, that interference_mm3 is material to cut away, that depth_mm at deepest_mm is the number to read rather than the volume, and what clearance_mm/closest_mm versus contact_mm2/contact_patches distinguish. It is silent on cost, latency, or failure modes for malformed scripts, which keeps it off a 5.

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 core action and then the result interpretation, which is the right order given there is no output schema. The em-dash-chained sentences are dense and the output-semantics run-on is long, but every clause carries information an agent needs.

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?

With no output schema and a results-heavy tool, the description fully covers what comes back and how to read it, when to call it, when to call evaluate_part instead, and how to construct the reference argument. Nothing an agent needs in order to call this correctly 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 baseline applies. The line 'Both arguments are scripts' plus the worked reference example reframes the relationship between the arguments, but the example is verbatim from the schema and the edits/script/project parameters get no mention in the description.

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?

Opens with a concrete verb and resource: 'Lay a reference object against a part and measure how they sit,' then names the exact inputs and outputs of the operation. It also distinguishes itself from evaluate_part by scoping out the both-bodies-of-one-part case, so an agent can route without opening either schema.

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

Usage Guidelines5/5

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

Gives the archetypal questions this tool answers ('does the laptop fit in its holder', 'does the lid clear the boss') and rules out two plausible alternatives (a render, arithmetic on the script). It also names the explicit when-not case and the substitute: when both objects are bodies of one part, evaluate_part already reports the pair in between_bodies and no second call is needed.

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.