Sheaf
v0.2.2Verify tamper-evident receipts for AI agent tool calls; query Sheaf chains and Merkle proofs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sheaf_chain_head
Return the current head (latest sequence number + hash) of a Sheaf chain. WHEN TO USE: You have a chain_id (an agent-run identifier recorded on Sheaf) and want to check what the latest event is, how many events exist, or whether the chain exists at all. Common uses: verify that your own agent's events reached the recorder; synchronize local state after a crash; prove to an auditor that no events were recorded on a given chain. WHEN NOT TO USE: You want to verify a specific receipt — use sheaf_verify_bundle instead. You want to prove an event is anchored on-chain — use sheaf_get_proof_for…
| Parameter | Type | Description |
|---|---|---|
chain_id * | string | Stable identifier the recorder uses to group related events in order. Typically matches what the operator set in SHEAF_CHAIN_ID when running the recorder. Required. |
sheaf_get_proof_for
Return a Merkle inclusion proof for one specific event (chain_id + seq) along with its on-chain anchor reference. WHEN TO USE: You want to prove to a third party that a specific recorded event is included in the Sheaf chain and committed on Base mainnet. Common uses: attach compliance evidence to an agent output; selectively disclose one action from a longer chain; let an external auditor independently check the proof against the on-chain anchor. WHEN NOT TO USE: You want to verify a receipt the other party already sent you — use sheaf_verify_bundle. You want to query chain state generally…
| Parameter | Type | Description |
|---|---|---|
chain_id * | string | Chain identifier. Required. |
seq * | integer | Sequence number of the event within the chain (0-indexed). Required. |
sheaf_verify_bundle
Verify a Sheaf receipt bundle end-to-end: signature, Merkle inclusion, and on-chain anchor. Pure read; makes one RPC call to Base to confirm the anchor transaction, no payment required. WHEN TO USE: A counterparty, auditor, or upstream agent gave you a Sheaf bundle (a sheaf.dispute-bundle/1 or /2 .sheaf file, version sheaf-bundle/1 from the paid /bundle endpoint, or the legacy {envelope, inclusion_proof, anchor_tx_hash} shape) and you need to confirm it is authentic and intact BEFORE acting on its contents. Common uses: gate agent workflows on independently verified evidence; log a receipt in…
| Parameter | Type | Description |
|---|---|---|
bundle * | object | The Sheaf bundle to verify, as parsed JSON. Accepts a sheaf.dispute-bundle/1 or /2 (.sheaf file; verified against pinned keys only, returns valid, complete, authorisation and 14 checks), the sheaf-bun… |
anchorer_address | string | Optional. 0x-prefixed Ethereum address expected to have sent the anchor tx. Defaults to the canonical sheaf-recorder anchorer. Only override this if verifying against a non-default Sheaf deployment. |
sheaf_buy_bundle
Buy the self-contained paid Sheaf bundle for one event ($0.001 USDC on Base via x402). WHEN TO USE: You need the full signed envelope + Merkle proof + on-chain anchor in one artifact and have a funded Base wallet. The tool automatically parses a 402 response, signs the exact EIP-3009 payment authorization, and retries. PREREQUISITE: SHEAF_PAYER_PRIVATE_KEY (0x-prefixed) must be set on the MCP server. The wallet needs USDC on Base. No Sheaf account is required. EXAMPLE CALL: { "chain_id": "agent-run-2026-11-11-smoke", "seq": 7 }
| Parameter | Type | Description |
|---|---|---|
chain_id * | string | Chain identifier. Required. |
seq * | integer | Event sequence number. Required. |
sheaf_anchor_local
Pay $0.01 USDC on Base and anchor a signed local Merkle root via POST /v1/anchor/local. WHEN TO USE: A local `sheaf local sync` would return 402 and you want the agent to pay and anchor autonomously. Pass the exact signed anchor-request object produced by local sync. PREREQUISITE: SHEAF_PAYER_PRIVATE_KEY with USDC on Base. The request itself must be signed by the local recorder key.
| Parameter | Type | Description |
|---|---|---|
anchor_request * | object | The signed sheaf.local-anchor-request/1 payload. |