Skip to main content
Glama

ghjson_validate

Validates wise.ghjson definitions before canvas use by checking IDs, names, verified GUIDs, Python 3 script headers and outputs, and named wire endpoints.

Instructions

Validate a wise.ghjson definition before it touches a canvas: ids, names, verified GUIDs only, script components start with '#! python 3' and have outputs, every wire names both ends.

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": {
      "path": "<path>"
    },
    "name": "ghjson_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the validation rule set, which is genuine behavioral content, but never states that the operation is non-mutating, what happens on failure (exception vs. warning list), or how 'verified GUIDs' are verified — which implies a dependency on an external library or live document.

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?

One front-loaded sentence with a colon-separated checklist — dense, no filler, and the action precedes the detail. Some list items ('verified GUIDs only') are compressed to the point of ambiguity.

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 one-parameter, no-output-schema, unannotated tool, the description should at minimum say what a caller gets back and whether validation is purely static. The rule list covers 'what is checked' but leaves the failure/response contract and the path format unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single 'path' parameter, and the description never explains that it is a filesystem path to a .ghjson file, nor whether relative paths or document references are accepted. The word 'definition' in the resource phrase is the only indirect hint.

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?

Uses a specific verb ('Validate') on a specific resource ('a wise.ghjson definition') and enumerates the rules checked: ids, names, verified GUIDs, script-header requirement, output presence, and wire endpoints. An agent can tell this apart from apply/compile-style siblings without opening a schema.

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?

'before it touches a canvas' gives a clear temporal/usage context — a pre-flight check prior to loading into Grasshopper. It does not name the specific downstream tool to run afterward or state what to do when validation fails, so routing is implied rather than explicit.

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