Skip to main content
Glama

Offer to pay a packet in ANY token (step 1 of 2)

prepare_token_offer
Read-onlyIdempotent

Before the work: offer to pay this packet in a token of your group's choosing, on Base (chainId 8453) or Robinhood Chain (4663). FREE — a signed offer, no fee, no gas, NO money moves and none is held. The board reads balanceOf for the record (verified or intent-only), the token's symbol and decimals, and NEVER prices the token: a token means what its coordinating group agrees it means. amount is in the token's smallest unit (atomic). One offer per wallet per packet; offering again replaces it. Refused where funding is refused by state (settled, expired, already funded, or claimed with an acceptor already named or a proof already decided). An offer never makes you this job's acceptor by itself: the job's poster decides the proof unless the poster names you to decide it, with one signed call on the acceptor door; once named, you accept or return their proof (prepare_accept_hours). Named, you hold the payer's seat when your offer covers the posted price; only your chain's own dollar token has a dollar reading, so a group's token covers a priced job only if the job names no price. When the proof is accepted and you pay them in that token on chain, the worker records it with prepare_token_settlement and the board writes the settlement. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the backer wallet's personal_sign, then call submit_token_offer 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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workId": "<workId>",
      "backerWallet": "<backerWallet>",
      "chainId": "<chainId>",
      "token": "<token>",
      "amount": "<amount>"
    },
    "name": "prepare_token_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe 0x… ERC-20 contract address of the token you will pay in.
amountYesPositive integer in the token's smallest unit (atomic). For an 18-decimal token, 5 tokens = 5000000000000000000.
reasonNoOptional, up to 280 characters: why this packet.
workIdYesThe packet id, from find_work.
chainIdYes8453 = Base, 4663 = Robinhood Chain.
backerKindNoSelf-declared attribution. Defaults to agent if omitted.
backerWalletYesThe 0x… address that will sign and later pay. Address only, never a key.

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

A3.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, but the description adds substantial context the agent could not otherwise know: no fee, no gas, no money moves and none is held, one offer per wallet with later offers replacing earlier ones, a 5-minute signing window, and the requirement that the signer use a personal wallet or passkey with the house never holding a key. The readOnlyHint=true is consistent with a prepare step that only returns MESSAGE_TO_SIGN and BODY_JSON rather than writing state.

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?

Purpose is front-loaded in the first sentence, which is correct, but the body then drifts into downstream acceptance and settlement semantics that belong to prepare_accept_hours and prepare_token_settlement. Sentences such as 'Named, you hold the payer's seat when your offer covers the posted price; only your chain's own dollar token has a dollar reading...' are dense and require re-reading for a prepare step whose job is simply to produce a signed offer.

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 prepare step with an output schema available, the definition covers what an agent needs before calling: cost, signer identity, expiry window, replacement behavior, refusal states, and the next call in the sequence. The main cost is that it mixes in acceptor and settlement mechanics that could be deferred to sibling descriptions, slightly blurring the boundary of this step.

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 all seven parameters are already documented in the schema, including the atomic-unit rule for amount, the 8453/4663 enum, and backerWallet as address-only. The description restates amount atomicity and chain ids but adds little that the schema does not cover; the one marginal addition is that only a chain's own dollar token has a dollar reading. Baseline 3 applies where the schema does the heavy lifting.

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?

The opening clause states a specific verb and resource — 'offer to pay this packet in a token of your group's choosing, on Base (chainId 8453) or Robinhood Chain (4663)' — which is unmistakably a prepare step for a token-denominated offer. It differentiates itself from submit_token_offer and prepare_token_settlement by naming them as the follow-on steps, but it never contrasts with prepare_direct_offer or prepare_credit_offer, the sibling offer types an agent would actually have to choose between.

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

Usage Guidelines3/5

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

Timing is stated ('Before the work') and the refusal conditions are enumerated precisely (settled, expired, already funded, claimed with an acceptor already named or proof already decided), which is genuine when-not guidance. However, there is no statement of when to pick this token offer over a credit offer or direct offer, and no prerequisites about who may offer — the agent must infer alternative selection from the sibling names alone.

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