Skip to main content
Glama
Shapr3D Native MCP

Shapr3D Native MCP

by 21Suspect

native_set_variable

Change a named variable's expression to recompute a parametric Shapr3D model; invalid or failing updates are rolled back and reported as errors.

Instructions

Change a variable, e.g. ("width", "60 mm") or ("hole_d", "width / 10"). The model recomputes; if a variable stops evaluating, a history step fails or bodies appear or vanish, the change is undone and an error is raised.

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": {
      "name": "<name>",
      "expression": "<expression>"
    },
    "name": "native_set_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers the key trait: the model recomputes and the change is transactional — if evaluation fails, a history step fails, or bodies appear/vanish, the edit is rolled back and an error is raised. It does not state preconditions such as whether the variable must already exist or what the error looks like.

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 action and examples, followed by the failure semantics. Both sentences earn their place; the inline example syntax is slightly dense but no wording is wasted.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutating tool with no annotations and no output schema, the description covers the essentials: what changes, that a recompute follows, and that failure is atomic and surfaced as an error. It stops just short of stating preconditions on `name` and how dependencies on other variables are handled.

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

Parameters4/5

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

Schema coverage is 0% and both parameters are title-only, so the description must compensate — and it does. The examples show that `name` is an existing variable identifier (e.g. "width", "hole_d") and that `expression` is a string that can carry units ("60 mm") or reference other variables arithmetically ("width / 10").

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+resource ("Change a variable") and illustrates it with two concrete (name, expression) pairs, which makes the operation unambiguous. It effectively contrasts with the create-style siblings by being a change operation, but never names an alternative explicitly.

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 rather than stated: the examples show modifying an existing named variable's expression, which suggests the variable must already exist and that a creation tool should be used otherwise. No explicit when-to-use / when-not-to-use guidance or alternatives are named.

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