Skip to main content
Glama

LLPRO Trust

A witness that is not a party to a live deal: each party sends the hash of every event as it happens and gets a signed receipt with the time and its place in the chain

witness_record
Idempotent

Witness a deal event. Send deal_id, party_id, event_type, content_hash (SHA-256 hex of the content, never the content), your Ed25519 public_key and your sig (base64 signature over the canonical JSON of {content_hash, deal_id, event_type, party_id, type:'witness-event', v:1}). Get back a receipt signed by Witness: the time we saw it, its place (seq) in the deal's chain, and the chain hash over the previous receipt. It shows only that this hash was sent by this key and seen at this time, in this order. It does not show the content is true, who the party is, or that nothing else was sent. Stores hashes, types, public keys, signatures and times for 400 days after the deal's last event; never content or addresses. Free.

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": {
      "deal_id": "<deal_id>",
      "party_id": "<party_id>",
      "event_type": "<event_type>",
      "content_hash": "<content_hash>",
      "public_key": "<public_key>",
      "sig": "<sig>"
    },
    "name": "witness_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
sigYesbase64 Ed25519 signature over the canonical JSON of the event (see description).
deal_idYesOpaque id both parties use for the deal. Use a random one (16+ characters); anyone who knows it can add events to the chain.
party_idYesOpaque id of the sender. Its key is fixed by its first event in the deal.
event_typeYesLowercase label such as offer, accept, payment, delivery, confirm.
public_keyYesEd25519 public key, 32 bytes, base64.
content_hashYesSHA-256 of the event content, lowercase hex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (write-ish, idempotent, non-destructive, closed-world), the description discloses retention (400 days after the deal's last event), exactly what is persisted (hashes, types, public keys, signatures, times — never content or addresses), cost, and a precise negative-scope statement of what the receipt does not prove. That is unusually complete behavioral context for a mutation endpoint with no output 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?

It is one dense block, but front-loaded with the action, then the payload, then the return value, then the scope limits — each sentence carries information an agent needs. Minor cost: the long signing-payload sentence is hard to parse on first read and trails an incomplete trailing clause ('Free.').

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?

There is no output schema, and the description compensates by describing the receipt's contents (time seen, seq in the deal's chain, chain hash over the previous receipt). Combined with the storage/retention statement and the signature format, an agent has everything needed to call this correctly and interpret the result.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema by giving the exact canonical JSON payload that the signature must cover ({content_hash, deal_id, event_type, party_id, type:'witness-event', v:1}) and by stressing that content_hash is over content that is never transmitted. That is the single most failure-prone part of the call and it is disambiguated.

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 opens with a specific verb+resource ('Witness a deal event') and then spells out exactly what is submitted (hash, key, signature) and what comes back (a Witness-signed receipt with time, seq and prior chain hash). That makes it distinguishable from adjacent tools such as change_witness or receipt_verify without opening their schemas.

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?

It establishes the operating context clearly: this is for a live deal where the caller is not a party, and each event is hashed as it happens. It does not name alternatives (e.g. receipt_verify for checking receipts, change_witness for chain changes) or state a when-not case, so it stops short of full routing guidance.

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