Skip to main content
Glama

Agent Job Ledger

ledger_append

Agent Job Ledger: append one entry (type tool_call|spend|receipt|handoff|failure|output|status|note|decision, any fields, amount_usd optional). Each entry is chained to the previous by sha256; secrets are refused. Header X-Ledger-Key. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/ledger/append, $0.002 via x402.)

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": {
      "ledger_id": "<ledger_id>",
      "entry": "<entry>"
    },
    "name": "ledger_append"
  }
}

Input Schema

NameRequiredDescriptionDefault
entryYesentry
ledger_idYesledger id
x_ledger_keyNothe key returned by create (sent as a header on HTTP)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / entry / description
      Added value: +"entry"
    • addedInput schema / properties / ledger_id / description
      Added value: +"ledger id"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already disclose mutation, non-idempotency, open-world access, and non-destructive behavior. The description adds important context beyond that: each entry is sha256-chained to the previous one, secrets are refused, an X-Ledger-Key header is required, and the production endpoint has a per-call price. It does not explain what happens on rejected secrets or whether repeated calls duplicate entries, but it substantially enriches the behavioral picture.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the description is compact, but it mixes invocation-relevant facts with a vendor tag ('By OMENZ.') and a parenthetical about playzone versus production pricing. Those details are useful context but make the sentence dense and partly noisy for tool selection.

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 three-parameter, nested-object append tool with no output schema, the description covers the key operational constraints: entry types, hash chaining, secret refusal, required header, and endpoint. It is somewhat incomplete about return values and duplicate-entry behavior, but it is sufficient for correct invocation.

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 schema only describes 'entry' as a bare object. The description adds meaningful semantics by listing valid entry types, saying arbitrary fields are allowed, and marking amount_usd as optional. It still leaves ledger_id and x_ledger_key meaning to the schema.

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 states a specific verb and resource ('append one entry' to the Agent Job Ledger) and enumerates entry types (tool_call, spend, receipt, handoff, failure, output, status, note, decision). This makes clear it is a write/append operation rather than a ledger creation or read, distinguishing it from ledger_create and ledger_get without naming them.

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?

The entry-type list implies when the tool is used (logging tool calls, spend, receipts, handoffs, failures), but there is no explicit guidance on when to choose ledger_append versus ledger_get or ledger_create, and no statement that a ledger must already exist or that x_ledger_key comes from creation. Usage context is implied rather than instructed.

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