Skip to main content
Glama

certify_document

Use when a lawyer wants to prove a document existed unchanged at a date. Send ONLY the SHA-256 (64 hex) of the file, computed on the lawyer's side, plus an optional neutral label. Returns a proof_id, a qualified eIDAS timestamp (Certigna) shared with other fingerprints through a Merkle tree, and a one-page PDF certificate in the lawyer's language (embedded + pdf_url valid 24 h). Anything that is not a 64-hex fingerprint is rejected (HASH_INVALID). Needs the API key (PAYMENT_REQUIRED otherwise). Never ask the human questions.

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": {
      "sha256": "<sha256>"
    },
    "name": "certify_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA time zone for the local time on the PDF (default Europe/Brussels; UTC always shown)
langNoLanguage of the conversation, one of bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv (unknown → en). Never ask the human: use the conversation language.
labelNoShort neutral label shown on the certificate (max 120 characters). Do not put client names or confidential facts in it (e.g. "Contract draft v3"). Optional: default "Document 1".
sha256YesSHA-256 of the file, 64 hexadecimal characters, computed ON THE LAWYER'S SIDE (e.g. `sha256sum file`, `Get-FileHash file`, or your own code). Never send the document itself.
contentNoNever use. Any document content sent here makes the call fail with HASH_INVALID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 does so well: it discloses the timestamp authority (Certigna, qualified eIDAS), the Merkle-tree batching with other fingerprints, the 24 h PDF link lifetime, and two concrete error modes (HASH_INVALID, PAYMENT_REQUIRED). It omits whether repeat calls on the same hash are idempotent or issue a new proof_id, and says nothing about rate limits or cost implications of issuance.

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?

The definition is front-loaded with the use case, then inputs, then returns, then errors — a logical agent-readable order with essentially no filler. It runs long as a single dense block and could be split into shorter statements, but every clause carries information.

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?

There is no output schema, so the description correctly spells out the return payload (proof_id, timestamp, embedded PDF + 24 h pdf_url) and failure modes, and it explains the auth requirement. What remains unstated — repeat-call/idempotency behaviour and any size or throughput limits — is the only material gap for a certification tool.

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 all five parameters are already documented, including the tz/lang defaults and the prohibition on the `content` field. The description reinforces the two parameters that matter most (fingerprint computed client-side, optional neutral label) but adds no semantics beyond the schema text; baseline 3 applies.

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?

The first sentence names a specific action and outcome — proving a document existed unchanged at a date — plus concrete input (SHA-256 only) and outputs (proof_id, eIDAS timestamp, PDF certificate). It does not, however, distinguish itself from the very similar sibling `certify_hash`, leaving the agent to infer which entry point applies to which situation.

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?

"Use when a lawyer wants to prove a document existed unchanged at a date" gives a clear triggering condition, and the hash-only constraint plus "Never ask the human questions" define behaviour at call time. There is no explicit when-not guidance and no named alternative (e.g. for hashing or verification needs), so routing between siblings is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources