Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_get_bounding_box

Read-onlyIdempotent

Get the axis-aligned bounding box of all parts in an Onshape Part Studio in meters, so you can check overall model size and extents before export or assembly work.

Instructions

Axis-aligned bounding box of all parts in a Part Studio (meters).

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_bounding_box"
  }
}

Input Schema

NameRequiredDescriptionDefault
didYes
eidYes
wvmYes
wvmidYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds one genuinely useful behavioral fact not in the annotations — the result is in meters — but says nothing about behavior with empty/part-less studios, visibility filtering, or whether it accounts for suppressed parts.

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 front-loaded sentence with no filler; the units are stated immediately where they matter. It is efficient but so terse that it omits information an agent needs, which is penalized in other dimensions rather than here.

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

Completeness2/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 shape need not be described, and annotations cover safety, but the tool still requires four opaque identifiers at 0% schema documentation with no explanation of their meaning or accepted values. For a geometry query whose correctness hinges on correct workspace/element targeting, the definition leaves too much implicit.

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 four required parameters, so the description must carry the burden and largely does not. 'Part Studio' hints that eid refers to an element, and '(meters)' implies no unit negotiation, but did, wvm, and wvmid are entirely unexplained in both places.

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 resource and computation: an axis-aligned bounding box of all parts, scoped explicitly to a Part Studio and given in meters. The Part Studio scoping does distinguish it from assembly-level and mass-property siblings, though the verb is only implied by the tool name and no sibling is named.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusion of alternatives (e.g. when to prefer onshape_get_mass_properties or an assembly bounding box), and no statement of prerequisites such as needing element/workspace identifiers for a valid Part Studio.

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