Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_create_variable_studio

Create a new Variable Studio tab in an Onshape workspace and return its element ID for configuring variables.

Instructions

Create a new Variable Studio tab in a workspace. Returns its element id (use with onshape_set_variables).

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

Input Schema

NameRequiredDescriptionDefault
didYes
widYes
nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, open-world mutation, so the safety profile is covered. The description adds the meaningful fact that the call returns an element id and what to do with it. It omits permission requirements and what happens on name collision, and it doesn't repeat annotation content, which is appropriate.

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 short sentences with no filler: the action is front-loaded and the return-value/follow-up hint is appended compactly. Nothing could be removed without losing information.

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 return value needn't be explained in depth, and the safety profile is carried by annotations. The remaining gap is substantive for a 3-required-parameter mutation: with zero schema descriptions, an agent must guess which identifier goes in did versus wid and whether name has constraints.

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%, so all three required parameters (did, wid, name) carry no documented meaning in structured fields. The description only loosely implies that wid scopes the workspace; it never explains that did is a document id or what name constrains (uniqueness, allowed characters). The description fails to compensate for the coverage gap.

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 uses a specific verb and resource ('Create a new Variable Studio tab in a workspace'), which is far more informative than the tool name alone and distinguishes it from generic document creation. It doesn't explicitly contrast with closely related siblings like onshape_create_part_studio, but the object created is unambiguous.

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?

The parenthetical 'use with onshape_set_variables' gives a concrete downstream handoff, which is useful sequencing guidance. However, it says nothing about when to prefer this over onshape_create_part_studio or other creation tools, and no prerequisites or exclusions are stated.

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