Skip to main content
Glama
3DCraft

3DCraft

doc_inspect

Read-only

Inspects the active CAD document to return units, variables, features, bodies, measurements, notes, and undo history, while flagging build or placement failures.

Instructions

Returns the active document: units, variables with values, features with status, bodies with face/edge/vertex counts, volume, area and centroid, the notes pinned to the model counted (notes: count, open, fromAgents; note.list lists them) when there are any, and the undo history; ok: nothing failed to build or, in an assembly, to be placed (whether the checks pass and the bodies are valid, and what failed, document.check says; assembly.inspect and assembly.solve too). Returns {"document": null} when no document is open.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover only readOnlyHint and openWorldHint, and the description goes well beyond them by disclosing the null-document case ({"document": null}), the meaning of the 'ok' flag, and the fact that the notes block appears only 'when there are any'. It does not describe the size or cost of the payload, which for a full document dump would be useful context.

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 relevant but the delivery is two enormous run-on sentences with nested parentheticals ('ok: nothing failed to build or, in an assembly, to be placed (whether the checks pass ... document.check says; assembly.inspect and assembly.solve too)'). The payload contents are not front-loaded as a list, so an agent must parse deeply nested clauses to extract the return shape.

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?

With no output schema, the description carries the entire burden of describing the return value, and it does so comprehensively, including the null case and the conditional notes section. Only the absence of payload size/pagination or unit conventions for the numeric fields (volume, area, centroid) keeps it from being fully complete.

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?

The tool takes zero parameters and has additionalProperties: false, so there is nothing for the description to disambiguate. Baseline applies; the description correctly signals that this is an unconditional, unparameterized read of the active document.

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?

States a specific verb and resource ('Returns the active document') and then enumerates exactly what comes back: units, variables, feature status, body topology counts, volume/area/centroid, notes summary, undo history. It also distinguishes itself from siblings by pointing out that note.list lists notes and document.check / assembly.inspect / assembly.solve give the detailed diagnostics.

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?

The description routes the agent elsewhere for narrower needs (note.list for the notes themselves, document.check for validation detail, assembly.inspect/assembly.solve for assembly-level inspection), which is clear implicit when-to-use guidance. It never explicitly says when not to call this tool or that it is the default entry point, so it stops just 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.