Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by Sangpaa

answer_dialog

Presses a specified SolidWorks dialog button, such as OK or Close, then waits for the held call and returns its result; optionally targets a dialog by handle and sets a wait timeout.

Instructions

Press button (its caption, e.g. 'OK', 'Close', "Don't Rebuild", '재생성 안 함') on a SolidWorks dialog, then wait up to wait_s for the call that was on hold and return its result. hwnd (from list_dialogs) picks one of several dialogs. Without button it only waits for the call on hold.

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

Input Schema

NameRequiredDescriptionDefault
hwndNo
buttonNo
wait_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.21.0

TDQS

A4.1/5.0
Behavior4/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 real work: it discloses a blocking wait with a caller-controlled timeout (wait_s), the return of the held call's result, and the degenerate no-button mode. It stops short of saying what happens on timeout (error vs. empty result) or whether the pressed action is destructive/irreversible, which keeps it below 5.

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?

Three short sentences, front-loaded with the primary action and followed by the two modifiers, with no filler. The hard-wrapped line breaks and nested quoting make it slightly harder to scan than it needs to be, but nothing is wasted.

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

Completeness3/5

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

The tool has no output schema, and the description only says it returns 'its result' without characterizing the return shape or the timeout outcome — the two things an agent most needs to handle afterward. For a simple three-parameter, all-optional tool the action semantics are adequate, but return-value behavior is a real gap given the absence of an output schema.

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: button is explained as a caption with concrete examples in multiple languages ('OK', 'Close', "Don't Rebuild", '재생성 안 함'), hwnd is tied to list_dialogs as a dialog selector, and wait_s is described as the wait bound. All three parameters gain meaning beyond their bare schema names.

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 opens with a specific verb+resource pair ('Press `button` ... on a SolidWorks dialog') and states the follow-on behavior ('wait up to wait_s for the call that was on hold and return its result'). It also distinguishes itself from list_dialogs by naming it as the source of hwnd, so an agent can place the tool in the dialog workflow without opening the schema.

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

Usage Guidelines3/5

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

It clarifies the meaningful usage variant ('Without button it only waits for the call on hold') and that hwnd selects among several dialogs, which implies the multi-dialog case. However, there is no explicit statement of when to call this versus alternatives or what preconditions must hold (e.g. that a call must actually be on hold), so usage is largely inferred from the mechanics described.

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