Skip to main content
Glama

ProtoJoint

Check what is enclosed

check_enclosed
Read-onlyIdempotent

Whether bodies lie wholly inside the room other bodies close round them - a battery with its plugs and leads in a case and its lid - where the design stands. For each body: enclosed or not; the part of it that shows, seen from outside past the enclosure in more than a quarter of the directions round it (its box, how far out it reaches); the enclosure bodies it is into (an overlap, which check_interference measures); its clearance, the least gap to the enclosure. A slot, a vent or the gap round a lid lets out only what lines up with it, so what is well inside stays inside and what comes up to an opening shows. Parts that move against the enclosure: check at each pose that matters (set_joints).

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": {
      "bodies": "<bodies>",
      "enclosure": "<enclosure>"
    },
    "name": "check_enclosed"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodiesYesThe bodies to check, by name or "feature:k" key; a part stands for all its bodies.
enclosureYesThe bodies or parts that close round them: a case and its lid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered and the bar is lower. The description does add real behavioral context beyond that: openings (slots, vents, lid gaps) only expose what lines up with them, and the exposed portion is defined as the part visible past the enclosure in more than a quarter of directions. It still says nothing about cost, limits, or what the returned geometry actually looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense but poorly ordered: the first clause is a syntactically tangled restatement of the title, and the return-value list is packed into a run-on sentence with parenthetical asides. Information is present but not front-loaded, so an agent must parse twice to find the operative facts.

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

Completeness4/5

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

For a two-parameter read-only analysis with no output schema, the description covers what is checked, how 'exposed' is defined, how openings affect the result, and what the cross-reference to check_interference means. The main gap is confirming the result shape (per-body record fields) and whether the check is geometric approximation or exact.

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 both parameters are already documented, including the part-naming convention. The description reinforces the intent (bodies = parts like a battery with plugs and leads; enclosure = a case and its lid) but adds no syntax, format, or edge-case detail beyond the schema. Baseline 3 applies.

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?

The description names a specific analysis (whether bodies lie wholly inside an enclosure) and enumerates what it reports back: enclosed status, exposed portion and its reach, overlapping enclosure bodies, and clearance. It distinguishes itself from check_interference by noting that overlap is measured there, but the convoluted opening clause ("bodies lie wholly inside the room other bodies close round them") makes the core purpose harder to extract than it needs to be.

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?

It routes the agent explicitly to two siblings: check_interference for the overlap case, and set_joints to check moving parts at each relevant pose. That is concrete when-to-use and when-to-use-something-else guidance. It stops short of stating any exclusions or prerequisites (e.g. that bodies must exist, or when not to bother checking).

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.

Resources