Skip to main content
Glama

Inspect Model

inspect
Read-onlyIdempotent

Use this when you need to read facts about a model. One reader, selected by of:

  • 'assembly' — physical assembly inventory (parts, bboxes, connectors, mates, disconnected solids).

  • 'robot' — URDF/SDFormat export preview (links, joints, planning groups, end-effectors, issues).

  • 'step' — inspect an imported STEP file: solid tree, exact bbox/volume, cylindrical holes (breached bores flagged partial; holeDetection: 'exact' | 'heuristic').

  • 'shape' — volume / surfaceArea / bbox for one feature ({ feature_id? }).

  • 'mass' — mass, centre of mass, centroidal inertia tensor (inertia6 + 3x3 inertiaMatrix), principalMoments/principalAxes, symmetry flags, and optionally the radius of gyration about an arbitrary axis ({ feature_id?, density?, gyration_axis? }); density in kg/m^3, defaults to 1000 (water).

  • 'features' — features captured by the script (kind, id, params, transforms, suppression).

  • 'assemblies' — assembly intent (assemblies, parts, connectors, joints).

  • 'topology' — canonical face names + edge count for a feature ({ feature_id? }).

  • 'edges' — edges of a shape with optional EdgeQuery ({ feature_id?, query? }); returns @kc[...] refs.

  • 'face-edges' — boundary edges of a named canonical face ({ feature_id?, face_name }).

  • 'faces' — faces of a shape with optional FaceQuery ({ feature_id?, query? }); returns @kc[...] refs.

  • 'face-labels' — user-applied labels visible in the script.

  • 'mates' — mates captured by the script.

  • 'constraints' — sketch constraints captured by the script.

  • 'part-stats' — bundled parts-catalog statistics.

  • 'bend-table' — sheet-metal bend table for a flattened pattern.

  • 'params' — declared model parameters.

  • 'part-categories' — top-level part-catalog categories available in the bundled (and configured remote) catalog.

  • 'part-families' — part families within a category ({ category? }); count + exemplar ids per family.

  • 'bom' — bill of materials ({ assembly? }): one row per distinct part (grouped by geometry/catalog identity, not name) with real instance quantity, kind ('fabricated'|'purchased'), material, density, per-unit and total mass, bbox, a fabrication process (process + processSource), catalog provenance for purchased parts, and totals; bom.* diagnostics flag rows with no density source or missing catalog vendor info instead of guessing.

  • 'section' — numeric cross-section probe of a shape: area, perimeter, loop/hole counts, 2D bbox at a plane ({ feature_id?, plane | at+axis, stack?: { from, to, count, axis? } }). stack scans evenly spaced slices and returns minAreaIndex/minAreaPosition — use it to find the neck/thinnest cross-section along an axis.

  • 'continuity' — G0/G1/G2 classification of shared edges ({ feature_id?, edges? }); position gap, normal jump, curvature difference, worst-sample XYZ.

  • 'curvature' — per-face Gaussian and mean curvature min/max/mean, inflections, spikes ({ feature_id?, faces?, spike_factor? }).

  • 'multi-material' — explicit material leaves shadowed by later attributed boolean descendants, with assembly-part rewrite templates; analyzes capture records and does not change mesh attribution. All params except of are subject-specific and forwarded verbatim. Most subjects accept { file | code }. Hosted: give the file as an https:// URL, a data: URI (base64, max 25 MB) or "asset:" from request_upload (when the file is on the user's device).

Input Schema

