Ottogeo — CAD MCP Server
v0.10.1Measure STEP CAD files with your AI assistant: walls, clearances, draft, and revision diffs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect Inspect Model Overview
Inspect a local STEP artifact by filesystem path or file: URI. Returns its content revision with dimensions, counts, and B-rep validity. Call this first; use the returned artifact reference for entity searches and measurements. Lengths are in the declared unit, which is labelled on every result. Bounding boxes are conservative envelopes, and volume is null when the file has no solid material. Use include to request only size, counts, and/or health sections.
| Parameter | Type | Description |
|---|---|---|
uri * | string | STEP file to read, as a file: URI or an absolute filesystem path. |
include | array | Sections to return. Omit for all three; ask for fewer to save context on a large assembly. |
find_entities Find Model Entities
Find faces, edges, vertices, or solid bodies in the revision-bound artifact returned by inspect, optionally scoped to an assembly component_name. Use this before measure, because every measurement names entity IDs rather than coordinates, and follow pagination until has_more is false whenever a count or a minimum matters. Faces support surface_type, area, and radius filters (e.g. { surface_type: "cylinder", min_radius: 2 }); edges support curve_type, length, and radius; vertices return coordinates and bodies return volume. IDs are producer- and revision-scoped: they are valid only for this ser…
| Parameter | Type | Description |
|---|---|---|
artifact * | object | Revision-bound STEP reference from inspect (uri + sha256 revision). The revision must still match the file on disk. |
entity_type * | string | Entity category to search. |
component_name | string | Optional component scope from inspect.structure.component_occurrences; use the base name for all repeated instances or the full name#instance ID for one occurrence. |
curve_type | string | Edges only: keep edges of this curve type. |
entity_ids | array | Optional explicit ids to return; each must match entity_type (e.g. ["face:3"]). |
limit | integer | Maximum entities to return in this page (default 50). |
max_area | number | Faces only: maximum face area in mm². |
max_length | number | Edges only: maximum edge length in mm. |
max_radius | number | Faces/edges only: maximum radius in mm. |
min_area | number | Faces only: minimum face area in mm². |
min_length | number | Edges only: minimum edge length in mm. |
min_radius | number | Faces/edges only: minimum radius in mm. |
offset | integer | Entities to skip; follow pagination.has_more to page. |
surface_type | string | Faces only: keep faces of this surface type. |
measure Measure Geometry
Measure distance, wall thickness, draft, rays/ray grids, point geometry, planar sections, or edge continuity. Use the artifact reference and entity IDs from the same find_entities result. Lengths are in the declared unit, which is labelled on every result. Ray grids report their grid size and can be refined with max_rays up to 20000. Fetch the cad://help resource for the required fields of each kind. Returns geometric measurements only, not engineering acceptance or design recommendations.
| Parameter | Type | Description |
|---|---|---|
artifact * | object | Revision-bound STEP reference from inspect: { uri, revision, format, units }. Rejected if the file changed since inspect. |
kind * | string | Measurement to perform. Each kind takes a different argument set; see the field notes here and the per-kind requirements in cad://help. |
bidirectional | boolean | ray and ray_grid: also shoot from the origin in the opposite direction. |
checks | array | point_analysis: one or more of contains_body, classify_face, closest_face_point, surface_curvature, edge_projection. |
detail | string | Per-sample detail to return: "stats" (default), "samples", or "hits". |
direction | array | ray and ray_grid: ray direction as an explicit [x, y, z] vector. Mutually exclusive with direction_mode. |
direction_mode | string | ray and ray_grid: "axis" shoots along the entity axis, "normal" along the entity normal (faces only). Mutually exclusive with direction. |
entity_ids | array | Every kind except distance: the entities to measure. Faces for thickness, draft, ray and ray_grid; edges for continuity; faces or bodies for section and point_analysis. Up to 100 IDs. |
max_distance | number | ray, ray_grid and thickness: ignore hits beyond this distance in the STEP artifact’s declared length units. |
max_rays | integer | ray_grid and thickness: maximum ray casts, 1 to 20000. Default 4000. Raising it allows a finer grid at proportionally higher cost. |
origin | array | ray and ray_grid: explicit ray origin [x, y, z]. Mutually exclusive with origin_mode. |
origin_mode | string | ray and ray_grid: place the origin at the entity extent instead of passing origin: extent_min, extent_center (default), or extent_max. |
plane_normal | array | section: cutting-plane normal. |
plane_origin | array | section: a point on the cutting plane. |
points | array | point_analysis: points to test, in model coordinates (mm), up to 100. |
pull_direction | array | draft only: mould pull direction as an explicit [x, y, z] vector. Mutually exclusive with pull_direction_mode. |
pull_direction_mode | string | draft only: "axis" or "normal" shortcut for the pull direction (faces only). Mutually exclusive with pull_direction. |
sources | array | distance only: entities to measure from (face:N, edge:N, body:N, or a component-scoped form). |
spacing | number | ray_grid: grid pitch in the STEP artifact’s declared length units, at most 1000. |
summary | string | distance only: "all" returns every pair, "minimum" (default) returns the closest pair only. |
targets | array | distance only: entities to measure to. |
tolerance | number | continuity and point checks: geometric tolerance in millimetres. |
describe_pmi Describe Model PMI and GD&T
Report the dimensions, geometric tolerances, and datums that a STEP artifact declares, as data: nominal, deviations, and tolerance form for each dimension; value, zone shape, material requirement, and datum references for each geometric tolerance; and the entity IDs each annotation applies to. `characteristics` checks each dimensional callout against the faces it controls, and reports satisfied or violated where that is arithmetic — a diameter read from the cylindrical faces the callout names — and unresolved with a reason everywhere else, so a callout that was not checked cannot be mistak…
| Parameter | Type | Description |
|---|---|---|
uri * | string | STEP file to read, as a file: URI or an absolute filesystem path. |
include | array | Sections to include: dimensions, tolerances, datums. Default: all three. Example: ["tolerances"]. |
diff Compare Step Versions
Compare baseline and candidate STEP artifacts, as filesystem paths or file: URIs. Returns both content revisions, geometry deltas in the baseline declared unit, declared PMI counts (dimensions, geometric tolerances, datums, and how many tolerance values could not be read), and parsed document facts: schema, product names/count, assembly flag, authoring system, and organization. The PMI counts show whether a revision added or dropped callouts; they compare how many callouts exist, not whether any is met. These are file-level facts; they do not explain design intent.
| Parameter | Type | Description |
|---|---|---|
baseline * | object | Original STEP artifact. |
candidate * | object | Modified STEP artifact. |