Skip to main content
Glama
kerfkit-mcp

kerfkit-mcp

Official
by junixlabs

check_laser_file

Validate SVG or DXF laser-cutting files before cutting: check units, size, layers, open/overlapping paths, feature widths, bed fit, and kerf/slot clearances, with pass/warn/fail and locations.

Instructions

Check a laser cutting file (SVG or DXF) before cutting: units and real size, colour-to-layer mapping (cut/score/engrave), live text, open paths, double/overlapping cut lines, tiny stray paths and zero-length segments, self-intersections, minimum feature/bridge width, minimum hole, loose islands, bed fit and slot widths against thickness and kerf. Returns pass/warn/fail per check with locations in mm (origin top-left).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_laser_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgNoSVG text, instead of a path.
pathNoPath to a local .svg or .dxf file.
bed_mmNoBed size [w, h] in mm.
kerf_mmNoLaser kerf (full cut width).
profileNogeneric (default), strict, box, tray, kerf-test, ornament, name, silhouette, engrave, layered, refit
min_hole_mmNoMinimum cut-out width (default 1.0).
clearance_mmNoWanted joint play; 0 = press fit.
thickness_mmNoSheet thickness; enables the slot-width check.
min_bridge_mmNoMinimum feature / bridge width (default 1.2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and largely does: it discloses the full check inventory, the pass/warn/fail verdict model, and the coordinate convention (locations in mm, origin top-left). It does not explicitly state that the file is not modified or how unparseable/missing files are reported, which matters for a validation 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 purpose, then a compact enumerated list of checks and a single return-value sentence. Dense but every clause adds actionable information; the long check list is justified rather than padding.

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 no output schema, the description succinctly covers what is checked and the shape of results (per-check verdicts with mm locations). Gaps remain around error handling for invalid files, default profile behaviour, and confirmation that the source file is untouched.

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, but the description adds value by tying parameters together: kerf plus thickness enable the slot-width check, and outputs are reported in mm. It still does not explain semantics of the 'profile' string values beyond the enum-less list in the schema, leaving profile behaviour opaque.

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?

Names a specific verb+resource ('Check a laser cutting file (SVG or DXF)') and then enumerates the exact checks performed, including geometry, units, layering, and kerf/slot fit. An agent can distinguish this pre-flight validator from the sibling fix/refit tools purely from the description.

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?

Frames the usage clearly as a pre-cut validation step ('before cutting'), which gives the agent a concrete trigger. However, it never names an alternative or exclusion, e.g. that it does not repair files and that fix_laser_svg/refit_slots should follow a fail verdict.

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