Skip to main content
Glama
open-mcp-cad

open-mcp-cad

get_cadwork_api_help

Lists available cwapi3d modules and functions from local type stubs, returning signatures and docstrings so you can look up the correct Cadwork API call without a running bridge.

Instructions

Listet verfügbare cwapi3d-Module bzw. -Funktionen.

Liest Type-Stubs (.pyi) lokal aus dem cwapi3d-Paket. Funktioniert auch, wenn Cadwork nicht läuft (kein Bridge-Aufruf nötig). Fehlt das Paket im Python des Servers, antwortet es mit error="stubs_fehlen" und dem Installationshinweis — dann ist nicht das Modul falsch.

Aufrufmuster: get_cadwork_api_help() -> Liste aller bekannten Controller-Module + Aliase. get_cadwork_api_help(module="element_controller") -> Alle Funktionen mit Signatur und Kurzbeschreibung. get_cadwork_api_help(module="element_controller", function="get_all_identifiable_element_ids") -> Volle Docstring der Funktion.

Args: module: Optional, Modulname (z.B. "element_controller"). function: Optional, Funktionsname innerhalb des Moduls.

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

Input Schema

NameRequiredDescriptionDefault
moduleNo
functionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral burden and does so well: it explains that it reads local .pyi stubs, works without Cadwork running, makes no bridge call, and returns a specific error when the package is missing. It also describes what each invocation mode returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the purpose and then structured into behavior, call patterns, and argument notes. The examples are directly useful rather than filler, and the failure-mode note is placed where it prevents a common misinterpretation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter help tool with no output schema and no annotations, the description is complete enough to call correctly. It covers the offline behavior, the missing-stubs failure case, and the returned content for each mode of invocation.

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

Parameters5/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, and it does: module and function are both explained, including that module is a controller module name and function is a function within that module. The three call patterns show exactly how the optional parameters change the result.

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?

The description clearly states that this tool lists available cwapi3d modules and functions and reads local type stubs. It is specific about the resource and operation, but it does not explicitly differentiate itself from sibling help or execution tools.

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 call patterns make the intended usage levels clear: no arguments lists modules, module lists functions, and module plus function returns the full docstring. It does not explicitly name when to use this instead of execute_cadwork_command or other siblings, so the alternative-routing guidance is only implicit.

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