Skip to main content
Glama
open-mcp-cad

open-mcp-cad

wait_for_bridge

Waits until exactly one Cadwork instance has the specified .3d document open and connected, verifies it, then binds the session to that document; also lets you choose among multiple connected windows.

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. Auch der Weg, ein Fenster zu WAEHLEN, wenn mehrere verbunden sind (Antwort error="instanz_waehlen"): kehrt sofort zurueck, wenn die Datei schon offen ist.

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.

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": {
      "dokument": "<dokument>"
    },
    "name": "wait_for_bridge"
  }
}

Input Schema

NameRequiredDescriptionDefault
dokumentYes
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it explains the side effect (session binding, later calls routed to that port, execute_cadwork_command locked to the document) and enumerates every non-binding condition — timeout, multiple matches, foreign port or folder, OPEN_MCP_CAD_EXPECT_DOC mismatch. This is exactly the mutation/state-consequence context an agent needs before calling.

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 purpose is front-loaded and the text is organized into purpose / parameter / failure blocks with backticked identifiers, so it scans well. It is dense and somewhat long, but nearly every clause adds a distinct constraint; only the phrasing around the parameter section is slightly redundant.

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 two-parameter waiting/binding tool with no annotations and no output schema, the definition covers the effect, verification source, error signal ("instanz_waehlen") and all failure modes. The remaining gap is what a successful call yields (port, document info) and the meaning of timeout_s, which the agent must infer.

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?

Schema description coverage is 0%, so the description must compensate. It does so thoroughly for `dokument` (full path versus bare filename, that the folder is checked, that verification happens via get_document_info's name and port), but `timeout_s` is only alluded to as a failure mode ("Zeitablauf") with no mention of units, default of 120, or what happens on expiry.

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 first sentence states a specific verb and resource: wait until exactly one Cadwork instance has the document open, verify it, and bind the session to it. It distinguishes itself from siblings by naming open_document, get_document_info and execute_cadwork_command, and its role in the bootstrap sequence is explicit.

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?

It states precisely when to call it (step 3 of the file bootstrap, mandatory after open_document before any model order) and an additional use case (selecting a window when several are connected, via error="instanz_waehlen"). It also notes that it returns immediately if the file is already open, so the agent knows a redundant call is cheap.

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