Skip to main content
Glama

ParCAD

List a part's edges and faces

list_entities
Read-only

List what a part is made of, as text rather than a picture: its visible edges with their centres, directions and lengths, and its faces with what each one is (plane, cylinder, cone, sphere, torus), its exact area, a point on it, its outward normal or axis, and the faces it touches. For a part in several named bodies each edge and face also says which body it is on.

Use the edges to work out which directional or topological selector picks the edges you mean. Use the faces to work out the shape of the part without looking at it — adjacent is the half that carries it, because a plane at z=44 could be the top of a plate or the floor of a pocket and what it borders is what tells them apart. A cylindrical face bordering two planes is a through hole; bordering one is a blind one.

The returned edge@N and face@N ids describe one evaluation and must never appear in a script — there is no face selector in the DSL, so a face is something to read, and the way to act on one is the edges around it.

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": "list_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoThe edge and face to start at, the reply's `next_from`; a reply lists at most 40 of each.
editsNoChanges to make before building, in order, each { old, new } replacing text that appears exactly once; nothing is written back.
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.

Output Schema

NameRequiredDescriptionDefault
fromNo
moreNo
edgesYes
facesYes
next_fromNo
total_edgesYes
total_facesYes
script_sha256Yes
matched_looselyNo

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?

Beyond readOnly/non-destructive annotations, it discloses genuinely non-obvious behavior: edge@N and face@N ids are scoped to a single evaluation and are unsafe to persist, and faces are read-only concepts in this system with no corresponding selector. It also explains what `adjacent` buys you semantically (a plane at z=44 could be a plate top or a pocket floor; a cylinder bordering two planes is a through hole). That is context the annotations could never supply.

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?

It is front-loaded with what the tool returns, then moves to how to use it, then to the critical caveat about ids — a sensible ordering. Three dense paragraphs with some editorial flourish (the plate-versus-pocket example) that earns its place by teaching interpretation, though the return-value enumeration partly duplicates the output schema.

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 read-only listing tool with a rich output schema, the description covers what remains: how to interpret the payload, that ids are ephemeral, that faces cannot be selected, and that multi-body parts annotate body membership. An agent has everything needed to call it and to act on the result.

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 `from`, `edits`, `script`, and `project` including defaults and the 'give this or project, not both' constraint. The description adds nothing about the input parameters themselves — its `body`, `adjacent`, and `next_from` references concern returned data, not inputs. Baseline 3 is correct when the schema does all the work.

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 verb and resource (list a part's edges and faces) and enumerates exactly what is returned for each: edge centres, directions, lengths; face type, area, a point, normal/axis, and adjacent faces. It also clarifies the multi-body case (each item says which `body` it is on), so an agent can tell this apart from evaluate_part, view_part, or probe_part without opening any 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?

It gives clear positive guidance — use the edges to determine which selector picks the edges you mean, use the faces (especially `adjacent`) to infer shape — and a strong exclusion: the returned ids are for reading only and must never appear in a script because the DSL has no face selector. It stops short of naming the sibling tools (e.g. check_selector) that would be the actual next step, leaving that inference to the agent.

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.