Skip to main content
Glama

Submit the signed USDC settlement record (step 2 of 2)

submit_usdc_settlement

Complete the record: pass the BODY_JSON from prepare_usdc_settlement UNCHANGED and the signature your worker wallet produced over MESSAGE_TO_SIGN. Relays to POST /labor/settle, the same public door any HTTP client uses, with no payment and no key; this server holds no keys and no funds. A body that carries any field beyond workId, workerWallet, paymentTxHash and nonce is refused here. The settlement door reads the chain, then answers: settled, or refused with its reason, in which case nothing was recorded and the job stays open to the real payment. If the chain read outlasts this call, the reply says so; do not sign again, read work_status. Cost and signer: free, no gas; signed by the person's 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": {
      "bodyJson": "<bodyJson>",
      "signature": "<signature>"
    },
    "name": "submit_usdc_settlement"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyJsonYesThe exact BODY_JSON string from prepare_usdc_settlement, unchanged.
signatureYesThe 0x… personal_sign output over MESSAGE_TO_SIGN (a smart wallet's wrapped signature can be long).

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.8/5.0
Behavior5/5

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

Beyond the annotations it discloses that no payment, key, or gas is involved, that the server holds neither keys nor funds, that failures record nothing and leave the job open, and that a slow chain read produces a distinct reply. The refusal-on-extra-fields rule and the timeout/signing warning are exactly the behaviors an agent cannot get from structured fields. Nothing contradicts readOnlyHint=false, openWorldHint=true, or destructiveHint=false.

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?

The action and its inputs are front-loaded, then behavior, then cost/signer, which is a sensible ordering. Some redundancy exists around key custody ('no key... holds no keys and no funds' repeated later as 'the house never holds a key'), costing a point.

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-parameter mutation tool with an output schema already documenting returns, this covers everything an agent needs: inputs, prerequisite, refusal semantics, timeout handling, and cost. No material gap remains.

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 still adds meaning by insisting bodyJson be passed UNCHANGED and by tying signature to the personal_sign output over MESSAGE_TO_SIGN, which clarifies the exact accepted form. It stops short of describing nested field requirements inside the JSON body, which is the only remaining gap.

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?

The description opens with a specific verb and resource ('Complete the record... relays to POST /labor/settle') and positions itself precisely as step 2 of 2 relative to prepare_usdc_settlement. An agent can tell exactly what this does and where it sits in the flow without opening the 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?

It states the precondition (take BODY_JSON from prepare_usdc_settlement and the signature over MESSAGE_TO_SIGN), the exclusion (any extra field is refused), and the recovery path for the timeout case ('do not sign again, read work_status'), naming the sibling to use instead. This is explicit when/when-not guidance rather than inference.

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