Skip to main content
Glama
kerfkit-mcp

kerfkit-mcp

Official
by junixlabs

refit_slots

Resize closed rectangular slots in an SVG to real sheet thickness and kerf by changing only slot width while preserving centre, angle, and length; edge notches, tabs, and finger joints stay unchanged.

Instructions

Refit the closed rectangular slots of an SVG to a real sheet thickness and kerf (each slot keeps its centre, angle and length; only its width changes). Edge notches, tabs and finger joints are not moved in v0.1.

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": {
      "thickness_mm": "<thickness_mm>"
    },
    "name": "refit_slots"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgNoSVG text, instead of a path.
pathNoPath to a local .svg or .dxf file.
kerf_mmNoKerf.
output_pathNoWhere to write the resulting SVG. If omitted, the SVG text is returned in the result.
clearance_mmNoPlay.
thickness_mmYesReal sheet thickness.
design_thickness_mmNoThickness the file was drawn for (guessed if omitted).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 burden and does disclose the key behavioral contract: only slot width is altered, geometry anchors are untouched, and non-slot features are left alone in v0.1. The major unstated behavior is file mutation semantics — whether it rewrites the source file, honors output_path by writing, and how design_thickness_mm is 'guessed' — which keeps 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?

Two tight sentences: the transformation is front-loaded in the first, the scope limitation in the second. No filler, and the parenthetical precisely scopes what changes.

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?

For a seven-parameter file-mutating tool with no annotations and no output schema, the description covers purpose and geometric scope well but leaves file I/O behavior (in-place vs. output copy), failure conditions, and parameter interplay (clearance) unexplained.

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?

Schema coverage is 100%, so the schema already documents all seven parameters, so the baseline is 3. The description adds some meaning by framing thickness/kerf as driving slot width only, but it says nothing about clearance_mm, the svg-vs-path alternatives, or the guessed design_thickness_mm beyond a bare mention.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Refit the closed rectangular slots of an SVG' — and defines the exact transformation invariant (centre, angle, length preserved; width changes), which lets an agent predict the output. It does not differentiate itself from siblings like fix_laser_svg or slot_width, so it stops short of a 5.

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?

Usage is implied: call this once real sheet thickness (and optionally kerf/clearance) is known, on files with closed rectangular slots. The exclusions ('edge notches, tabs and finger joints are not moved in v0.1') usefully bound scope, but there is no explicit when-to-use versus the sibling tools, nor guidance on which source parameter (svg vs path) or output mode to prefer.

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