Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_update_feature

Replace an existing Onshape feature definition using updated BTMFeature JSON and its feature ID to modify CAD model geometry or parameters.

Instructions

Replace an existing feature's definition (same BTMFeature JSON as onshape_add_feature, including featureId).

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": {
      "did": "<did>",
      "wid": "<wid>",
      "eid": "<eid>",
      "feature_id": "<feature_id>",
      "feature": "<feature>"
    },
    "name": "onshape_update_feature"
  }
}

Input Schema

NameRequiredDescriptionDefault
didYes
eidYes
widYes
featureYes
feature_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds that the payload is the same BTMFeature JSON as onshape_add_feature and must include featureId, which is genuinely useful. It does not disclose that the call is non-idempotent, what happens to the prior definition, or any failure behavior.

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?

A single dense sentence with the key constraint front-loaded and no filler. It is efficient, though the parenthetical could be split out for readability.

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 no explanation, and the feature-payload hint covers the hardest parameter. However, for a five-parameter mutation with a nested object and zero schema coverage, the four identifier parameters and the non-idempotent behavior remain unexplained.

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

Parameters2/5

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

Schema description coverage is 0% across five required parameters, so the description must carry the load. It only clarifies the nested 'feature' object (BTMFeature JSON, must include featureId); did, wid, eid and feature_id are left entirely undocumented in both schema and description.

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?

States a specific verb and resource: 'Replace an existing feature's definition.' The word 'existing' plus the pointer to onshape_add_feature makes the add-vs-update distinction inferable, though the sibling is named only as a format reference rather than as an alternative.

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?

Usage is implied by 'existing' versus the add sibling, so an agent can infer this is the edit path. There is no explicit when-to-use/when-not statement, no mention of prerequisites such as needing a valid featureId from onshape_get_features, and no note on what happens if the feature does not exist.

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