Skip to main content
Glama
jmcaamanog

multiCAD-mcp-server

manage_session

Manage CAD application lifecycle, COM connections, viewport controls, and undo/redo history to connect, inspect, and control active CAD sessions.

Instructions

Manage CAD application lifecycle, COM connection, viewport controls, and undo/redo history.

Behavior:

  • Mutation: Controls external CAD application process, active COM session, and editor state.

  • Persistence: Connection state persists across subsequent tool calls in the MCP server process.

  • Side Effects: Can launch CAD application process (connect), terminate session (disconnect), or launch local web dashboard in browser (open_dashboard).

Usage Guidelines:

  • When to Use: Call to verify CAD connectivity, connect to running CAD, inspect CAD vendor info, or perform composite session operations (e.g. connect + zoom_extents + status).

  • Sibling Routing / Alternatives:

    • For pure camera, zoom, 3D viewpoints, and visual styles, prefer manage_view.

    • For opening, saving, closing, or switching drawing files, use manage_files.

    • For creating geometry, use draw_entities.

Actions & Parameters:

  • connect: Launches and connects to auto-detected CAD software (AutoCAD, ZWCAD, GstarCAD, BricsCAD).

  • disconnect: Unlinks from active CAD COM session.

  • status: Returns current connection status, active adapter type, and drawing name.

  • list_supported: Lists installed and supported CAD application vendors.

  • check_running: Detects running CAD processes without attaching.

  • zoom_extents: Zooms active viewport to fit drawing extents.

  • screenshot: Captures active CAD window raster screenshot as base64 PNG.

  • export_view: Generates internal drawing raster preview.

  • undo: Steps back in drawing history. Parameter: count (int, default: 1).

  • redo: Steps forward in drawing history. Parameter: count (int, default: 1).

  • open_dashboard: Launches web dashboard in browser. Parameters: host, port.

Parameters:

  • operations: Shorthand string or JSON array of session action objects.

Returns: JSON string with per-operation status, connection details, and results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses mutation scope, that connection state persists across subsequent calls, and the concrete side effects (launching a CAD process, terminating a session, opening a browser dashboard). It stops short of failure modes, permissions, or what happens when no CAD app is installed, which is the only remaining gap.

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?

Clearly front-loaded with labeled sections (Behavior, Usage Guidelines, Actions & Parameters, Returns) that make it scannable. It is long, but the length is largely justified by enumerating ten distinct session actions; the Returns section is somewhat redundant given an output schema exists.

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?

Covers lifecycle, persistence, side effects, action catalogue, and routing to alternatives — ample for a composite session tool, and the presence of an output schema means return values need no elaboration. Missing only error/failure behavior and prerequisite conditions for connect.

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% and the single 'operations' parameter is an opaque string, so the description must compensate — and it does, explaining that it is a shorthand string or JSON array of session action objects, then enumerating all ten actions with their own parameters (count default 1, host, port). The only weakness is that the exact string/JSON grammar of 'operations' remains implicit.

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+resource ('Manage CAD application lifecycle, COM connection, viewport controls, and undo/redo history'), and the sibling-routing section explicitly separates it from manage_view, manage_files, and draw_entities. An agent can distinguish this from every named alternative without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to Use' plus a 'Sibling Routing / Alternatives' block naming three siblings and the exact condition that selects each ('For pure camera, zoom... prefer manage_view'). This is textbook when/when-not/alternatives guidance.

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