Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_parse_url

Read-only

Extracts document, workspace/version/microversion, and element IDs from an Onshape browser URL, enabling correct API calls and document navigation.

Instructions

Extract document id (did), wvm type, workspace/version/microversion id and element id (eid) from an Onshape browser URL like https://cad.onshape.com/documents//w//e/.

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": {
      "url": "<url>"
    },
    "name": "onshape_parse_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and locality are covered; the description adds that it is a pure string parse against a documented URL pattern. It does not say what happens on a malformed or non-Onshape URL (error vs. partial result), which is the main behavioral unknown for a parser.

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?

Two lines, no filler, with the extracted fields front-loaded and the URL example supporting them. Every clause earns its place.

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?

An output schema exists, so return values need no explanation, and the input format is documented. For a one-parameter parser this is nearly complete; only failure behavior on invalid URLs is unstated.

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

Parameters4/5

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

Schema coverage is 0% — the single 'url' parameter has no description at all — so the definition must carry the load, and it does by supplying the exact expected URL template with <did>/w/<wid>/e/<eid> placeholders. That meaningfully constrains the input beyond the bare 'string' type, though it omits whether variant forms (e.g. version/microversion URLs) are accepted.

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 (extract) plus the exact resources returned (did, wvm type, wid/vid/mid, eid), and disambiguates by showing the canonical Onshape URL shape it consumes. An agent can tell instantly this is a pure URL-to-identifiers converter, not an API call or document lookup like the sibling onshape_get_document.

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 implied trigger is clear: use this when you have an Onshape browser URL and need the IDs for other tools. It gives no explicit exclusions or statement about what to do if you already have IDs, but the context needed to choose it is present.

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