Skip to main content
Glama
evidence-ledger-mcp

evidence-ledger-mcp

add_record

Append a validated evidence record to a JSON Lines ledger, automatically assigning IDs, quote hashes, and provenance before returning the stored entry.

Instructions

Append a record. The server assigns id, claim_id (unless given), quote_hash and the provenance date, validates the result and returns the stored record. Mark the phrase carrying the claim (a number, term or short statement) with optional quote_focus. Source text belongs only in quote, quote_prefix, quote_suffix and quote_focus: write justification, locator (including a section heading) and note in your own words, since they are exported with masked and locator ledgers; a record that repeats 24 or more letters and digits of its own quote in another field is refused, naming the field. A project with several ledgers keeps ids unique across them: pass the other ledgers' paths as related every time: the new id and claim_id are numbered past those of all of them, and claim and importance must agree with the records of the same claim in them.

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>",
      "record": "<record>",
      "provenance": "<provenance>"
    },
    "name": "add_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
recordYes
relatedNo
provenanceYes

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
Behavior5/5

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

With zero annotations the description carries the full burden and does so: it discloses server-side id/claim_id/quote_hash/provenance assignment, validation, an explicit refusal rule (a record repeating 24+ alphanumeric characters of its own quote in another field is rejected and the offending field named), export-time masking, and cross-ledger id numbering plus claim/importance consistency requirements. These are non-obvious behaviors an agent could not infer from the schema.

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?

Front-loaded with the one-line purpose, and nearly every clause carries a real constraint (id assignment, masking, refusal threshold, related-ledger numbering), so little is wasted. The long run-on sentences with heavy backtick usage make it denser than it needs to be, but no sentence is padding.

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?

Since an output schema exists, the description need not explain return values, and it covers the hard parts: server-assigned fields, validation/refusal, field separation, and multi-ledger id coordination. What is missing for a 0%-coverage nested schema is the shape of `record` and `provenance` (required keys, what provenance must contain) and what `path` actually points to.

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% with two open nested objects, so the description must compensate, and it names most meaningful record fields (`quote`, `quote_prefix`, `quote_suffix`, `quote_focus`, `justification`, `locator`, `note`, `claim`, `importance`, `id`, `claim_id`) plus the purpose of `related`. It leaves `path` undefined (ledger file? directory?) and never says which record or provenance keys are required.

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?

Opens with a specific verb+resource ("Append a record") and immediately clarifies what the server does on its own (assigns `id`, `claim_id`, `quote_hash`, provenance date, validates, returns stored record). That distinguishes it from get_record/update_record by implication, but it never names a sibling or the create-vs-import boundary.

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?

Gives a strong conditional usage rule for `related`: "pass the other ledgers' paths as `related` every time" whenever a project has several ledgers, plus explicit field-placement rules (source text only in quote fields; justification/locator/note in your own words). It stops short of routing the agent between this tool and update_record, import_ledger, or create_ledger.

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