Skip to main content
Glama
znk-mcp

znk-mcp

znk_export

Export solids or imported files to STL, OBJ, or STEP with configurable STL/STEP options, optional output paths, and verification stats returned for each file.

Instructions

Export a solid to stl | obj | step. Pass a recipe (solid) or an imported file (file), plus an optional output path. STL defaults to binary (set binary=false for ASCII); STEP supports schema AP203/AP214/AP242 and length_unit m|mm (extensions are routed by znk2_cli and round-trip verified). When path is omitted the server writes under ZNK2_EXPORT_DIR (default: /znk_exports). Returns the absolute path, byte size and mesh/round-trip stats.

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": {
      "format": "<format>"
    },
    "name": "znk_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoimported file to export (alternative to solid)
pathNooutput file path (optional)
solidNosolid recipe or previous tool result
binaryNoSTL only: binary (default true) or ASCII
formatYesstl | obj | step
schemaNoSTEP schema (default AP242)
angle_tolNotessellation angle tolerance in radians (default 0.2)
chord_tolNotessellation chord tolerance; <=0 = 1e-3 * bbox diagonal
length_unitNoSTEP length unit (default m)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does well: it discloses STL binary default, STEP schema/length_unit defaults, extension routing via znk2_cli with round-trip verification, and the ZNK2_EXPORT_DIR fallback directory. Gaps remain on write behavior (does an existing path get overwritten?) and error conditions, which matters for a filesystem-writing tool.

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?

Front-loaded with the core action and format list, followed by mode selection, format-specific flags, path fallback, and return values in a logical order. Dense parenthetical asides make it slightly hard to scan but no sentence is wasted.

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?

For a 9-parameter tool with a nested recipe object and no output schema, the description covers input modes, key defaults, output directory behavior, and what is returned (path, byte size, mesh/round-trip stats). Only overwrite semantics and failure modes are left undescribed.

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 coverage is 100%, so the baseline is 3; the description goes beyond by clarifying defaults and interactions the schema only implies—binary applies to STL only, STEP supports AP203/AP214/AP242 and m|mm, and extension routing is automatic. It does not add meaning for angle_tol/chord_tol, leaving those entirely to the schema.

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?

States a specific verb+resource ('Export a solid to stl | obj | step') and enumerates the exact output formats, plus names the two input modes (recipe vs imported file). This is clearly distinct from import/boolean siblings like znk_import or znk_boolean.

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?

Explains the two input modes ('Pass a recipe (solid) or an imported file (file)') and gives default behavior for omitted path, but never states when to choose export over an alternative tool or any prerequisite for calling it. Guidance is implied through defaults rather than explicit when/when-not routing.

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