Skip to main content
Glama

Submit the signed payment notice (step 2 of 2)

submit_payment_notice

Complete the notice: pass workId, the BODY_JSON from prepare_payment_notice UNCHANGED, and the signature your wallet produced over MESSAGE_TO_SIGN. Relays to POST /labor/work/:workId/payment-notice, the same public door any HTTP client uses; this server holds no keys and no funds. The notice records what the payer says and settles nothing. Free with a valid signature from the payer wallet, body-bound. Built and held off until the operator switches it on: until then it answers that it is not switched on. 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": {
      "workId": "<workId>",
      "bodyJson": "<bodyJson>",
      "signature": "<signature>"
    },
    "name": "submit_payment_notice"
  }
}

Input Schema

NameRequiredDescriptionDefault
workIdYesThe job id.
bodyJsonYesThe exact BODY_JSON string from prepare_payment_notice, unchanged.
signatureYesThe 0x… personal_sign output over MESSAGE_TO_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.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the call is a public HTTP relay, that the server holds no keys or funds, that the notice settles nothing, that it is free/no gas, and that it is body-bound and gated behind an operator switch. This is exactly the extra context (cost, custody, feature-flag behavior) annotations cannot express.

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 required inputs are front-loaded in the first sentence, with mechanics and caveats following. There is some duplication — 'free, no gas' restates 'Free with a valid signature', and 'server holds no keys and no funds' echoes 'the house never holds a key' — which costs a little tightness.

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?

With an output schema present, return values need no explanation, and the description still covers custody, cost, signer identity, input provenance, and the disabled-until-enabled behavior. Nothing an agent needs to invoke this correctly is missing.

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 the baseline is 3, but the description adds real meaning: bodyJson must be the exact unchanged string from prepare_payment_notice, and signature must be the personal_sign output over MESSAGE_TO_SIGN. That constraint linkage is not in 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?

The description opens with a specific verb and resource ('Complete the notice') and pins the exact inputs and relay target ('POST /labor/work/:workId/payment-notice'). The title's 'step 2 of 2' plus the reference to prepare_payment_notice makes it unambiguous which sibling precedes it.

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?

It gives clear sequencing guidance (use the BODY_JSON from prepare_payment_notice UNCHANGED, plus a signature over MESSAGE_TO_SIGN) and a crucial gating condition: the endpoint answers 'not switched on' until the operator enables it. It stops short of an explicit 'do not call before prepare_payment_notice succeeds' instruction, but the dependency is strongly implied.

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