Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_api_request

Destructive

Call any Onshape REST endpoint directly to handle operations not covered by other tools, using a relative or full API path.

Instructions

Call any Onshape REST endpoint directly, for anything the other tools don't cover. path is relative to /api/v10, e.g. "/documents/d//w//elements" (or pass a full /api/vX/... path). See https://cad.onshape.com/glassworks/explorer for the full API.

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": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "onshape_api_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
pathYes
queryNo
methodYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the risk profile is structured. The description adds the path-resolution rule and a pointer to the API explorer, but gives no warning that arbitrary methods can mutate or delete workspace data and no note about permission scope — context that matters a lot for a destructive escape hatch.

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?

Three short lines, front-loaded with purpose, then path format, then a reference link. No restated obviousness and no filler.

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?

An output schema exists, so return values need not be explained, and the path format is covered. But for a high-risk open-world tool, the description omits any caution about destructive methods, permissions, or how body/query should be structured — gaps that remain unfilled by the schema.

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% across four parameters, so the description must compensate. It does well for 'path' (relative to /api/v10, or a full /api/vX path, with a concrete example), but 'body' and 'query' get no explanation of expected shape beyond their names, and 'method' relies on the enum alone.

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 and resource ('Call any Onshape REST endpoint directly') and immediately scopes it as the fallback for 'anything the other tools don't cover', which distinguishes it from the dedicated onshape_get_*/create_* siblings. An agent can tell what this tool is for 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 Guidelines4/5

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

Explicitly says to use it only for cases the other tools don't cover, which is real routing guidance toward the specialized siblings. It does not say anything about prerequisites, authentication, or what to check before issuing a write call, so it stops short of full when/when-not coverage.

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