NameRequiredDescriptionDefault
atNoof:'section' — single slice position along `axis` (mm).
ofYesWhich facts to read.
axisNoof:'section' — normal axis for `at` / `stack` (default 'z').
codeNoInline kernelCAD script source.
fileNoPath to a .kcad.ts script file. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project. Hosted server: pass an https:// URL, a data: URI, or "asset:<id>" from request_upload — not a path on your machine.
edgesNoof:'continuity' — optional EdgeQuery or @kc[...] ref(s) limiting which shared edges are sampled.
facesNoof:'curvature' — optional FaceQuery or @kc[...] ref(s) limiting which faces are sampled.
planeNoof:'section' — section plane. Either a cardinal name string 'xy'|'xz'|'yz', { plane: 'xy'|'xz'|'yz', offset? }, or { origin: [x,y,z], normal: [nx,ny,nz] }. Omit to use `at`+`axis`.
queryNoof:'edges'|'faces' — optional EdgeQuery/FaceQuery filter.
stackNoof:'section' — dense scan: `count` slices evenly spaced from `from` to `to` along `axis`; response reports minAreaIndex/minAreaPosition.
densityNoof:'mass' — material density in kg/m^3 (steel 7850, aluminium 2700, ABS 1050). Defaults to 1000 (water); the response echoes the value used and flags when it was defaulted.
assemblyNoof:'assembly'|'robot'|'bom' — assembly name; defaults to the first captured assembly.
categoryNoof:'part-families' — optional top-level category to filter families by.
face_nameNoof:'face-edges' — canonical face name (required for that subject).
feature_idNoof:'shape'|'mass'|'topology'|'edges'|'faces'|'face-edges'|'face-labels' — FeatureId; defaults to the last returned shape.
spike_factorNoof:'curvature' — spike sensitivity as a multiple of the face's Gaussian stddev (default 6).
gyration_axisNoof:'mass' — optional axis in shape-local mm to report the radius of gyration about. Omit for centroidal quantities only; the result is density-independent and returned in mm.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / edges / type
      Added value: +[
      +  "object",
      +  "array",
      +  "string"
      +]
    • addedInput schema / properties / faces / type
      Added value: +[
      +  "object",
      +  "array",
      +  "string"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / of / enum
      Previous value: -[
      -  "assembly",
      -  "robot",
      -  "step",
      -  "shape",
      -  "mass",
      -  "features",
      -  "assemblies",
      -  "topology",
      -  "edges",
      -  "face-edges",
      -  "faces",
      -  "face-labels",
      -  "mates",
      -  "constraints",
      -  "part-stats",
      -  "bend-table",
      -  "params",
      -  "part-categories",
      -  "part-families",
      -  "bom",
      -  "section",
      -  "continuity",
      -  "curvature"
      -]New value: +[
      +  "assembly",
      +  "robot",
      +  "step",
      +  "shape",
      +  "mass",
      +  "features",
      +  "assemblies",
      +  "topology",
      +  "edges",
      +  "face-edges",
      +  "faces",
      +  "face-labels",
      +  "mates",
      +  "constraints",
      +  "part-stats",
      +  "bend-table",
      +  "params",
      +  "part-categories",
      +  "part-families",
      +  "bom",
      +  "section",
      +  "continuity",
      +  "curvature",
      +  "multi-material"
      +]
  3. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "error": {
      -    "description": "Failure message (present on failure).",
      -    "type": "string"
      -  },
      -  "errorCode": {
      -    "type": "string"
      -  },
      -  "ok": {
      -    "description": "Whether the read succeeded.",
      -    "type": "boolean"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[]
  4. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"Path to a .kcad.ts script file. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."New value: +"Path to a .kcad.ts script file. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project. Hosted server: pass an https:// URL, a data: URI, or \"asset:<id>\" from request_upload — not a path on your machine."
  5. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"Path to a .kcad.ts script file."New value: +"Path to a .kcad.ts script file. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."
  6. Changed12 schema fields changed
    • changedInput schema / properties / assembly / description
      Previous value: -"of:'assembly'|'robot' — assembly name; defaults to the first captured assembly."New value: +"of:'assembly'|'robot'|'bom' — assembly name; defaults to the first captured assembly."
    • addedInput schema / properties / at
      Added value: +{
      +  "description": "of:'section' — single slice position along `axis` (mm).",
      +  "type": "number"
      +}
    • addedInput schema / properties / axis
      Added value: +{
      +  "description": "of:'section' — normal axis for `at` / `stack` (default 'z').",
      +  "enum": [
      +    "x",
      +    "y",
      +    "z"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / density
      Added value: +{
      +  "description": "of:'mass' — material density in kg/m^3 (steel 7850, aluminium 2700, ABS 1050). Defaults to 1000 (water); the response echoes the value used and flags when it was defaulted.",
      +  "type": "number"
      +}
    • addedInput schema / properties / edges
      Added value: +{
      +  "description": "of:'continuity' — optional EdgeQuery or @kc[...] ref(s) limiting which shared edges are sampled."
      +}
    • addedInput schema / properties / faces
      Added value: +{
      +  "description": "of:'curvature' — optional FaceQuery or @kc[...] ref(s) limiting which faces are sampled."
      +}
    • changedInput schema / properties / feature_id / description
      Previous value: -"of:'shape'|'topology'|'edges'|'faces'|'face-edges'|'face-labels' — FeatureId; defaults to the last returned shape."New value: +"of:'shape'|'mass'|'topology'|'edges'|'faces'|'face-edges'|'face-labels' — FeatureId; defaults to the last returned shape."
    • addedInput schema / properties / gyration_axis
      Added value: +{
      +  "description": "of:'mass' — optional axis in shape-local mm to report the radius of gyration about. Omit for centroidal quantities only; the result is density-independent and returned in mm.",
      +  "properties": {
      +    "direction": {
      +      "description": "Axis direction; normalised internally, so it need not be a unit vector.",
      +      "items": {
      +        "type": "number"
      +      },
      +      "maxItems": 3,
      +      "minItems": 3,
      +      "type": "array"
      +    },
      +    "origin": {
      +      "description": "A point on the axis, shape-local mm.",
      +      "items": {
      +        "type": "number"
      +      },
      +      "maxItems": 3,
      +      "minItems": 3,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "origin",
      +    "direction"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / of / enum
      Previous value: -[
      -  "assembly",
      -  "robot",
      -  "step",
      -  "shape",
      -  "features",
      -  "assemblies",
      -  "topology",
      -  "edges",
      -  "face-edges",
      -  "faces",
      -  "face-labels",
      -  "mates",
      -  "constraints",
      -  "part-stats",
      -  "bend-table",
      -  "params",
      -  "part-categories",
      -  "part-families"
      -]New value: +[
      +  "assembly",
      +  "robot",
      +  "step",
      +  "shape",
      +  "mass",
      +  "features",
      +  "assemblies",
      +  "topology",
      +  "edges",
      +  "face-edges",
      +  "faces",
      +  "face-labels",
      +  "mates",
      +  "constraints",
      +  "part-stats",
      +  "bend-table",
      +  "params",
      +  "part-categories",
      +  "part-families",
      +  "bom",
      +  "section",
      +  "continuity",
      +  "curvature"
      +]
    • addedInput schema / properties / plane
      Added value: +{
      +  "description": "of:'section' — section plane. Either a cardinal name string 'xy'|'xz'|'yz', { plane: 'xy'|'xz'|'yz', offset? }, or { origin: [x,y,z], normal: [nx,ny,nz] }. Omit to use `at`+`axis`.",
      +  "type": [
      +    "string",
      +    "object"
      +  ]
      +}
    • addedInput schema / properties / spike_factor
      Added value: +{
      +  "description": "of:'curvature' — spike sensitivity as a multiple of the face's Gaussian stddev (default 6).",
      +  "type": "number"
      +}
    • addedInput schema / properties / stack
      Added value: +{
      +  "description": "of:'section' — dense scan: `count` slices evenly spaced from `from` to `to` along `axis`; response reports minAreaIndex/minAreaPosition.",
      +  "properties": {
      +    "axis": {
      +      "description": "Scan axis (default 'z').",
      +      "enum": [
      +        "x",
      +        "y",
      +        "z"
      +      ],
      +      "type": "string"
      +    },
      +    "count": {
      +      "description": "Number of evenly spaced slices (>= 1).",
      +      "type": "integer"
      +    },
      +    "from": {
      +      "description": "Start position along the axis (mm).",
      +      "type": "number"
      +    },
      +    "to": {
      +      "description": "End position along the axis (mm).",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "from",
      +    "to",
      +    "count"
      +  ],
      +  "type": "object"
      +}
  7. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "description": "Failure message (present on failure).",
      +      "type": "string"
      +    },
      +    "errorCode": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "Whether the read succeeded.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [],
      +  "type": "object"
      +}
  8. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses many behavioral details: each subject's return content, partial bore flagging, exact vs heuristic hole detection, density defaults and echo behavior, multi-material's non-mutating analysis, and hosted file input restrictions including the 25 MB limit. This is rich context that helps an agent invoke the tool correctly.

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

Conciseness5/5

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

The description is long, but the length is justified by 24 distinct `of` modes and 17 parameters. It is front-loaded with the core purpose and then organizes each mode as a tight bullet, with hosted file guidance placed at the end. Every segment appears to earn its place.

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?

Given the tool's complexity, 17 parameters, enum-based dispatch, and rich output schema, the description is complete enough for an agent to choose a mode and understand the relevant constraints. The output schema can carry return-shape details, and the description still supplements it with key caveats and hosted input rules.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 the 17 parameters thoroughly. The description still adds value by explaining that most subjects accept `{ file | code }`, that all parameters except `of` are subject-specific and forwarded verbatim, and by clarifying cross-parameter behavior for modes like `section`, `bom`, and `mass`.

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 clearly states a specific action and resource: 'read facts about a model', selected by the `of` enum. It enumerates each inspection subject precisely, so an agent knows what the tool does. However, it does not explicitly distinguish this tool from nearby read-oriented siblings such as `query`, `verify`, `inspect_nurbs`, `mesh_summary`, or `get_model_mesh`.

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 usage context ('Use this when you need to read facts about a model') and explains the condition for each `of` mode, including a specific note that `stack` helps find the thinnest cross-section. It does not provide when-not-to-use guidance or name sibling alternatives, so it stops short of full routing guidance.

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.