Skip to main content
Glama

design_to_gcode_pipeline

Transform design descriptions into production-ready G-code through automated template matching, STL generation, structural analysis, and slicing.

Instructions

End-to-end pipeline: description → template → STL → analysis → GCode.

One-call pipeline that:
1. Searches templates for best match
2. Generates STL via OpenSCAD
3. Runs structural risk analysis
4. Estimates weight
5. Slices to G-code (if slicer available)

:param description: Natural-language design description.
:param output_dir: Directory for output files (uses tempdir if empty).
:param material: Material for weight estimation and slicing.
:param printer_model: Printer model for slicer profile lookup.
:param infill_percent: Infill percentage for weight estimation.
:returns: Dict with paths to SCAD, STL, G-code files, weight, risks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
materialNoPLA
output_dirNo
descriptionYes
printer_modelNo
infill_percentNo
Behavior3/5

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

With no annotations, the description partially discloses behavior by listing steps and noting that slicing depends on slicer availability. However, it does not mention authorization needs, error handling, or whether the pipeline is destructive (e.g., creates files). Moderate transparency.

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 description is well-structured with a summary, enumerated steps, and a param section. It is concise and front-loaded, though the param block adds some length. No redundancy.

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

Completeness3/5

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

Given the complexity (5 params, no output schema, no annotations), the description explains the pipeline flow and return structure (paths, weight, risks). However, it lacks details on error handling, slicer unavailability, and partial results. Adequate but not fully comprehensive.

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?

The description includes a param block that briefly explains each parameter, adding meaning beyond the schema (which has 0% coverage). However, explanations are minimal (e.g., 'Natural-language design description') and lack constraints or allowed values. Adequate but shallow.

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 purpose with a specific verb and resource: 'End-to-end pipeline: description → template → STL → analysis → GCode.' It enumerates each step, distinguishing it from sibling tools by bundling multiple stages into a single call.

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

Usage Guidelines3/5

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

The description implies usage for a complete pipeline but does not explicitly state when to use this tool versus alternatives like 'generate_model' or 'slice_model'. No mention of prerequisites or exclusions.

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/codeofaxel/kiln'

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