Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_list_elements

Read-onlyIdempotent

Lists the tabs (Part Studios, Assemblies, Drawings, Variable Studios) in an Onshape document, with optional filtering by element type to locate the right workspace content.

Instructions

List the tabs (elements) in a document: Part Studios, Assemblies, Drawings, Variable Studios... element_type optionally filters, e.g. PARTSTUDIO, ASSEMBLY, DRAWING, VARIABLESTUDIO.

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>"
    },
    "name": "onshape_list_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
didYes
wvmYes
wvmidYes
element_typeNo

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, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered elsewhere. The description adds only that the operation is scoped to a single document's tabs plus the filter behavior; it says nothing about failure modes for an invalid did/wvm/wvmid combination or about result ordering. Useful, but thin beyond what annotations supply.

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 sentences, front-loaded with the core purpose, with no filler. The trailing ellipsis after "Variable Studios..." is slightly sloppy and suggests an incomplete list, but overall it is efficiently sized.

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 the description need not explain return values. However, for a tool whose three required parameters are undocumented in both schema and description, the definition is not complete enough to let an agent construct a correct call without guessing what wvm and wvmid mean.

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 coverage is 0%, so the description carries the full burden, and it only documents one of four parameters. It does add real value for element_type by naming valid values (PARTSTUDIO, ASSEMBLY, DRAWING, VARIABLESTUDIO) that the schema lacks as an enum, but the three required parameters did, wvm and wvmid are left entirely opaque — notably the w/v/m discriminator, which is the key to using the tool correctly.

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 gives a specific verb and resource ("List the tabs (elements) in a document") and enumerates what those elements are: Part Studios, Assemblies, Drawings, Variable Studios. It is clear what the tool returns, but it never distinguishes itself from siblings such as onshape_get_features or onshape_get_document, leaving the agent to infer the boundary.

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 only implied: the mention that element_type "optionally filters" hints at the narrowing case, and the enumerated element kinds suggest when to reach for it. There is no explicit statement of when this tool is preferred over onshape_get_document or onshape_get_features, and no exclusion or precondition guidance.

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