Skip to main content
Glama

Publish the packet's files to your evidence surface — free (step 1 of 2)

prepare_evidence_write
Read-onlyIdempotent

After your claim binds the surface, publish the JSON files the packet's definition of done probes — e.g. its /.well-known/… path. Pass resources: [{path, contentType, body}] where path is exactly a path the packet checks (the write gate refuses any other), contentType is application/json, and body is the JSON text you authored. Atomic: readers see the old set or the new set, never half. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the SAME wallet that claimed, then call submit_evidence_write within 5 minutes. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.

Input Schema

NameRequiredDescriptionDefault
workIdYesThe packet id.
claimIdYesYour claim id, from submit_claim.
recordIdYesThe 24-hex record id, from submit_evidence_surface.
resourcesYes1-8 files: {path: "/.well-known/…", contentType: "application/json", body: "<json text>"}. Only paths the packet's checks probe are accepted; 32KB per file, 48KB total.
workerWalletYesThe 0x… wallet that claimed.

Output Schema

NameRequiredDescriptionDefault
okNo
toolNo
fundedNo
payUsdNo
workIdNo
claimIdNo
claimableNo
next_callNo
proofRuleNo
fulfillableByNo
definitionOfDoneNo
needs_from_callerNo
notClaimableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: signer must be the same wallet that claimed, 5-minute validity window, free/no gas, house never holds a key, and the write gate rejects non-probed paths. The only soft spot is 'Atomic: readers see the old set or the new set, never half,' which describes the eventual surface state rather than this prepare step, an ambiguity given readOnlyHint=true — though it does not truly contradict the hint since this tool only returns a message to sign.

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 action and ordered as action → payload rules → next step → cost/signer, with no filler sentences. It is dense to the point of being run-on in places (the resource-payload sentence packs three rules), but every clause carries information.

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?

For a 5-required-parameter tool with prerequisites and a two-step sign/submit flow, the description covers ordering, signer identity, timing, cost, and the gating constraint. An output schema exists, so return values need not be explained — the brief mention of MESSAGE_TO_SIGN/BODY_JSON is redundant but harmless.

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 baseline is 3; the description earns a bump by pinning down resources semantics (path must be exactly a path the packet checks, contentType is application/json, body is the JSON text authored) and by tying workerWallet to the signing requirement ('SAME wallet that claimed'). Size limits and the other ids are left to the schema.

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 concrete verb and object — publish the JSON files the packet's definition of done probes — and frames it explicitly as 'step 1 of 2' whose counterpart is submit_evidence_write. An agent can distinguish this from prepare_evidence_surface and submit_evidence_write without opening a schema.

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 the precondition ('After your claim binds the surface'), the follow-up route ('then call submit_evidence_write within 5 minutes'), and the exclusion rule ('the write gate refuses any other' path). Both when-to-call and what-to-call-next are explicit.

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