Skip to main content
Glama
Nirlepb

3D CAD BasePlate Generator MCP

by Nirlepb

generate_precise_cap

Generates a threaded cap STL/STEP file from provided outer diameter, inner diameter, and height, adding internal helical threads based on optional thread parameters.

Instructions

Generate a threaded cap STL/STEP from measured opening dimensions: a solid closed top with a skirt carrying real helical internal threads (swept, not just a bore). Takes structured JSON only (no image) — vision/dimension extraction happens client-side before this is called. Deterministic CadQuery, no network call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
heightYesmm, cap height
confidenceNocaller-supplied confidence in the extracted dimensions, from client-side vision analysismedium
threadDepthNomm, radial depth the thread ridge protrudes inward from the skirt wall; omit for a 0.6mm default
threadPitchNomm, omit to fall back to a standard single-start pitch (~PCO 1810, 3.18mm)
threadStartsNonumber of parallel thread starts (2-3 is typical for quick-on caps); omit for a single-start thread
topThicknessNomm, solid top wall thickness; omit to derive one from height (clamped to 1.2-3mm)
innerDiameterYesmm, opening the cap must clear
outerDiameterYesmm, cap outer diameter
Behavior4/5

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

With no annotations provided, the description carries the full burden. It states 'deterministic CadQuery, no network call,' which is helpful for safety and behavior. However, it does not disclose potential side effects (e.g., if any files are modified) or output format specifics.

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?

Three sentences, front-loaded with purpose, then constraints, then behavioral info. Every sentence adds value with no wasted words.

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?

The description covers the tool's purpose and constraints well, but does not specify how to choose output format (STL vs STEP) or if an additional parameter is needed. Given the lack of output schema, this is a minor gap.

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

Parameters4/5

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

Schema description coverage is 100%, so baseline is 3. The description adds meaning beyond schema by clarifying input format (JSON only, no image), and alludes to default values for parameters like threadDepth and threadStarts, enhancing understanding.

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 generates a threaded cap STL/STEP from measured opening dimensions, specifying the resource (threaded cap) and action (generate). It distinguishes from sibling tools (fill, generate_visual_mesh, repair_mesh) which have different purposes.

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 explicitly says it 'takes structured JSON only (no image)' and that vision/dimension extraction happens client-side before calling this tool, clarifying when to use it. It does not explicitly state when not to use it, but sibling context makes the distinction clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nirlepb/AI-CAD-Generator-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server