Skip to main content
Glama

settle

Execute cross-border or domestic settlements with AI-driven oracle checks. Returns settlement ID, status, and fees. Sandbox mode by default for testing.

Instructions

Execute a DPX settlement — cross-border or domestic (intra-country). The Settlement Agent checks oracle conditions and local rail health, reasons about whether conditions are right, and executes on-chain (or returns sandbox result if sandbox=true). Same-currency settlements (e.g. USD→USD) skip the FX fee automatically. Returns settlement ID, status (executed/held/sandbox/failed), tx hash, net amount, fees, oracle status, and AI reasoning. IMPORTANT: By default runs in sandbox mode (no real funds moved). Set sandbox=false only when ready for live execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount in source currency units
sourceCurrencyYesSource currency: USD, EUR, GBP, USDC, EURC
destinationCurrencyYesDestination currency: USD, EUR, GBP, USDC, EURC. Use same as sourceCurrency for domestic/intra-country settlements (no FX fee).
recipientAddressYesOn-chain recipient wallet address (0x...)
quoteIdNoPre-fetched quoteId from get_quote (optional — agent fetches if omitted)
purposeNoPayment purpose: intercompany, vendor-payment, payroll, treasury
referenceIdNoExternal reference ID (invoice number, TMS ID, etc.)
esgScoreNoESG score override 0–100 (testing only)
sandboxNoSandbox mode: real calculations, no on-chain execution. Default: true. Set false for live settlement.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryNo
httpStatusNo
resultNo
Behavior4/5

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

Discloses key behaviors: checks oracle conditions and rail health, reasons, executes on-chain or returns sandbox result, and skips FX fee for same-currency settlements. Lacks mention of failure modes or authorization needs, but adequately covers execution flow.

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?

Description is dense and well-structured, starting with the core action followed by sandbox note and return fields. No redundant sentences, but slightly longer than ideal.

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?

Given 9 parameters, 4 required, and no annotations, the description covers the essential behavior and return values. Missing details on error conditions or idempotency, but overall adequate for a complex tool.

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%; description adds value by explaining that same-currency skips FX fee and that sandbox defaults to true. Also clarifies quoteId can be omitted and auto-fetched. Provides context beyond 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?

Description explicitly states 'Execute a DPX settlement' with clear scope (cross-border or domestic), distinguishing it from sibling tools like get_quote or get_settlement_status. Verb and resource are specific and unambiguous.

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?

Provides clear guidance on default sandbox mode and when to set sandbox=false for live execution. Implicitly suggests prior use of get_quote via the quoteId parameter, but does not explicitly state when to use this tool vs alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/untitledfinancial/dpx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server