Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_get_mass_properties

Read-onlyIdempotent

Retrieve mass, volume, centroid, and inertia for an Onshape Part Studio or a specified part; assign materials to enable mass calculation.

Instructions

Mass, volume, centroid and inertia of a Part Studio (or one part via part_id). Requires materials for mass.

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>",
      "wvm": "<wvm>",
      "wvmid": "<wvmid>",
      "eid": "<eid>"
    },
    "name": "onshape_get_mass_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
didYes
eidYes
wvmYes
wvmidYes
part_idNo

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?

The annotations already establish readOnly, idempotent, non-destructive and open-world behavior, and an output schema covers the return shape. The description adds one genuinely useful behavioral caveat — mass depends on materials being assigned — but says nothing about units, precision, or what happens on a part with no material.

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?

Two short sentences, front-loaded with the returned quantities before the scoping clause. Every word carries weight, though the terse telegraphic style sacrifices some clarity for brevity on the identifier parameters.

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 output schema means return values need no explanation, and the materials caveat is a valuable addition. Still, for a tool whose arguments are four undocumented opaque IDs plus an optional part selector, the description leaves the agent without enough information to construct a correct call on its own.

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 parameters, and the description only explains part_id (selects a single part within the Part Studio). The identifiers did, eid, wvm (workspace/version/microversion enum) and wvmid are left entirely opaque, so the agent must guess at the document/element addressing scheme.

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 names the exact physical quantities returned (mass, volume, centroid, inertia) and scopes them to a Part Studio or a single part via part_id, so the agent knows precisely what it gets. It does not explicitly contrast itself with nearby siblings like onshape_get_bounding_box, which prevents a 5.

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?

There is an implicit conditional: 'Requires materials for mass,' which tells the agent the tool may return incomplete results on un-materialed geometry. However, there is no statement of when to prefer this over onshape_get_bounding_box or how it relates to assembly-level queries, so usage is only inferred.

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