Skip to main content
Glama

Submit the signed swap record (step 2 of 2)

submit_net_swap_record

Complete the record: pass the BODY_JSON from prepare_net_swap_record UNCHANGED and the signature your wallet produced over MESSAGE_TO_SIGN. Relays to the same public door any HTTP client uses (POST /labor/net/swap-records); this server holds no keys and no funds, and the door checks the signature itself. Free with a valid body-bound signature from the wallet that sent the swap. A record moves no token and holds none, and it reads unverified. 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_net_swap_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyJsonYesThe exact BODY_JSON string from prepare_net_swap_record, 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.3/5.0
Behavior5/5

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

Annotations cover the safety profile, and the description adds substantial context beyond them: the server holds no keys or funds, the record is relayed to the same public endpoint any HTTP client uses, the door verifies the signature itself, no gas is charged, and the record reads unverified. This is exactly the operational context an agent needs before invoking an open-world write.

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 actionable instruction before the trust/cost caveats, which is the right ordering. However, the cost-and-signer point is stated twice ('Free with a valid body-bound signature from the wallet that sent the swap' and 'Cost and signer: free, no gas; signed by the person's own wallet or passkey'), and the closing sentence is choppy.

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?

An output schema exists, so return values need no explanation, and annotations plus the description cover cost, signer, custody, and verification status. It stops short of addressing duplicate/non-idempotent resubmission or signature-rejection behavior, which matter given idempotentHint=false.

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 the schema already documents that bodyJson is the exact unchanged BODY_JSON and signature is the personal_sign output over MESSAGE_TO_SIGN. The description reinforces the same points without adding new syntax, format, or edge-case semantics, so the baseline of 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 (submit the signed swap record), identifies it as step 2 of 2, and explicitly names prepare_net_swap_record as the producing predecessor. An agent can distinguish this from status tools like net_swap_status or the many other submit_* record tools by the 'swap record' resource and the two-step framing.

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?

Gives clear sequencing guidance: this is step 2, it follows prepare_net_swap_record, and bodyJson must be passed unchanged from that call. It does not state exclusions (e.g. don't call before preparing, or what to do if the signature is rejected), so it falls short of full when/when-not coverage.

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