Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by zmf678

set_material

Assign a material by name so mass and density reflect real properties instead of the default; set custom density for unsupported materials and return mass properties.

Instructions

Assign a material by name (e.g. "6061 Alloy", "AISI 1020", "ABS").

Makes mass and density reflect a real material instead of the 1000 kg/m鲁 default. One SolidWorks does not have (say "TPU") comes with its density: density_kg_m3=1210 makes it, by that name, carrying only the density. The English names work on a SolidWorks in another language too. Returns mass properties including density.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
databaseNo
density_kg_m3No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: it mutates mass/density, the custom-density path via density_kg_m3, cross-language name resolution, and that it returns mass properties. It omits failure behavior for an unknown material name, whether the change is reversible, and whether an open document/configuration is required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Short and front-loaded with the key verb and examples, but the middle sentences are grammatically broken ("One SolidWorks does not have (say "TPU") comes with its density") and there is a mojibake character in "kg/m鲁", which costs comprehension. The final sentence about return values is well placed.

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?

A three-parameter mutation tool with no annotations and no output schema needs the description to do heavy lifting; it covers the effect, the custom-density escape hatch, and the return payload, but leaves one parameter and all failure modes undocumented.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It adds real meaning for `name` (English names accepted even in non-English SolidWorks) and for `density_kg_m3` (with a worked example, TPU at 1210), but `database` is never mentioned anywhere in the description or schema.

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?

Opens with a specific verb+resource ("Assign a material by name") and supplies concrete example values ("6061 Alloy", "AISI 1020", "ABS") that make the resource concrete. It does not explicitly differentiate itself from siblings such as set_appearance, but the operation is unambiguous on its own.

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?

Implied guidance is present via the motivation — use this when mass and density should reflect a real material rather than the 1000 kg/m3 default. There is no explicit when-not guidance, no mention of prerequisites (active document, existing configuration), and no named alternatives.

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