Skip to main content
Glama
drawcommons-ledger

drawcommons-ledger

ledger_export

Read-onlyIdempotent

Fetches the canonical export bytes and computes their sha256 locally, so you can pin a ledger version or compare two moments against the anchor shown on the /ledger page and /llms.txt.

Instructions

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.

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

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ledger_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_rawNotrue also returns the export text, capped at 200000 bytes (see truncated).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the access profile (read-only, credential-free, one public HTTPS endpoint, nothing written) and, most importantly, the truncation rule: raw export above 200,000 bytes is cut and truncated is set, because a silently cut JSON would look complete yet be unusable for hashing. That is real behavioral context an agent needs; only rate-limit or error-mode behavior is left unstated.

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?

Front-loaded with the core action and the anchor definition, then usage, then return shape, then safety profile — a sound ordering with no filler paragraphs. Slight redundancy appears in the "match, character for character" phrasing and in the explanation of why truncation matters, though that rationale is defensible.

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?

No output schema exists, and the description fills that gap by naming the structuredContent fields (sha256, bytes, items, data_notice, truncated, raw) and the conditional raw text. Combined with the access and truncation disclosures, an agent has everything needed to call it and interpret the result correctly.

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 meaning the schema does not: include_raw=true returns the export text, and the 200,000-byte cap with the truncated flag is spelled out along with the reason the flag matters. That is genuine semantic value beyond the boolean's own description.

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?

States a specific verb and resource (fetch canonical export bytes, compute sha256 locally) and immediately defines the output's meaning as the ledger anchor. It also explicitly differentiates from both siblings: ledger_items for contents and ledger_verify for the chain, so an agent can route without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use cases (pin a version by recording the anchor before and after; compare two moments) and names the alternatives for the cases this tool does not cover (contents, chain verification). Both the positive and the exclusionary guidance are explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools