Skip to main content
Glama

Validate a drawspec document

validate

Check whether a document would be rejected by render, and locate each violation by JSON pointer. Run before rendering to fix all issues in one pass.

Instructions

Answer whether render would refuse this document, and if so exactly where. Returns every violation, not the first — each located by JSON pointer, so one pass is one edit. Call this before render while a document is being written.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeNoA bundled theme name or a path to a theme file. Omit for the default.
documentYesA drawspec document, as JSON. The full field list is published at https://nuncaeslupus.github.io/drawspec/schema/drawspec-v1.schema.json, and `kinds` names the 36 values `kind` may take.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 delivers the key behavior: it reports every violation rather than stopping at the first, and each is located by JSON pointer for single-pass editing. It doesn't state that the operation is non-mutating or describe the shape of an individual violation object, but the behavioral essentials are present.

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 short sentences, front-loaded with the core question ('would render refuse this, and where'), then return semantics, then timing. Every sentence earns its place; nothing is repeated from the schema.

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?

No output schema exists, so the description must cover return values, and it does convey that all violations come back with JSON pointer locations. For a nested-object validator it could go slightly further on the per-violation fields, but an agent has enough to invoke and interpret it correctly.

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 `document` and `theme` are already documented — including the schema URL and the 36 `kind` values. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb (validate/answer) and resource (a drawspec document), and frames it precisely against the sibling `render` — it answers whether render would refuse the document and where. An agent can distinguish this from `render` and `kinds` without opening any 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?

Explicitly says to call it before `render` while a document is being written, which names the alternative and the triggering condition. It stops short of stating when not to call it (e.g., after a clean validation or on already-rendered output), so it is clear context rather than full routing guidance.

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

Deploy Server

Other Tools