Skip to main content
Glama

validate_manifest

Check a manifest JSON before geometry builds. Enforce structural and cross-reference rules, report problems, and fingerprint the contract for lockfile consistency.

Instructions

Validate a manifest WITHOUT building it (the cheap front door, RFC §11.7). Structural + cross-reference checks a JSON shape can't enforce: every component has exactly one of file/manifest/library; a library carries a tool; every instance references a known component; every mate/check references a known instance; a present schema is the known version ("ankusdrive.manifest/1").

manifest: path to the manifest JSON.

Returns {ok, problems, schema, manifest_hash} — ok is True iff problems is empty; manifest_hash fingerprints the contract content (what the lockfile records so a stale contract is detectable). Run this before merge_assembly to reject a malformed contract before any geometry is built.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
manifestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it states validation occurs WITHOUT building, describes the check classes, and gives the return contract including ok iff problems is empty and what manifest_hash fingerprints. No side-effecting or mutating behavior is implied.

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?

The description is front-loaded with purpose and distinction, then adds check details, parameter meaning, return contract, and usage order. The density is justified by the tool's validation complexity, and no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema and no annotations, the description supplies the purpose, sibling distinction, parameter meaning, return shape, and when to call it. An agent has everything needed to select and invoke it correctly.

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

Parameters4/5

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

Schema coverage is 0%, so the description must define the lone parameter, and 'manifest: path to the manifest JSON' supplies the critical missing semantic that this is a filesystem path rather than inline JSON. It could go further on relative-vs-absolute path expectations, but for one required parameter it is substantially compensating.

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?

The description states a specific verb and resource (validate a manifest) and immediately distinguishes it from building via merge_assembly. It also enumerates the concrete structural and cross-reference checks performed, so an agent can tell exactly what this tool is for.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says 'Run this before merge_assembly to reject a malformed contract before any geometry is built,' naming the alternative and the condition that selects this tool. The 'cheap front door' framing further clarifies the intended early-stage use.

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