Skip to main content
Glama
This connector has been deprecated

This connector has been replaced by xrpl-referee.

Get Batch DvP Payload

get_batch_dvp_payload
Read-only

XLS-56 Atomic NFT DvP: Batch DvP is live on XRPL mainnet. Testnet is free for a rehearsal.

Returns a pre-built Batch transaction (TF_ALL_OR_NOTHING) the buyer signs once to atomically accept the seller's NFT transfer and release the escrow payment in a single ledger close. Both legs succeed or both revert — no settlement gap.

Two supported modes:

  • AI audit + atomic settlement: referee evaluates work first; PASS verdict gates entry to the Batch tx. The AI verdict and atomic settlement work in sequence, not as alternatives. Use when the deliverable needs independent verification.

  • Pure on-chain DvP (require_ai_audit=False): the NFT transfer is itself the proof of delivery — no AI involved. XLS-56 handles the entire settlement on-chain. Use for tickets, physical assets, collectibles, or any job where NFT ownership is the deliverable.

Prerequisites:

  • Vault must be in PASS_AWAITING_NFT state (AI PASSed, or ai_audit=False and proof gates satisfied)

  • Seller must have registered their NFTokenCreateOffer via POST /escrow/{id}/nft-offer

Buyer workflow:

  1. Call this tool to get batch_tx_json

  2. Autofill sequences/fees with your XRPL client

  3. Sign the Batch tx with your buyer wallet

  4. Submit to XRPL — NFT arrives and payment releases atomically

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": {
      "escrow_id": "<escrow_id>"
    },
    "name": "get_batch_dvp_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
escrow_idYesThe escrow vault ID for an NFT DvP job in PASS_AWAITING_NFT state.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only and open-world annotations, the description explains the atomic settlement behavior, the all-or-nothing Batch transaction, the required PASS_AWAITING_NFT vault state, the seller NFT offer prerequisite, and the exact buyer workflow from payload retrieval through signing and submission. This is substantial behavioral context for a payload-generation tool.

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 description is well structured with modes, prerequisites, and a numbered workflow, and the core purpose is front-loaded. It is somewhat verbose, including promotional or environment context such as mainnet availability and testnet rehearsal, which is useful but not strictly required for invocation.

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 complex atomic-settlement payload tool, the description covers purpose, supported modes, prerequisites, and the full buyer workflow. Since an output schema exists, it does not need to explain return fields, and the remaining operational details are sufficient for correct invocation.

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% and the single escrow_id parameter is already documented in the schema. The description adds meaningful context by stating that the escrow vault must be in PASS_AWAITING_NFT state and that the seller must have registered an NFTokenCreateOffer, which helps the agent avoid invalid calls.

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 states a specific verb and resource: it returns a pre-built Batch transaction (TF_ALL_OR_NOTHING) for atomic NFT DvP settlement. It clearly distinguishes the two supported modes and what the buyer does with the returned payload, so an agent can identify the tool's role 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 Guidelines4/5

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

It gives explicit mode-selection guidance: use the AI audit mode when independent verification is needed, and use pure on-chain DvP for tickets, physical assets, collectibles, or jobs where NFT ownership is the deliverable. It also lists prerequisites and a buyer workflow, but it does not explicitly state when not to use this tool or name sibling alternatives for vault status or escrow inspection.

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.