Skip to main content
Glama

add_rack

Create a solid linear gear rack (spur gear counterpart) by specifying teeth, module, pressure angle. Ensures pitch matches spur gears for proper meshing.

Instructions

Add a linear gear rack (a spur gear's straight counterpart) as a solid.

A rack is a gear of infinite radius: straight-flanked teeth on a rail. Standard full-depth tooth form (addendum = module, dedendum = 1.25module, tooth height = 2.25module, flanks at pressure_angle from vertical).

teeth: number of teeth (>= 1). module: mm (sets tooth size; circular pitch = module * pi). height: extrusion thickness mm along +Y (the rack's face width; default 6). width: mm, rail base-band thickness below the tooth root line (default 10). pressure_angle: deg, flank angle from vertical (default 20; 0 < pa < 45). placement: optional [x, y, z] mm translation of the rack origin. name: object label (default "Rack").

The profile lies in the XZ plane: root line at z=0, base band from z=-width to z=0, teeth from z=0 to z=2.25*module, extruded along +Y by height.

Returns {handle, name, volume (mm^3), pitch (mm/tooth = modulepi), module, teeth, tooth_height (2.25module mm), length (teethmodulepi mm)}. A spur gear MESHES with this rack when their pitch values match (gear module*pi == rack pitch); length sizes the rail for the travel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoRack
teethYes
widthNo
heightNo
moduleYes
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?

With no annotations, the description carries the full behavioral burden and discloses substantial detail: standard tooth form formulas, extrusion direction along +Y, profile plane, defaults, and return fields. It still does not cover document-state side effects or error behavior, keeping it from a 5.

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 front-loaded with the tool's purpose and then structured into geometry, parameter, and return sections. Despite its length, every sentence provides useful design or invocation information without repetition.

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 annotations, no output schema, and 0% schema description coverage, the description is complete enough: it documents all parameters, return fields, meshing relationship, and geometric conventions. No essential invocation detail is missing for this primitive-creation tool.

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 description coverage is 0%, so the description fully compensates by explaining every parameter: teeth (>=1), module (mm and circular pitch), height (extrusion thickness along +Y, default 6), width (rail base-band thickness, default 10), pressure_angle (deg, default 20, 0<pa<45), placement ([x,y,z] mm), and name (default 'Rack').

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 states a specific verb and resource: 'Add a linear gear rack (a spur gear's straight counterpart) as a solid.' It explains the geometry and relationship to spur gears, which helps distinguish it from sibling tools like add_gear and add_sprocket.

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?

It provides clear contextual usage: a spur gear meshes with this rack when their pitch values match, and length sizes the rail for travel. However, it does not explicitly say when to choose add_rack over add_gear or other siblings, nor does it state exclusions.

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