Skip to main content
Glama

Garphield

Validate a Garphield document

garphield_validate
Read-only

Check a stored document (doc) or a raw .gph document (document) the way the workbench would load it, strictly: the schema, the graph, every binding against the graph's fields and the channel rules, and the filter stack. Returns ok, errors (code, path, message, expected, suggestions) and warnings such as UNLAID (no saved positions).

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": "garphield_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
docNoDocument reference: a stored document id, a file path, or "current" in the workbench.
documentNoA whole .gph document as JSON, for callers who wrote one themselves.

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?

The annotations already establish readOnly, non-destructive and closed-world behavior, so the safety profile needs no restating. The description adds real behavioral context beyond them: strictness semantics ('the way the workbench would load it, strictly'), the failure shape (errors carry code, path, message, expected, suggestions) and a warning class such as UNLAID for missing saved positions — notable because there is no output schema.

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, front-loaded with the verb and subject, then the enumeration of check stages and the return contract. The parenthetical parameter-name mapping (doc/document) is compact, and no sentence is filler.

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 no output schema, the description correctly carries the return-value burden and names the fields an agent needs (ok, errors with code/path/message/expected/suggestions, warnings like UNLAID). What's missing is a note on whether both input parameters may be combined or which takes precedence, and whether validation is strict-only or has a lenient mode.

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 both parameters are already documented and the baseline is 3. The description does add the useful framing that doc and document are alternative modes of supplying the same subject (one stored/current, one inline raw document), but it gives no precedence rule if both are passed.

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?

It uses a specific verb+resource ('Check a stored document ... or a raw .gph document') and enumerates exactly what is checked: schema, graph, bindings against graph fields and channel rules, and the filter stack. That makes the operation concrete, but no sibling tool (e.g. garphield_inspect, which could look superficially similar) is named, so differentiation relies on inference.

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 through the two input modes ('stored document' vs 'raw .gph document', the latter for callers who wrote one themselves) and the 'way the workbench would load it, strictly' framing. There is, however, no explicit guidance on when to validate versus inspect, or on what conditions make validation worthwhile (e.g. before export or share).

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.

Resources