Skip to main content
Glama
drawcommons-ledger

drawcommons-ledger

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

众汲之井账本(beta)。五个 tool,全部只 GET 一个地址:取条目、本机重算校验、取导出件与锚值(可带 expect 比对)、取需求单,以及把一条写入「该签哪几个字节」算准(entry_draft:只拼字节与给命令,不写、不发、不碰私钥)。账本当前 10 条。这批数据的性质,站点自己写的是:「测试期数据 10 条(定稿时点数):W4 结构验证样例 4 条(假 ID)、端到端联调演练 4 条(rq_reviewprivacy1、rq_linktest01,均非外部互助)、真实互助 2 条(rq_reviewprivacy2)。真实互助已全链实现:发布、认领、交付、确认四步由两个不同主体走通,该单已结。」——引用数字时请连同这句一起说。协议版本与公示状态不在这个包里写死:版本号会过期,而过期的版本号比没有更糟。要看当前协议版本与公示状态,以 https://drawcommons.org/terms 页为准。链校验只证明字节未变,不证明条目描述的事发生过。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ledger_itemsA

Lists entries in the DrawCommons public audit ledger (read-only). Each entry is a give / receive / payback record carrying prev_hash and hash.

Use when you need to know what the ledger contains: what was declared, by whom, with which hash. Use ledger_export instead when you need the anchor (the sha256 of the whole export), and ledger_verify when you need to know whether the chain is intact.

Returns structuredContent {total, filtered, offset, limit, returned, genesis, data_notice, items}. total is read live from the server on every call and is never hardcoded. data_notice states whether the ledger still holds test data — read it before citing any count or amount.

Read-only and credential-free: one public HTTPS endpoint, nothing written. A filtered or truncated slice is not a contiguous chain segment — prev_hash still points at the previous entry of the full chain — so do not verify the chain from such a slice.

ledger_verifyA

Recomputes the hash chain and the anchor on your machine from bytes fetched in this same call, then compares that against what the server says about itself. The server's own ok is shown but never trusted.

Use whenever an integrity claim is on the table — including one made by this project — and you would rather recompute than take it. Use ledger_items for contents only and ledger_export for the anchor only.

Returns verdict: agree (local recompute matches the server's claim), chain_broken (an entry does not match the recomputed chain, so the bytes you received differ from the bytes that were chained), or server_disagrees (the local chain is intact but the server's ok / count / chain_tail contradicts the entries it just served). structuredContent carries both sides plus the anchor.

Boundary: this verifies bytes, not facts. A complete chain also results from a false entry that was recorded honestly. Takes no parameters; fetches three read-only endpoints, writes nothing.

ledger_exportA

Fetches the canonical export bytes and computes their sha256 locally. That hash is the ledger anchor: it should match, character for character, the value printed on the project's /ledger page and the anchor in /llms.txt.

Use to pin a version (record the anchor before and after something you care about) or to compare two moments. Use ledger_items for contents and ledger_verify for the chain.

Returns structuredContent {sha256, bytes, items, data_notice, truncated, raw}. include_raw=true also returns the export text; above 200,000 bytes only the leading 200,000 are returned and truncated is set, because a silently cut JSON would look complete while being unusable for hashing.

expect=<64 hex> compares the anchor you recorded earlier against the one computed now and returns match: true/false, plus both values when they differ. It does not judge which one is right: an export legitimately changes when someone records an entry or the schema is upgraded. This server keeps no anchor history — the history is yours to keep.

Read-only and credential-free: one public HTTPS endpoint, nothing written.

requests_listA

Lists public requests (the discovery endpoint GET /api/v1/requests): what can be taken right now, or what changed after a cursor. Read-only, no signature, no session.

Use this to find work to claim or to poll for changes. Without since you get the most recent screen; with since you get rows appended after that cursor, oldest first. A request reappears once when its state changes — that is a notification, not a duplicate: fold by request_id, do not dedupe by "ids I have seen".

Returns structuredContent {contract, count, limit, state, since, has_more, next_cursor, items}. Pass next_cursor back verbatim as since. A bad cursor returns HTTP 400 bad_cursor instead of silently restarting from the beginning — a silent restart would look like an incremental feed while replaying everything.

No sorting, ranking or recommendation is added here: this tool forwards the endpoint's four documented rules unchanged, so there is only one set of semantics.

entry_draftA

Drafts the exact bytes you would have to sign for one write, and prints a self-contained shell block that signs and sends them. It writes NOTHING and POSTs NOTHING: signing is left to you or your own CLI, because this process runs on your machine and should never hold the ability to send on your behalf.

Use when you are about to publish/claim/deliver a request, register a party, record an entry, or confirm a give — that is, whenever the hard part is "which bytes, byte for byte". Returns body_text (send exactly these bytes, do not re-serialize), body_sha256, the payload to sign (7 lines for the envelope), issued, nonce, and commands {dry_run, send}.

confirm has two stages, because a confirmation carries two signatures. Call it with endpoint=confirm and body={entry_id} and no sig: you get the 3-line inner payload and the give's current chain hash, read from /api/ledger/items (never recomputed locally — recomputing would mean reimplementing build_chain, whose failure mode is "right most of the time"). Sign that, put the armor into body.sig, and call again to get the envelope. stage tells you which one you got.

It deliberately does NOT validate fields and does NOT check whether an id exists: a free validator that answers "would this be rejected" is an oracle the write side chooses not to be. Sign first, then use ?dry_run=1 (the dry_run block) — validation runs, the transaction rolls back, the nonce is not spent.

Not covered: reject and remind. Their payloads need the seq of the current delivered row, which the public view does not expose; sign those by hand per /agent.md 5.1.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.5/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct facet: ledger contents, anchor export, chain recomputation, write-byte drafting, and request discovery. The descriptions explicitly cross-reference and state boundaries, leaving little room for misselection.

Naming Consistency4/5

Most names follow a predictable domain_action ordering (ledger_verify, ledger_export, entry_draft, requests_list), with the ledger/entry/requests domains clearly signaled. ledger_items breaks the verb pattern and singular/plural conventions vary slightly.

Tool Count5/5

Five tightly scoped tools cover read, verify, export, draft, and discovery without redundancy. Each earns its place and the surface is neither thin nor heavy.

Completeness4/5

The read/verification surface is complete for ledger contents, anchor export, and chain integrity, with drafting support for writes. Deliberate gaps remain for reject/remind payloads and direct signed submission, but these are documented and workable through dry_run, shell commands, or manual signing.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues