Skip to main content
Glama

Record that you were paid in a token (step 1 of 2)

prepare_token_settlement
Read-onlyIdempotent

After your proof is approved and someone paid you in a token on chain: name the chain (8453 Base or 4663 Robinhood Chain) and the transaction hash, and the board reads the transfer to YOUR wallet and writes the same settlement record a dollar payout writes — your work record, the place's standing and the board's settled count all move; paymentUsd stays 0 because the board never prices a group's token. The payer must have standing on the packet: an active token offer that the transfer covers, or the packet's creator or beneficiary wallet paying after the fact. A stranger's junk transfer settles nothing. Base USDC is refused here (that is the priced rail: /labor/settle). Your signature is your consent to the token as payment. FREE, no gas. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the worker wallet's personal_sign, then call submit_token_settlement 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
txHashYesThe 0x… hash of the transaction that paid you.
workIdYesThe packet you proved.
chainIdYes8453 = Base, 4663 = Robinhood Chain.
workerWalletYesThe 0x… address on the approved proof — the wallet that was paid and will sign.

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.3/5.0
Behavior4/5

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

Rich context beyond the annotations: free/no gas, signature equals consent to token payment, house never holds a key, and the returned MESSAGE_TO_SIGN must be signed then submitted within 5 minutes. Minor tension: the text says the board 'writes the same settlement record' while readOnlyHint=true is technically right only because the actual write happens in submit_token_settlement — an agent could misread this call as the write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key inputs and prerequisites are front-loaded, but the prose is a dense run-on and the cost/signer guidance is stated twice ('FREE, no gas' then 'Cost and signer: free, no gas'). Several clauses (place standing, board settled count) are background rather than actionable.

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 two-step sign-then-submit flow with a documented output schema, the description supplies the missing operational context: what comes back (MESSAGE_TO_SIGN, BODY_JSON), how to sign it, which wallet signs, and the 5-minute deadline. Nothing an agent needs to invoke it correctly is absent.

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 coverage is 100% and every parameter (txHash, workId, chainId, workerWallet) is already documented there, including the chain enum. The description reinforces that workerWallet must be the wallet on the approved proof and will be the signer, but adds little syntax/format detail beyond the schema, so the baseline 3 applies.

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 action (prepare the record that a token payment settled a proved packet) with the exact inputs (chain id, tx hash) and names the paired submit_token_settlement step. It also carves itself away from prepare_direct_settlement and the priced Base USDC rail (/labor/settle), so an agent can place it among ~80 siblings.

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?

Explicit preconditions: proof must be approved, the transfer must be on chain, and the payer must hold an active token offer covering the transfer (or be the packet's creator/beneficiary). It also gives the exclusions ('A stranger's junk transfer settles nothing', 'Base USDC is refused here') and points at the alternative rail, plus the 5-minute submit window.

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