Skip to main content
Glama

ParCAD

Check a selector

check_selector
Read-only

Parse a directional selector such as '>Z and >Y and |X' and report the exact error and character span if it is wrong. Cheap: it runs the kernel's own parser and touches no geometry.

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": {
      "selector": "<selector>"
    },
    "name": "check_selector"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo`edge` (default) or `vertex`. Vertex selectors accept directional extrema only.
selectorYesA selector to check, such as `>Z and >Y and |X`.

Output Schema

NameRequiredDescriptionDefault
okYes
spanNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a safe, closed, read-only operation, so the description's job is to add beyond that. It does: it discloses that it runs the kernel's own parser (so results match real parsing), that it is cheap, and that it touches no geometry, i.e. no side effects on the model.

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 sentences, zero padding. The core action and the error/span output come first, and the cost/behavior note follows as supporting context.

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?

With an output schema present, return values need no explanation, and both parameters are fully described in the schema. The description covers what the tool does, its cost profile, and its lack of geometry side effects; only the sibling-routing dimension is absent.

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% and the schema already documents both `selector` and `kind`, including the edge/vertex distinction and that vertex selectors accept directional extrema only. The description adds an example selector format, which is modest value beyond the schema, so the baseline of 3 applies.

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 names a specific verb (parse/check) and resource (a directional selector) and gives a concrete example selector string, so an agent knows exactly what operation is performed. It does not explicitly contrast with any sibling tool, which keeps it 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 rather than stated: 'report the exact error and character span if it is wrong' suggests validating a selector before using it in another call, and 'touches no geometry' hints that it is the cheap pre-check. There is no explicit when-to-use, when-not-to-use, or named alternative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.