Skip to main content
Glama
evidence-ledger-mcp

evidence-ledger-mcp

validate_ledger

Validate an entire ledger and report any problems, returning empty when valid; optionally check related ledgers for duplicate ids and conflicting claim text or importance.

Instructions

Validate a whole ledger; returns the problems found, empty if valid. Pass the other ledgers of the project as related (the same list as for add_record) to also report ids used in more than one of them (R-0001: id also used in <ledger>) and claims whose records disagree on claim text or importance across them (C-0001: records disagree on claim text across related ledgers).

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

Input Schema

NameRequiredDescriptionDefault
pathYes
relatedNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / properties / related
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Related"
      +}
  2. 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 burden and does well: it discloses that output is a problem list, that an empty result means valid, and gives literal message templates for cross-ledger id collisions and claim disagreements. It stops short of stating that validation is non-mutating or how an unreadable path is reported.

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 core behavior, then the optional enrichment. The embedded example messages look verbose but each one demonstrates a distinct check, so they earn their place.

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?

For a two-parameter validator with an output schema, this is nearly complete: the semantics of the optional argument and the shape of error strings are covered. Only edge behavior (missing file, malformed ledger) and explicit non-mutation are absent.

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 description coverage is 0%, so the description must compensate and largely does: it defines `related` as the same ledger list used by `add_record` and spells out the two cross-ledger failure modes it triggers. `path` is left unelaborated, though its meaning is self-evident from the required-parameter context.

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?

"Validate a whole ledger" is a specific verb plus resource, and "whole" implicitly contrasts with the sibling validate_record. It also states the return contract ("returns the problems found, empty if valid"), so an agent knows exactly what it gets back.

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?

It explains when to supply the optional `related` list and what extra checks that unlocks, cross-referencing `add_record` for the correct list. However, it never says when to prefer this over validate_record or check_ledger, so tool selection between siblings is left inferred.

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