Skip to main content
Glama

Add Gear

add_gear

Create an involute spur gear as a solid in FreeCAD. Specify tooth count and module; adjust pressure angle, internal/external profile, and placement for meshing pairs.

Instructions

Add an involute spur gear (FreeCAD's core involute generator), extruded to a solid.

teeth: tooth count (>= 3). module: mm (pitch diameter = module * teeth). height: extrusion thickness mm. pressure_angle: deg (default 20). external: True for an external gear; False for an internal/ring tooth profile. placement: optional [x, y, z] mm translation. Returns {handle, name, volume, pitch_radius, tip_radius, root_radius, teeth, module, external}. Two external gears MESH when their axes are spaced (pitch_radius_a + pitch_radius_b) apart; phase one by half a tooth to avoid tooth-on-tooth interference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoGear
teethYes
heightNo
moduleYes
externalNo
placementNo
pressure_angleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses that the result is extruded to a solid, lists the exact return fields, and explains meshing behavior for external gears (spacing equal to pitch_radius_a + pitch_radius_b plus half-tooth phasing). This adds meaningful behavioral context beyond what annotations convey.

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?

The description is compact and efficiently structured: it opens with the core purpose, then systematically lists each parameter, followed by the return fields and a practical meshing note. Every sentence provides essential information without redundancy or filler.

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

Completeness5/5

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

Given 7 parameters, no output schema, and minimal annotations, this description gives the agent everything needed to call the tool correctly: parameter meanings, formulas, defaults, return values, and even inter-gear spacing guidance. Nothing critical is missing for successful invocation.

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?

With 0% schema description coverage, the description fully compensates by explaining teeth (minimum 3), module with the pitch diameter formula, height as extrusion thickness, pressure_angle with default, external as an internal/ring toggle, and placement as an optional translation. It omits only the trivial 'name' parameter which has a default.

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 description clearly states the tool's function: 'Add an involute spur gear (FreeCAD's core involute generator), extruded to a solid.' It uses a specific verb and resource, and mentions the FreeCAD generator, which differentiates it from sibling tools like add_rack, add_sprocket, and add_pulley.

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 description provides comprehensive parameter semantics and a pitch diameter formula, making the usage context clear. However, it does not explicitly mention alternatives or when not to use this tool, leaving the agent to infer from sibling names. This is a clear context without exclusions, but not fully explicit about alternative selection.

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

Deploy Server

Other Tools