Skip to main content
Glama

Anchor a file hash

anchor_hash

Paid with x402 (USDC on Base). Writes the SHA-256 hash of a file on-chain; the block time becomes the proof of existence. Compute the hash locally and never send the file. The hash, the filename and the payer address become public and permanent. Without a payment in _meta["x402/payment"] the result is the payment requirement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashYesSHA-256 of the file, 64 hex characters
filenameNoOptional name to record with the hash: a-z 0-9 - _ .

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the x402/USDC-on-Base payment model, that the hash, filename and payer address become public and permanent, and what the call returns when no payment is supplied. That is exactly the disclosure an agent needs for a write tool whose annotations only declare it is non-readOnly and open-world.

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?

Four tight sentences with no filler. Payment terms are front-loaded rather than the core action, which is a minor ordering tradeoff, but every sentence carries information.

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 two-parameter tool with no output schema, the description covers the action, the payment gate and the unpaid-path response. Minor gap: it does not say what a successful paid call returns (e.g., transaction reference).

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 description coverage is 100%, so the hash format and filename charset are already documented. The description adds the consequence that the filename becomes public, which is useful, but no additional syntax or format guidance beyond 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?

States a specific verb (writes the SHA-256 hash) and resource (file hash on-chain) plus the mechanism (block time as proof of existence). It is clearly a distinct operation from the sibling find_proof, but it never names or contrasts that sibling explicitly.

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

Usage Guidelines4/5

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

"Compute the hash locally and never send the file" gives concrete operational guidance, and the payment prerequisite is stated. It does not, however, say when to prefer anchor_hash over find_proof or address re-anchoring/duplicate cases.

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.