Skip to main content
Glama

cad_inspect_existing

Read-onlyIdempotent

Read existing workspace CAD models to extract feature trees, dimensions, equations, custom properties, materials, mass, and referencing assemblies or drawings.

Instructions

读出工作区中现有模型(旧零件/装配/工程图):特征树(压缩状态、父子关系)、全部尺寸全名与数值、 方程式与全局变量、自定义属性、材料、质量,以及引用它的装配/工程图(used_by)。 文件须先用 cad_change_begin(project, sources=[...]) 复制进工作区;file 为工作区内相对路径。

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": {
      "file": "<file>"
    },
    "name": "cad_inspect_existing"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: the mandatory copy-into-workspace step through cad_change_begin and the workspace-relative path requirement. It does not discuss cost or size of large assemblies, but the essentials are present.

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?

The description is front-loaded with the purpose and the enumerated output, then closes with the prerequisite and path semantics. The enumeration is long but each item is substantive information about the return payload. Slight redundancy with the existing output schema keeps it from a 5.

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?

The tool is a read-only inspection with an output schema, so return-value detail is technically optional; the description still summarizes it usefully. The prerequisite workflow and path semantics are both covered. Missing only explicit sibling differentiation against cad_get_model.

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 coverage is 0% for the single 'file' parameter, so the description carries the burden and does so by specifying that it is a workspace-relative path inside the workspace. That resolves the main ambiguity an agent would have. It does not give examples or describe the error behavior for a path outside the workspace.

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?

Uses a specific verb (read out/inspect) on a well-defined resource (existing models in the workspace) and enumerates exactly what is returned: feature tree with suppression state and parent-child relations, dimensions, equations, custom properties, materials, mass, and used_by references. It does not explicitly distinguish itself from the sibling cad_get_model, which keeps it from a 5.

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?

States a clear precondition for use: the file must first be copied into the workspace via cad_change_begin(project, sources=[...]). That is actionable context. It does not name when-not-to-use or point to an alternative for reading models that are already in the workspace, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.