Skip to main content
Glama

Add one entry to your merge ledger

ledger_write

Record that you handed a function to an agent and at which rung, a receipt you filed, a preference, or a pointer to a file you keep. Signed by your key; LLPRO signs the entry into a chain. Not encrypted: LLPRO can read what you file. A rung can be lowered later.

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": {
      "request": "<request>"
    },
    "name": "ledger_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesThe owner-signed request (under 4 KB): v=1, type=ledger-write, owner_id, owner_key, at, sig, plus the fields the tool needs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

The description adds real behavior beyond the annotations: the entry must be signed by the owner's key, LLPRO countersigns it into a chain, the content is explicitly NOT encrypted and readable by LLPRO, and rung values can be revised downward later. The unencrypted-content disclosure is exactly the kind of consequence an agent needs before writing. It does not mention whether retries produce duplicate entries, which matters given idempotentHint=false.

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?

Three tight sentences, front-loaded with what gets recorded, then the signing model, then the privacy caveat. Every sentence carries distinct information. Minor cost: several unexplained domain terms make the text denser than its length suggests.

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

Completeness3/5

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

For a single-parameter append operation with no output schema, the description covers what is written, who signs it, and the visibility tradeoff. It does not say what the caller gets back (entry id, chain position, or acknowledgement) or how failures are surfaced, which leaves a gap for a write 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 coverage is 100% and the single request object already documents v=1, type, owner_id, owner_key, at, and sig. The description reinforces the owner-signing requirement and the 4 KB limit is in the schema, but it adds no further field-level meaning. Baseline 3 applies when the schema does the heavy lifting.

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 description gives a concrete verb ('Record') and enumerates exactly what can be written: a function-handoff with its rung, a filed receipt, a preference, or a file pointer. That is specific enough to separate it from ledger_read, ledger_delete, and ledger_export. It loses a point because domain jargon ('merge ledger', 'rung') is asserted without definition, so an agent new to the domain may not be certain what is being recorded.

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?

Enumerating the four recordable entry kinds implicitly tells the agent when this tool applies, and the note that a rung can be lowered later hints that this is not a one-shot commitment. However, there is no explicit when-not guidance and none of the sibling tools (ledger_read, ledger_delete, ledger_export) are named as alternatives, so routing must be inferred from tool names alone.

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