Skip to main content
Glama

cad_calc

Calculate cylinders, screw drives, belt drives, and bolts to return formula-based calculation sheets and recommended models for CAD sizing and standard-part selection.

Instructions

选型计算,返回带公式过程的计算书与推荐型号(有变更会话时计算书存入工作区并随版本发布)。 cylinder: load_kg 或 force_N, orientation horizontal|vertical, stroke_mm, pressure_MPa=0.5, direction push|pull screw_drive: load_kg, stroke_mm, speed_mm_s, accel_time_s=0.2, orientation, lead_mm(可选), screw_diameter_mm=16 belt_drive: load_kg, stroke_mm, speed_mm_s, accel_time_s=0.2, pulley_pd_mm=30 bolt: size(M6), count, grade 8.8|10.9|12.9, tension_N, shear_N 先算再建模:用 selection 结果选标准件(cad_search_library)和定尺寸。

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": {
      "kind": "<kind>",
      "params": "<params>"
    },
    "name": "cad_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
paramsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent, non-destructive local operation. The description adds a genuinely non-obvious side effect: when a change session is active, the calculation report is written into the workspace and published with versions. That is exactly the kind of consequence an agent could not infer from the annotations, though the description does not cover failure modes or whether recalculation overwrites a prior report.

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?

The structure is well front-loaded: purpose and return value first, then one line per kind, then a workflow note. It is dense but each line earns its place. It is telegraphic and would read better with consistent separators, but there is no filler.

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?

An output schema exists, so the description is not obliged to explain return values, and its one clause about report persistence in change sessions is a useful extra. Given the free-form `params` object, the per-kind parameter lists are what make it complete. The remaining gap is validation behavior — what happens when required keys are missing or the calculation is infeasible.

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

Parameters5/5

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

Schema coverage is 0% — the schema exposes only a four-value `kind` enum and an untyped `params` bag, so the description carries the full burden. It enumerates the expected keys for every kind with defaults (pressure_MPa=0.5, accel_time_s=0.2, screw_diameter_mm=16, pulley_pd_mm=30) and alternative inputs (load_kg or force_N), which is the only source of meaning for these parameters. Without it the tool would be effectively uncallable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line names a specific action and deliverable: a selection calculation that returns a calculation report with formula steps plus a recommended model. This is clearly distinguishable from the build/edit/export siblings, and the per-kind enumeration (cylinder, screw_drive, belt_drive, bolt) reinforces exactly which domain the tool covers.

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

Usage Guidelines4/5

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

The closing line gives explicit sequencing guidance: compute first, then use the selection result to choose standard parts via cad_search_library and fix dimensions. That names the sibling and the ordering constraint. It falls short of stating when not to use it or what to do if the calc cannot be satisfied, so it is strong but not exhaustive.

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