Skip to main content
Glama
znk-mcp

znk-mcp

znk_topology

Reads body-level B-rep topology counts for a solid via znk2_cli describe, covering shells, faces, loops, edges, vertices, Euler characteristic, validity, bbox, and closed flag.

Instructions

Read B-rep topology counts for a solid through znk2_cli describe: solids/shells/faces/loops/coedges/edges/vertices, Euler characteristic, shell Euler values, validity/issue_count, bbox and closed flag. This CLI-only tool layer reports body-level counts; entity-level face/edge/vertex geometry and adjacency (zn2_entity_topology) are NOT exposed by znk2_cli 2.28.1 and return an explicit NotSupported (1003) instead of fabricated data.

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": {
      "solid": "<solid>"
    },
    "name": "znk_topology"
  }
}

Input Schema

NameRequiredDescriptionDefault
solidYessolid recipe or previous tool result
entityNoentity reference; accepted by the schema but unsupported by the CLI backend (returns 1003)
entity_idNoraw entity id; unsupported by the CLI backend (returns 1003)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/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 real work: it discloses the backend dependency (znk2_cli 2.28.1), that this is a read-only describe path, and that unsupported inputs return an explicit error code rather than fabricated data. It does not discuss failure modes for an invalid solid or any limits on result size.

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?

Two sentences, front-loaded with the returned-count list followed by the capability limit. The long enumeration of counts is dense but each item is informative; there is no filler or repetition.

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?

There is no output schema, so the description's enumeration of returned fields (counts, Euler values, validity/issue_count, bbox, closed flag) is genuinely necessary. Combined with the explicit unsupported-input behavior, an agent has nearly everything needed to call this correctly; only error handling for a malformed solid is unaddressed.

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 description coverage is 100%, so the baseline is 3; the schema already documents solid as "solid recipe or previous tool result" and marks entity/entity_id as backend-unsupported with return code 1003. The description restates and reinforces that limitation with the version number, but adds no new format or structure detail about the solid object itself.

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?

The description opens with a specific verb+resource ("Read B-rep topology counts for a solid") and enumerates exactly what is returned: solids/shells/faces/loops/coedges/edges/vertices, Euler characteristic, shell Euler values, validity/issue_count, bbox and closed flag. It also scopes itself as body-level only, which implicitly separates it from entity-level tooling, though it does not explicitly contrast with siblings like znk_describe.

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?

It gives a clear operative context (CLI-only body-level counts via znk2_cli describe) and an explicit negative case: entity-level geometry/adjacency is not exposed and the entity/entity_id parameters return NotSupported (1003). It does not name a usable sibling alternative for entity-level queries, so the guidance stops short of full routing.

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