Skip to main content
Glama

AI CAD Hub MCP

calculate_gear

Compute involute spur gear pitch, base, outside, and root diameters, optional meshed center distance, undercut check, and CAD parameter AST.

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": {
      "teeth": "<teeth>"
    },
    "name": "calculate_gear"
  }
}

Input Schema

NameRequiredDescriptionDefault
boreNoCenter shaft bore diameter in mm (default 6).
teethYesNumber of teeth on primary gear.
widthNoFace width in mm (default 10).
moduleNoMetric module in mm (provide module or diametralPitch).
teeth2NoOptional meshing second gear teeth count.
backlashNoBacklash clearance per tooth in mm (default 0.15).
pressureAngleNoPressure angle in degrees (default 20).
diametralPitchNoOptional diametral pitch if module is omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It usefully discloses what is computed (including conditional outputs like meshed center distance and an undercut check) and that a CAD parameter AST is produced, which implies a pure deterministic calculation with no side effects. It does not clarify precedence between module and diametralPitch, error behavior for invalid tooth counts, or the shape of the returned AST.

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?

A single dense sentence fragment with zero filler, front-loading the core computation and then the optional extras. It is not a grammatical sentence, but every clause earns its place and no information is buried.

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?

With eight parameters, no annotations, and no output schema, the description does the important remaining work by enumerating the computed values, effectively serving as a return-value summary. Only minor gaps remain, such as the module-vs-diametralPitch precedence rule and what the AST contains.

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 100%, so all eight parameters (module, teeth, pressureAngle, backlash, bore, width, teeth2, diametralPitch) are already documented with units and defaults. The description mentions meshed center distance and undercut check in a way that lightly signals the role of teeth2, but adds no syntax or semantic detail beyond the schema. Baseline 3 applies.

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 names a specific verb ('Compute') and a specific resource ('involute spur gear') and enumerates exactly which outputs are produced: pitch, base, outside, and root diameters, meshed center distance, undercut check, and a CAD parameter AST. It is unmistakable against siblings like convert_svg_to_dxf or get_fastener_clearance, though it doesn't explicitly differentiate itself from them.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, nor any stated prerequisites or context of use. The 'optional' qualifier on center distance hints that teeth2 must be supplied for that output, but no when-to-use framing exists at all.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.