Skip to main content
Glama
sebastiankoukoui

open-mcp-cad

wait_for_bridge

Waits until exactly one Cadwork instance opens and connects to the specified document, then binds that session for all subsequent commands.

Instructions

Wartet, bis genau EINE Cadwork-Instanz dokument offen und verbunden hat, prueft sie und BINDET diese Sitzung daran. Schritt 3 des Datei- Bootstraps — und Pflicht vor jedem Modellauftrag nach open_document.

dokument: voller Pfad der .3d-Datei (dann wird auch ihr Ordner geprueft) oder nur ihr Dateiname. Geprueft wird ueber die Bridge selbst: Dokumentname und Port aus get_document_info, bei vollem Pfad der Ordner. Erst dann wird gebunden: alle weiteren Aufrufe gehen an diesen Port, und execute_cadwork_command ist auf dieses Dokument verriegelt.

Nichts wird gebunden bei: Zeitablauf, mehreren Treffern, fremdem Port oder Ordner, oder wenn OPEN_MCP_CAD_EXPECT_DOC nicht zum Dokument passt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dokumentYes
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals the binding side effect, the lock on execute_cadwork_command, the checks involving get_document_info, and the exact conditions under which nothing is bound: timeout, multiple matches, foreign port/folder, or OPEN_MCP_CAD_EXPECT_DOC mismatch.

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 core purpose and then moves from parameter meaning to binding conditions. It is dense but each sentence adds necessary operational detail; a slightly more structured layout would improve scanability.

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?

For a stateful tool with no annotations and no output schema, the description is quite complete: it explains when it is mandatory, what input forms are accepted, what is checked, what side effects occur, and when binding does not happen. It does not explicitly state the behavior when `timeout_s` elapses or what the success/failure response looks like, which leaves a small but real gap.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must compensate. It substantially explains `dokument`: full path vs. filename and the folder-check implication. However, it does not explain `timeout_s` beyond its self-evident name and schema default, leaving one parameter semantically under-described.

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?

The description states a specific verb and resource: wait until exactly ONE Cadwork instance has `dokument` open, verify it, and bind the session to it. It clearly distinguishes itself from siblings like get_connection_status and open_document by describing its unique wait-and-bind role.

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 explicitly positions itself as 'Schritt 3 des Datei-Bootstraps' and as mandatory before every model job after open_document, giving clear when-to-use context. It does not explicitly name alternative tools for cases where waiting/binding is not needed, so it stops short of full exclusion guidance.

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