Skip to main content
Glama
znk-mcp

znk-mcp

znk_boolean

Combine two solids with union, subtract, or intersect operations, returning measurements and a replayable recipe. Accepts prior tool results as operands for chained CSG modeling.

Instructions

Boolean operation between two solids: operation = union | subtract (a minus b) | intersect. a and b are recipes from znk_create / znk_boolean / znk_import; a whole previous tool result is also accepted. Planar polyhedra are exact; curved bodies may use the tessellated curved-CSG fallback (method/volume_source says so). Returns measurements plus a new replayable recipe. Kernel errors (e.g. 2001 Degenerate, 2004 Coincident, 2009 BooleanFailed) are passed through unchanged.

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": {
      "operation": "<operation>",
      "a": "<a>",
      "b": "<b>"
    },
    "name": "znk_boolean"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesfirst operand recipe or previous tool result
bYessecond operand recipe or previous tool result
operationYesunion | subtract (a-b) | intersect
tessellateNoalso tessellate the result (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.5/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 does well: it discloses the exact-vs-tessellated split for planar vs curved bodies, the self-describing fallback flag (method/volume_source), the return payload (measurements plus a replayable recipe), and pass-through of kernel error codes such as 2001 Degenerate, 2004 Coincident, 2009 BooleanFailed. It does not address statefulness/idempotency, units, or whether any partial geometry is returned on failure.

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 tight sentences, front-loaded with the operation set, then operand provenance, then precision/return/error behavior. No restatement of the title or name and no filler; parentheticals are used to compress clarifying detail.

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

Completeness5/5

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

For a deeply nested CSG tool with no output schema and no annotations, the description covers the essentials an agent needs: accepted operand forms, precision caveats with a detectable flag, what is returned, and how kernel failures surface. The remaining details (tessellate default, per-field shapes) are adequately carried by the schema.

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 baseline is 3, but the description adds genuine meaning beyond the opaque nested operand objects: it constrains what a and b may be (recipes from named tools, or a prior whole tool result) rather than the schema's permissive enums/additionalProperties. It also clarifies operand order semantics beyond the enum label "subtract (a-b)", though it says nothing about the optional tessellate flag that lives in 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?

Opens with a specific verb+resource ("Boolean operation between two solids") and immediately enumerates the three supported operations with the operand order for subtract spelled out as "(a minus b)". An agent can distinguish this from znk_create/znk_import because those are named as the producers of the operand recipes this tool consumes.

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?

Routing is clear: operands must come from znk_create / znk_boolean / znk_import, and a whole previous tool result is acceptable, which tells the agent how to chain calls. It stops short of stating when-not to use this tool (e.g. non-solid or single-body cases) or how it relates to znk_adjudicate/znk_topology checks.

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