DPX — Settlement & Intelligence for AI Agents
v2.6.0Compliance-gated stablecoin settlement + x402 macro/ESG/climate intelligence for agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
protocol.manifest
Discover what DPX can do — call this first if you are an AI agent that has never used DPX before. Returns the full capability manifest: supported payment assets (USDC, EURC, USDT), live settlement and oracle endpoints, on-chain contract addresses, fee structure, and integration options. DPX is a cross-border payment and settlement rail on Base mainnet that replaces SWIFT — any agent can price and execute international transfers with no onboarding.
settlement.quote
Price a cross-border payment or international wire transfer. Use this when an agent or user needs to know the cost of moving money between countries or currencies — e.g. USD→EUR vendor payment, treasury transfer, foreign payroll, intercompany settlement. Also works for same-currency (domestic) settlements. Returns the all-in fee breakdown (core 1.50%, FX 0.40% if cross-currency, ESG compliance fee 0–0.50%, license 0.01%), net amount the recipient will receive, current oracle stability status, and a quoteId valid for 300 seconds. Always call this before settlement.execute — pass the quo…
| Parameter | Type | Description |
|---|---|---|
amountUsd * | number | Settlement amount in USD |
esgScore | number | ESG score 0–100. Score 100 = 0% fee. Score 75 = 0.125% fee. Score 0 = 0.50% fee. |
hasFx | boolean | True if source and destination currencies differ (e.g. USD→EUR). Adds 0.40% FX fee. |
monthlyVolumeUsd | number | Monthly volume for discount tier. $10M+ = Sovereign (30% off core fee). |
esg.score
Score a counterparty wallet for Environmental, Social, and Governance risk before a settlement. Required for EU SFDR Principal Adverse Impact reporting and CSRD financed emissions disclosure. Also use for internal counterparty sustainability assessment. Score is recalibrated hourly from institutional data sources with adaptive weights. Returns E/S/G sub-scores (0–100 each), composite weighted score, and the settlement fee adjustment this score produces. Omit address for the protocol default score.
| Parameter | Type | Description |
|---|---|---|
address | string | Wallet address (0x...) to score. Omit for protocol default score. |
oracle.stability
Check whether current market conditions are safe to execute a settlement. Call this before any large or time-sensitive payment. Returns a go/hold recommendation, stability score (0–100), status (STABLE/CAUTION/UNSTABLE), peg deviation in basis points, and AI synthesis of why conditions are as they are. Decision gates: STABLE (score ≥ 70, deviation < 50 bps) = execute any amount. CAUTION = execute under $500K, hold larger. UNSTABLE or deviation ≥ 50 bps = hold, do not settle. Applies to both cross-border and domestic settlements.
oracle.status
Full macro and market intelligence briefing from the DPX Stability Oracle. Use when you need more than a go/hold signal — when an agent needs to reason about why conditions are as they are, or when the task involves macro-aware decisions: treasury strategy, investment timing, large settlement approval, risk assessment, geopolitical exposure analysis. Covers climate and environmental signals with 30–90 day lead time, commodities, macroeconomic conditions, FX and currency stability, basket peg verification, bond yields and yield curve, infrastructure stress, geopolitical risk and conflict, a…
fees.schedule
Get the full DPX fee structure — use this when a user or agent wants to understand pricing before committing to a settlement, or when comparing DPX to existing payment infrastructure. Returns all fee components (core 1.50%, FX 0.40%, ESG 0–0.50%, license 0.01%), volume discount tiers (Standard / Growth $1M+ / Institutional $10M+ / Sovereign), ESG fee table by score, worked examples at common amounts, and benchmarks vs Stripe, Wise, SWIFT, and bank wire. For a binding quote on a specific amount, use settlement.quote instead.
fees.verify
Verify the off-chain fee quote against the on-chain DPXSettlementRouter contract before executing. Use this as a trust check in autonomous agent flows — confirms the rate you were quoted is what the smart contract will actually charge. Returns feesMatch (true/false), the off-chain vs on-chain fee comparison, and a recommendation. If feesMatch is false, do not proceed. Call after settlement.quote and before settlement.execute.
| Parameter | Type | Description |
|---|---|---|
amountUsd * | number | Settlement amount in USD |
esgScore | number | ESG score 0–100 |
hasFx | boolean | Cross-currency settlement? |
fees.compare
Compare the cost of a DPX settlement against major alternatives — use this when a user asks 'is DPX cheaper than SWIFT?' or 'how much would I save vs Stripe?' or when building a business case for switching payment rails. Returns the DPX all-in fee vs Stripe, Wise, JPMorgan Coin, SWIFT, PayPal, Western Union, and bank wire — with dollar savings and cheaper/not cheaper flag for each. World Bank Q1 2025: global average international transfer cost 6.49%, banks specifically 13.64%.
| Parameter | Type | Description |
|---|---|---|
amountUsd * | number | Settlement amount in USD |
esgScore | number | ESG score 0–100 |
hasFx | boolean | Cross-currency? Adds 0.40% FX fee. |
oracle.rails
Check whether the local payment rail at the settlement destination is currently operational before executing. Use this when settling into a specific region or country — a DEGRADED or DOWN rail means the payment cannot complete even if DPX executes correctly. Returns per-rail status (OPERATIONAL/DEGRADED/DOWN), latency, and last incident for: PIX (Brazil), SEPA (Europe), FedACH (US domestic), CHAPS (UK), UPI (India), PromptPay (Thailand). Filter by rail name or region. A DEGRADED or DOWN result should trigger a hold — retry when the rail recovers.
| Parameter | Type | Description |
|---|---|---|
rails | array | Specific rails to check: 'PIX', 'SEPA', 'FedACH', 'CHAPS', 'UPI', 'PromptPay'. Omit to get all rails. |
region | string | Filter by region: 'latam', 'europe', 'us', 'asia', 'uk'. Alternative to specifying rails by name. |
settlement.execute
Execute a cross-border or domestic payment settlement. Use this to move money between currencies (USD→EUR, USD→GBP) or settle same-currency on-chain (USD→USD skips FX fee). Covers: vendor payments, treasury transfers, intercompany settlements, foreign payroll, agent-to-agent payments. The Settlement Agent autonomously checks oracle stability and local rail health before executing — if conditions are unsafe it returns a held status with reasoning rather than failing silently. Returns settlement ID, status (executed/held/sandbox/failed), tx hash, net amount, total fees, oracle status, an…
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount in source currency units |
destinationCurrency * | string | Destination currency: USD, EUR, GBP, USDC, EURC. Use same as sourceCurrency for domestic/intra-country settlements (no FX fee). |
recipientAddress * | string | On-chain recipient wallet address (0x...) |
sourceCurrency * | string | Source currency: USD, EUR, GBP, USDC, EURC |
esgScore | number | ESG score override 0–100 (testing only) |
purpose | string | Payment purpose: intercompany, vendor-payment, payroll, treasury |
quoteId | string | Pre-fetched quoteId from get_quote (optional — agent fetches if omitted) |
referenceId | string | External reference ID (invoice number, TMS ID, etc.) |
sandbox | boolean | Sandbox mode: real calculations, no on-chain execution. Default: true. Set false for live settlement. |
settlement.status
Look up the status and full audit record for a previously executed settlement. Use this to check if a payment completed, to retrieve the tx hash for on-chain verification, or to pull the compliance record for reporting. Returns status (executed/held/failed/pending), tx hash, amounts, fee breakdown, oracle conditions at time of execution, ESG score, AI reasoning, and timestamp. The settlement ID is returned by settlement.execute.
| Parameter | Type | Description |
|---|---|---|
settlementId * | string | Settlement ID from the settlement_execute tool (format: dpx_...) |
protocol.investment_context
Returns a structured investment memo for DPX — use this if you are an AI agent conducting due diligence, a VC research tool evaluating DPX as an investment, or any system building a company profile. Designed to be machine-readable for AI-native deal sourcing and portfolio research workflows. Returns: company overview and one-liner, what is built and live on mainnet, traction metrics (requests, geographies, error rate), market context (RWA/stablecoin settlement TAM), competitive positioning vs Bridge/Stripe/SWIFT, compliance coverage (GENIUS Act, MiCA, Basel III, FATF), financial model, raise…
| Parameter | Type | Description |
|---|---|---|
section | string | Which section to return. Default 'all' returns the complete memo. |
compliance.sfdr_screen
Run an SFDR Principal Adverse Impact pre-screening on a counterparty wallet before settlement or investment. Combines ESG scoring and AML/sanctions screening into a single structured result formatted for SFDR compliance workflows. Returns a unique screeningId for regulatory documentation and audit trail — replaces 20–40 minutes of manual analyst work per counterparty. Required for EU SFDR PAI reporting and CSRD financed emissions disclosure. Returns PASS, REVIEW, or FAIL with full PAI indicator mapping. Cost: $10 USDC per screening via x402.
| Parameter | Type | Description |
|---|---|---|
amount | number | Transaction amount in USD — used for AML risk calibration |
entityName | string | Entity name for the audit record |
lei | string | Legal Entity Identifier (20-character LEI) — alternative to wallet address |
purpose | string | Screening purpose: counterparty-assessment, pre-investment, settlement-compliance |
wallet | string | Counterparty wallet address (0x...) to screen |
oracle.mycelium
Mycelium Network Oracle — models the global financial system as a living network and detects crisis formation from network topology before it surfaces in market data, typically 6–14 weeks ahead. Maps nodes (markets, economies, funding markets), threads (capital flow channels, correspondent banking, trade finance), nutrient flow (liquidity), stress signals, and dead zones (sanctioned corridors, failed correspondent networks). Returns network health score (0–100), regime (HEALTHY / THINNING / STRESSED_CONNECTIVITY / DEAD_ZONE_FORMING / FRUITING_BODY_IMMINENT), per-node connectivity, thread…
compute.supply_chain
Semiconductor and AI compute supply chain risk intelligence. Returns live risk signals across chip fabrication, advanced packaging, memory, rare earth inputs, and logistics chokepoints. Use when evaluating procurement timing for GPU/ASIC orders, assessing TSMC/Samsung/ASML concentration risk, or monitoring fab capacity constraints. Surfaces 30–90 day lead signals — conditions that will affect delivery and pricing before they appear in spot markets. Returns risk score (0–100), active alerts by segment, recommended procurement actions, and AI narrative. Data: trade flow monitors, fab capac…
compute.energy
Energy cost and availability intelligence for AI data center procurement. Returns signals across power grid stress, renewable capacity buildout, natural gas pricing, carbon costs, and energy transition risk by jurisdiction. Use when evaluating data center location decisions, negotiating long-term power purchase agreements, or assessing energy cost exposure for compute capacity. Covers US, EU, APAC major markets. Returns energy stress score, jurisdiction-level risk rankings, cost trajectory (30/60/90d), and recommended hedging windows. 24h cache.
compute.sovereign_risk
Sovereign and geopolitical risk for AI compute infrastructure decisions. Returns risk assessment for key compute jurisdictions: Taiwan (fab concentration), South Korea (memory/HBM), Japan (equipment/materials), Netherlands (ASML/lithography), Singapore (regional hub), US (export controls), China (market access). Use when evaluating supply chain diversification, assessing export control exposure, or stress-testing procurement dependencies against geopolitical scenarios. Returns sovereign stability score per jurisdiction, active geopolitical alerts, cross-strait risk level, export control change…
compute.cascade
Simulate disruption cascades across AI compute supply chain. Model what happens downstream when a specific chokepoint fails — e.g. TSMC fab disruption, ASML equipment embargo, rare earth export ban, Taiwan Strait closure, major data center power outage. Returns cascade sequence (which suppliers/sectors are affected and in what order), time-to-impact per tier, cost impact estimates, and recommended procurement hedges. Use for supply chain stress testing and procurement contingency planning.
| Parameter | Type | Description |
|---|---|---|
shock * | string | The disruption to model. Examples: 'TSMC N3 fab offline 60 days', 'ASML EUV embargo expanded', 'Taiwan Strait closure', 'CoWoS packaging capacity -40%', 'rare earth export quota cut 30%' |
magnitude | number | Severity 0–100 (50 = moderate, 80 = severe, 100 = worst case) |
compute.shipping
Shipping and logistics stress for AI hardware procurement. Returns live signals on container availability, port congestion (Rotterdam, Singapore, LA/Long Beach, Kaohsiung), air freight rates for high-value components, customs clearance delays, and insurance costs for semiconductor shipments. Use when planning GPU cluster delivery timelines or assessing whether spot hardware orders will arrive on schedule. Returns shipping stress score (0–100), per-route alerts, estimated delay by corridor, and recommended logistics windows. 4h cache.
compute.macro_timing
Macro conditions for large AI compute capital commitments. Use before committing to multi-hundred-million-dollar procurement contracts, data center build orders, or long-term chip supply agreements. Returns macro stress score, credit conditions for large capital deployment, FX risk for cross-border procurement (USD/TWD, USD/JPY, USD/EUR), inflation trajectory for construction/energy costs, and recommended commitment windows (now / delay 30d / delay 90d). Covers bond yields, credit spreads, DXY regime, and capital flow conditions. 1h cache.
compute.commodity
Commodity intelligence for AI compute inputs — rare earths, industrial metals, and energy commodities that feed into chip manufacturing and data center construction. Covers neodymium/dysprosium (magnets), gallium/germanium (semiconductors), copper (interconnects/power), cobalt (batteries), natural gas (fab energy), and silicon wafer inputs. Returns spot pricing trends, supply concentration risk by country, 30/60/90d outlook, and active alerts. Use when assessing cost risk in long-term supply agreements or evaluating supplier ESG exposure. 6h cache.
settlement.nl
Execute a payment from a plain-English instruction. DPX's AI synthesis layer parses the instruction, runs the full oracle gate → compliance screen → settlement flow autonomously, and returns a receipt. Use this when the agent has a natural-language payment task rather than structured parameters. Examples: 'Pay Acme GmbH $25,000 for invoice #42', 'Send $10k to 0x... for vendor services', 'Settle the outstanding balance with Nova Trade SA'. Sandbox mode by default — set sandbox=false for live execution.
| Parameter | Type | Description |
|---|---|---|
instruction * | string | Plain-English payment instruction, e.g. 'Pay Acme GmbH $25,000 USD for invoice #INV-2026-0042' |
recipient_address * | string | Recipient wallet address (0x...) |
sandbox | boolean | Set false for live execution. Default: true |
invoice.create
Create a machine-payable DPX invoice. Returns an invoice ID and a pay URL that any agent can call to settle autonomously. Use this to issue invoices between agents — agent A creates, agent B pays with invoice.pay. No human required in either direction.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Invoice amount in USD |
description * | string | Invoice description or line items |
recipient_address * | string | Wallet address that will receive the funds |
currency | string | Settlement currency (default: USD) |
invoice.pay
Pay a DPX invoice by ID. Runs the full oracle gate → compliance screen → settlement flow and returns a receipt. Any agent with the invoice ID can call this — no account, no API key. This is the core agent-to-agent payment primitive: one agent creates an invoice, another pays it.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | string | Invoice ID from invoice.create |
payer_address * | string | Wallet address of the paying agent |
sandbox | boolean | Set false for live execution. Default: true |
invoice.get
Retrieve a DPX invoice by ID — status, amount, description, pay URL, and settlement receipt if already paid.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | string | Invoice ID from invoice.create |
policy.check
Check whether a proposed payment is within a delegated spend policy. Use this in multi-agent systems where an orchestrator has set a spend limit for a sub-agent. Returns APPROVED or DENIED with the remaining balance. Call before settlement.execute when operating under a policy.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Proposed payment amount in USD |
policy_id * | string | Policy ID from the orchestrator agent |
purpose * | string | Payment purpose — e.g. vendor-invoice, payroll |
policy.create
Create a delegated spend policy. An orchestrator agent calls this to set a spend limit for sub-agents — maximum amount, per-transaction cap, allowed purposes, and expiry. Returns a policy_id to share with sub-agents. Sub-agents call policy.check before each payment.
| Parameter | Type | Description |
|---|---|---|
max_per_tx * | number | Per-transaction cap in USD |
max_total * | number | Total spend limit in USD |
allowed_purposes | array | Allowed payment purposes, e.g. ['vendor-invoice','payroll']. Empty = all purposes. |
expires_in_seconds | number | Policy TTL in seconds (default 86400 = 24h) |
policy.audit
Retrieve the tamper-evident audit ledger for a policy — every payment checked and recorded against it, with timestamps and settlement IDs. Use for compliance reporting or to verify sub-agent spend.
| Parameter | Type | Description |
|---|---|---|
policy_id * | string | Policy ID to audit |
computer_use.pay
Complete a payment that Claude's computer use session has identified on screen — a checkout form, wire transfer UI, invoice approval, or vendor portal payment step. Call this instead of typing card/bank details into a UI. Describe what you see on screen, provide the amount and recipient, and DPX runs the full oracle gate → compliance screen → settlement flow. Returns a receipt with settlement ID. The human stays out of the loop. Use this whenever computer use encounters a payment that would otherwise require human re-entry of credentials or approval.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Payment amount in USD as shown on screen |
purpose * | string | Payment purpose — e.g. vendor-invoice, contractor-payment, subscription, procurement |
recipient_address * | string | Recipient wallet address (0x...). If only a bank account or email is visible, use settlement.nl instead with the full instruction. |
screen_context * | string | Describe what is visible on screen — the payment form, vendor name, invoice number, or UI context. Used for audit trail. |
counterparty_name | string | Vendor or payee name as shown on screen — used for compliance screen |
sandbox | boolean | Set false for live execution. Default: true |
esg.lookup
Resolve a company name, domain, or ticker to a LEI via GLEIF and return the full ESG score. Removes the need for callers to have a LEI. Returns Environmental (40%), Social (35%), and Governance (25%) pillar scores, composite 0–100, fee surcharge tier, and per-source breakdown (SEC EDGAR, OSHA, BLS SOII, EU E-PRTR, ESMA, World Bank WGI, GLEIF). Use when you have a company name but not a LEI.
| Parameter | Type | Description |
|---|---|---|
q * | string | Company name, domain, or ticker to look up (e.g. "Apple Inc", "siemens.com", "MSFT") |
country | string | ISO-2 country code to narrow results (e.g. "US", "DE"). Optional but improves match accuracy. |
narrate | boolean | Set true to include a 2–3 sentence plain-English compliance narrative generated by the AI synthesis layer. |
esg.batch
Screen up to 50 entities in a single call. Accepts LEIs or company names (GLEIF-resolved). Returns results ranked by composite ESG score descending — highest scoring counterparties first. Useful for portfolio-level compliance screening, supplier due diligence, and TMS pre-payment checks. Name resolution is slower than direct LEI input.
| Parameter | Type | Description |
|---|---|---|
leis | array | Array of LEIs to screen (fastest path — no GLEIF resolution needed). |
names | array | Array of company names to screen (resolved via GLEIF — slower, allows ≤3s per name). |
esg.watch
Register an entity for ongoing ESG monitoring. DPX checks the score daily and fires a webhook when the composite score shifts by ≥ thresholdPoints. Satisfies MiCA Article 72 ongoing monitoring requirements. Returns a watchId for status checks and cancellation. Webhook payload includes previous/current score, delta, and tier change.
| Parameter | Type | Description |
|---|---|---|
lei * | string | 20-character GLEIF LEI of the entity to monitor. |
webhookUrl * | string | HTTPS URL to POST score change alerts to. Must be HTTPS. |
thresholdPoints | number | Fire webhook if composite score changes by ≥ N points. Default 5. Minimum 1. |
esg.portfolio
Score an entire counterparty portfolio in one call (up to 200 entities by LEI or name). Returns portfolio-level composite E/S/G scores, tier distribution, aggregate fee surcharge impact in basis points, worst offenders (bottom 10% by composite), top performers, MiCA Article 72 ongoing monitoring status, and SFDR PAI flags. The canonical pre-settlement compliance check for treasury systems and TMS integrations.
| Parameter | Type | Description |
|---|---|---|
label | string | Optional label for this portfolio (e.g. "Q3 2026 Counterparties"). |
leis | array | LEIs to score (fastest — no name resolution). |
names | array | Company names to score (GLEIF-resolved). |
esg.trend
Get the historical ESG composite trend for a specific entity by LEI. Returns score history, trend direction (IMPROVING / STABLE / DETERIORATING), and delta over the requested window. Data accumulates each time the entity is scored via esg.lookup, esg.batch, or esg.portfolio. Useful for due diligence, MiCA Article 72 ongoing monitoring reports, and detecting counterparties whose ESG posture is degrading.
| Parameter | Type | Description |
|---|---|---|
lei * | string | 20-character GLEIF LEI. |
days | number | Lookback window in days (7–365). Default 90. |
intelligence.subscribe
Register a webhook to receive alerts when a DPX intelligence signal crosses a threshold. Supported signals: stability (overall 0–100 score), cascade (shock propagation risk), macro_stress, climate, fx, or any. The cron checks hourly and fires the webhook on crossing — edge-triggered, not repeated every hour. Returns a subscriptionId for status checks and cancellation. Use for treasury alert systems, TMS integrations, or autonomous agent monitoring loops.
| Parameter | Type | Description |
|---|---|---|
threshold * | number | Score value (0–100) that triggers the webhook. |
webhookUrl * | string | HTTPS URL to POST alerts to. |
direction | string | Fire when signal goes above or below threshold. Default: above. |
label | string | Optional label for your own tracking. |
signal | string | Signal to monitor. Default: stability. |
intelligence.subscription.get
Check the status of an intelligence subscription by ID. Returns current signal score, last fired timestamp, total alerts fired, and subscription configuration. Use after intelligence.subscribe to verify a subscription is active.
| Parameter | Type | Description |
|---|---|---|
subscriptionId * | string | UUID returned by intelligence.subscribe. |
intelligence.subscription.delete
Cancel an intelligence subscription by ID. Stops future webhook alerts for that subscription. The alert log is retained for audit purposes.
| Parameter | Type | Description |
|---|---|---|
subscriptionId * | string | UUID returned by intelligence.subscribe. |
oracle.governance
Get the live governance score (0–100) for any legal entity identified by LEI or company name. Pulls from GLEIF (LEI registration status, renewal compliance) and World Bank Worldwide Governance Indicators (Government Effectiveness, Control of Corruption, Rule of Law). Returns composite governance score, tier (STRONG / ADEQUATE / MODERATE / WEAK / POOR), MiCA compliance flag, and per-source component breakdown. Complements esg.score by isolating the G pillar as a standalone institutional-grade signal.
| Parameter | Type | Description |
|---|---|---|
country | string | ISO-2 country code for World Bank WGI lookup (e.g. "DE", "US"). Optional but improves score accuracy. |
lei | string | 20-character GLEIF LEI. Provide this for fastest response. |
q | string | Company name to resolve via GLEIF if LEI is unknown (e.g. "Siemens AG"). |
compliance.ubo_chain
Trace the beneficial ownership chain for any legal entity up to 3 levels deep using GLEIF relationship records, then screen every node in the chain against the OpenSanctions consolidated sanctions list (OFAC SDN, EU, UN, UK OFSI). Returns chain structure (SUBJECT → DIRECT_PARENT → ULTIMATE_PARENT), per-node sanctions status, LEI lapse flags, overall CLEAR / REVIEW_REQUIRED / BLOCKED verdict, and FATF R.16 beneficial ownership compliance attestation. Required for correspondent banking due diligence, FATF R.12/13 UBO identification, and MiCA Article 72 counterparty risk management.
| Parameter | Type | Description |
|---|---|---|
lei * | string | 20-character GLEIF LEI of the entity to trace (e.g. "2594007XIACKNMUAW223"). |
deep | boolean | Set true to attempt 3-level traversal including intermediate nodes. Default false (direct + ultimate parent only). |
compliance.pep_screen
Screen an individual by name against the OpenSanctions PEP (Politically Exposed Person) dataset. PEPs include heads of state, senior government officials, senior executives of state-owned enterprises, senior politicians, senior military officers, judicial officials, and their close associates and family members. Returns match confidence, position/role, nationality, related entities, and an overall risk level (HIGH / MEDIUM / LOW / NONE). HIGH or MEDIUM matches require Enhanced Due Diligence (EDD) per FATF Recommendations 12 and 13 before settlement. Optionally filter by country.
| Parameter | Type | Description |
|---|---|---|
q * | string | Full name to screen (e.g. "Mario Draghi"). |
country | string | ISO-2 country code to narrow the search (e.g. "IT"). Optional. |
compliance.regulatory_calendar
Returns a structured calendar of upcoming and in-effect compliance obligations across MiCA (EU crypto-asset markets regulation), SFDR (Sustainable Finance Disclosure Regulation), CSRD (Corporate Sustainability Reporting Directive), the US GENIUS Act (payment stablecoin framework), and FATF Recommendations 15/16. For each event: framework, jurisdiction, requirement summary, effective date, impact level, and article reference. Also returns a DPX alignment section mapping each framework to the specific DPX endpoints that satisfy it. Use this before settlement workflow design, compliance gap analy…
defi.concept_lookup
A 39-term DeFi/digital-currency glossary spanning fundamentals, blockchain, tokens/assets, protocols, governance, security, and regulatory terms (fiat, TVL, AMM, DAO, impermanent loss, MiCA, and more), sourced from the World Economic Forum glossary plus DPX-curated DeFi infrastructure definitions. Optional keyword filter.
| Parameter | Type | Description |
|---|---|---|
q | string | Optional keyword filter across term, definition, and category (e.g. "collateral", "governance"). |
defi.research_papers
13 structured institutional research papers on CBDCs, stablecoins, crypto regulation, and cross-border payments — from BIS, the Federal Reserve, ECB, FSB, IMF, G7, SWIFT, and R3 — each with a summary and key findings. These papers are free but otherwise scattered as individual PDFs with no query layer; this makes them queryable in one place. Optional keyword filter.
| Parameter | Type | Description |
|---|---|---|
q | string | Optional keyword filter across title, organization, summary, and category (e.g. "mBridge", "reserve"). |
stability.corridor
Corridor-specific settlement stability score (0–100) for any currency pair. Combines the live global Stability Oracle score with corridor-specific risk adjustments covering 28 currency pairs: regulatory flags (BCB/IOF for BRL, PBoC capital rules for CNH, BCRA controls for ARS, etc.), FX liquidity score based on active trading sessions at current UTC time, cascade penalty from live macro signals, and weekend/off-hours penalty. Returns SETTLE_NOW / DELAY_24H / DELAY_48H recommendation with rationale. Distinct from oracle.stability (which is global) and market.fx (which is spot-rate focused)  
| Parameter | Type | Description |
|---|---|---|
from * | string | Source currency ISO-4217 code (e.g. "USD", "EUR", "GBP"). |
to * | string | Destination currency ISO-4217 code (e.g. "BRL", "MXN", "SGD"). |
stability.settlement_window
Optimal settlement execution window analysis for a specific cross-border payment over the next 72 hours. Generates 18 × 4-hour time slots and scores each by composite risk: corridor stability, FX session liquidity, cascade level decay/growth based on macro outlook, weekend/off-hours penalty, and counterparty ESG tier (if LEI provided). Returns a ranked window schedule with OPTIMAL / GOOD / ACCEPTABLE / AVOID classification per slot, a best-window recommendation, and large-amount splitting guidance for settlements ≥ $5M. Use this before scheduling large cross-border settlements to minimize e…
| Parameter | Type | Description |
|---|---|---|
from * | string | Source currency ISO-4217 (e.g. "USD"). |
to * | string | Destination currency ISO-4217 (e.g. "BRL"). |
amount | number | Settlement amount (default 1,000,000). Used for large-amount guidance ≥$5M. |
currency | string | Currency of the amount (defaults to from). |
lei | string | Optional 20-char GLEIF LEI of counterparty — fetches live ESG tier to apply counterparty risk penalty. |
stability.stablecoin_route
Multi-stablecoin settlement routing — given a source and destination currency pair, recommends the optimal stablecoin path based on corridor liquidity, regulatory fit, gas economics, and DPX native support. Returns a ranked list of stablecoins (USDC, EURC, BRLA, MXNC, NGNC, AEDX, PYUSD, USDT, and others) with regulatory flags, MiCA/GENIUS Act compliance status, liquidity tier, and warnings. Identifies blocked routes (e.g. USDT for EU under MiCA, BRLA before BCB Resolution 561 deadline). Use before settlement to avoid regulatory penalties and ensure optimal execution path.
| Parameter | Type | Description |
|---|---|---|
from * | string | Source currency ISO-4217 (e.g. "USD"). |
to * | string | Destination currency ISO-4217 (e.g. "EUR", "BRL", "AED"). |
amountUsd | number | Settlement amount in USD (used for liquidity tier and large-amount warnings). |
agent.kya_register
KYA — Know Your Agent. Three-tier registration model — compliance burden scales with settlement risk, no documents ever required. ANONYMOUS: agent name only, $1K/day cap, instant. REGISTERED: add ownerEntity + ownerEmail (self-attested, no verification), $25K/day cap, instant. VERIFIED: add ownerLei (active GLEIF LEI) — DPX calls the public GLEIF API, confirms ACTIVE status, and grants VERIFIED instantly. No documents, no manual review; LEI issuers (LOUs) have already done identity verification and DPX inherits it. VERIFIED agents get institutional caps (governed by mandate), FATF R.16 a…
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable name for this agent. |
framework | string | Agent framework: "claude", "gpt-4o", "gemini", "custom", etc. |
mandate | object | Optional AP2-compatible spend mandate (REGISTERED/VERIFIED only). Caps are clamped to tier limits for REGISTERED agents. |
ownerEmail | string | Contact email. Required for REGISTERED tier ($25K/day cap). Self-attested, not verified. |
ownerEntity | string | Organization or person that owns/operates this agent. Required for REGISTERED tier. |
ownerLei | string | 20-char GLEIF LEI. Providing a valid active LEI instantly grants VERIFIED tier — no documents. Get your LEI at gleif.org. |
protocols | array | Supported protocols: ["x402", "ap2", "mcp", "a2a"]. |
publicKey | string | Optional public key for credential signature verification. |
agent.mandate_create
Create or update an AP2-compatible spend mandate for a REGISTERED or VERIFIED DPX agent. Sets per-agent settlement constraints: max notional per settlement, daily cap, optional counterparty whitelist (LEIs or wallets), allowed currency pairs, ESG floor, and expiry. ANONYMOUS agents cannot hold mandates — register with ownerEntity + ownerEmail first. REGISTERED agents have mandate caps clamped to their tier limit ($25K). VERIFIED agents (GLEIF LEI confirmed) set their own caps with no platform ceiling. Mandate is AP2-formatted for interoperability with Google Agent Payments Protocol.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent ID from agent.kya_register. |
dailyCapUsd * | number | Max USD per calendar day (UTC). |
maxNotionalUsd * | number | Max USD per single settlement. |
counterpartyWhitelist | array | LEIs or wallet addresses. Empty = any counterparty. |
currencyPairs | array | Allowed pairs e.g. ["USD|EUR"]. Empty = any pair. |
esgFloor | number | Min counterparty ESG score (0 = no floor). |
expiresAt | number | Unix timestamp for mandate expiry. |
issuedBy | string | Organization issuing this mandate. |
agent.kya_verify
Verify a registered DPX agent and receive a signed 1-hour credential. Returns KYA level, effective spend caps (tier or mandate), owner verification status, mandate active status, and FATF R.16 compliance attestation. Attach credential.signature as X-Agent-Credential header and agentId as X-Agent-Id header on DPX /settle requests — enables mandate enforcement, per-agent audit trail, and FATF attestation. Credential expires in 1 hour; call again to refresh before expiry.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent ID from agent.kya_register (agt_...). |
forecast.commodity_outlook
Climate-driven price pressure outlook for a commodity. Returns BULLISH/BEARISH/NEUTRAL signal with 30/60/90-day horizons, confidence score, per-region stressor breakdown, and current FRED price reference. Covers 11 commodities: WHEAT, CORN, SOYB, COFFEE, COCOA, COTTON, SUGAR, WTI, NG, COPPER, LUMBER. Designed for institutional research teams evaluating commodity positions. Signals reflect supply constraint risk from climate — not a financial recommendation. Cache: 4h.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Commodity symbol |
fresh | boolean | true = bypass 4h cache and recompute live signals |
forecast.portfolio_stress
Climate stress test for a multi-commodity portfolio. Pass up to 20 positions with weights (percentages or fractions — normalized internally). Returns aggregate portfolio climate score, which positions are most stressed, which could act as climate hedges, and a plain-language summary. Useful for commodity fund managers evaluating aggregate climate exposure before rebalancing.
| Parameter | Type | Description |
|---|---|---|
positions * | array | Portfolio positions with symbol and weight |
forecast.scenario
What-if climate scenario analysis. Apply a named scenario or custom stressor multipliers to any subset of commodities and see how signals shift. Built-in scenarios: la_nina_moderate, la_nina_severe, el_nino_moderate, gulf_hurricane_major, us_plains_drought_severe, black_sea_disruption, brazil_frost, chile_drought_copper, pacific_northwest_wildfire. Use to stress-test a commodity thesis before committing to a position.
| Parameter | Type | Description |
|---|---|---|
scenario | string | Built-in scenario ID — or omit and provide stressorOverrides |
stressorOverrides | object | Custom multipliers if not using a named scenario (1.0 = no change) |
symbols | array | Symbols to analyze — omit for all 11 |
forecast.production_regions
All ~40 global commodity production regions ranked by current climate risk score. Each region shows which commodities it affects and its current climate risk level (HIGH/MODERATE/LOW). Use to identify which geographic zones are under active climate stress and which commodities are most exposed.
forecast.calendar
Seasonal climate event calendar with commodity impact. Returns 12 critical annual windows (hurricane season, corn pollination, Brazil frost risk, Black Sea harvest, ENSO influence periods, etc.) sorted by urgency — active windows first, then by months until next occurrence. Each entry includes affected commodities, severity, and the agronomic basis.
fx.rate
Live mid-market FX rate for any currency pair. Returns mid rate, bid/ask spread, daily volatility %, regulatory flags for the corridor, and data freshness. Sourced from central bank rates (open.er-api.com, updated hourly, no API key required). Free.
| Parameter | Type | Description |
|---|---|---|
from * | string | Source currency ISO 4217 code (e.g. USD) |
to * | string | Target currency ISO 4217 code (e.g. BRL) |
fx.cost_certainty
All-in settlement cost quote for cross-border payments. CFO-grade output: exact amount received in target currency after rail fees, 48h FX cost variance expressed in dollars, corridor stability overlay, and optimal execution window. Answers "if I send $X today, what does my counterparty receive net of everything, and how certain is that number?"
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount to send |
from * | string | Source currency ISO 4217 (e.g. USD) |
to * | string | Target currency ISO 4217 (e.g. BRL) |
amountCurrency | string | Currency of the amount (defaults to from) |
lei | string | Optional counterparty LEI for ESG-adjusted fee tier |
fx.corridors
All 60+ currency corridors with current stability tier, daily volatility estimate, and regulatory flags. Sort is best-first (OPTIMAL → ADVERSE). Use to compare corridors before choosing a payment route — e.g. "which LATAM corridor is most stable for a $2M payment this week?" Filter by source currency with the from parameter. Free.
| Parameter | Type | Description |
|---|---|---|
from | string | Optional: filter to corridors starting from this currency (e.g. USD) |
route
Multi-stablecoin settlement routing. Given amount, source currency (from), and destination currency (to), returns all three stablecoin options (USDC, EURC, USDT) ranked by settlement efficiency. EURC is recommended for EUR destinations — eliminates cross-currency conversion. Returns settleBody ready to POST to /settle for the top-ranked option.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Settlement amount in source currency |
from | string | Source currency code (USD, EUR, GBP, BRL, etc.) |
to | string | Destination currency code (USD, EUR, GBP, etc.) |
flow_check
Single pre-flight call before settling. Runs oracle check, compliance screen, and stablecoin routing in parallel and returns a unified go/no-go decision. Replaces the 3-step oracle → screen → route loop. Returns: decision (PROCEED/HOLD/BLOCKED), recommended token, estimated net received, oracle score, compliance verdict, and a ready-to-use settleBody.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Settlement amount in source currency |
address | string | Counterparty wallet address for compliance screen (optional but recommended) |
from | string | Source currency code (default: USD) |
lei | string | Counterparty LEI for enhanced compliance check (optional) |
to | string | Destination currency code (default: USD) |
batch_settle
Submit multiple settlements in a single call. Runs all settlements concurrently — one failure does not block others. Returns a summary (total/succeeded/failed) and per-item results mirroring what settlement.execute would return. Maximum 50 per batch.
| Parameter | Type | Description |
|---|---|---|
settlements * | array | Array of settlement request objects (same schema as settlement.execute) |
settle.subscribe
Register a webhook callback for settlement completion events. Your endpoint receives a POST with X-DPX-Signature: sha256=<hmac> over the raw JSON body whenever a settlement completes. Returns a subscriptionId and webhookSecret — store the secret immediately, it is returned once.
| Parameter | Type | Description |
|---|---|---|
url * | string | HTTPS endpoint to receive settlement.completed events |
events | array | Event types (default: ["settlement.completed"]) |
analytics.overview
Get live DPX performance analytics. Returns current stability score, ESG composite scores, live fee breakdown, oracle health across all data sources, and a settlement readiness assessment. Use for dashboards, reporting, and AI-driven monitoring of protocol health.
dpx.metrics
Live performance metrics for the DPX settlement infrastructure — request volumes, error rates, growth trends, and per-service breakdown. On the hosted mcp.untitledfinancial.com Worker this reads Cloudflare's production telemetry directly. This npx package does not hold DPX's Cloudflare account token (it is never distributed with the public package), so it reports that live figures are unavailable here and points to the hosted endpoint or case@untitledfinancial.com for current numbers.
| Parameter | Type | Description |
|---|---|---|
window | string | Time window for metrics. Default: 30d. |
integration.verify
Initiate a $0.01 USDC onboarding handshake for a new DPX integration. Returns the DPX treasury address and payment instructions. The client sends $0.01 USDC on Base mainnet to confirm their wallet is funded and settlement rails are clear. Call integration.status to poll for confirmation. Required for all new integrations before production settlements are enabled.
| Parameter | Type | Description |
|---|---|---|
walletAddress * | string | The client wallet address (0x...) that will send the $0.01 verification payment. |
apiKey | string | Optional: the DPX API key being registered for this integration. Stored as a hash — never logged in plaintext. |
integration.status
Check the status of a DPX integration verification session. Polls Base mainnet for receipt of the $0.01 USDC handshake payment. Returns "pending" until payment is detected on-chain, then "verified" with the txHash and a Basescan explorer link. Poll every 10–15 seconds after sending the payment.
| Parameter | Type | Description |
|---|---|---|
id * | string | verificationId returned by integration.verify. |
ramp.connect
Connect a Ramp corporate account to DPX settlement. Returns an OAuth authorization URL — direct the user to this URL to grant DPX access to their Ramp account. Required scopes: transactions:read, bills:read/write, cards:read/write, cards:read_agentic (Agent Cards), business:read, bank_accounts:read, vendors:read, entities:read. Call once per tenant; tokens are stored and refreshed automatically.
| Parameter | Type | Description |
|---|---|---|
tenant_id * | string | Your internal tenant or customer ID — returned in the callback so you can match the connection. |
ramp.spend_analysis
Analyse a connected Ramp account's wire and international bill volume to surface DPX settlement opportunity. Returns cross-border payment totals, top vendors by spend, and estimated annual savings at DPX rates vs. typical bank wire. Requires a Ramp account connected via ramp.connect.
| Parameter | Type | Description |
|---|---|---|
tenant_id * | string | Tenant ID of the connected Ramp account. |
page_size | number | Number of bills to analyse (default 100, max 500). |
ramp.agent_card
Create a scoped Ramp Agent Card — a single-use virtual card with a merchant and amount cap, expires after first authorization or 12 hours. Used to fund the fiat leg of a DPX settlement without pre-funding a crypto wallet. Requires the cards:read_agentic scope (granted via ramp.connect).
| Parameter | Type | Description |
|---|---|---|
amount * | string | Card spending cap (e.g. "10000.00"). |
tenant_id * | string | Tenant ID of the connected Ramp account. |
currency | string | Currency code (default USD). |
display_name | string | Card label visible in Ramp dashboard. |
merchant_scope | string | Intended merchant name (informational). |
reference | string | Your internal reference ID. |
ramp.settle
Execute a DPX stablecoin settlement funded by a Ramp Agent Card — combines card creation and settlement in one call. Ramp handles the fiat conversion leg; DPX settles USDC or EURC on Base mainnet. Returns pacs.002 confirmation + SFDR PAI indicators. No crypto wallet pre-funding required. Requires a Ramp account connected via ramp.connect.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Payment amount (e.g. "50000.00"). |
creditor_name * | string | Recipient name. |
creditor_wallet * | string | Recipient on-chain wallet address (0x...). |
currency * | string | Source currency: USD or EUR. |
tenant_id * | string | Tenant ID of the connected Ramp account. |
callback_url | string | Webhook URL for pacs.002 delivery. |
creditor_lei | string | Recipient LEI for GLEIF VoP (optional). |
merchant_scope | string | Merchant name for Agent Card scope. |
reference | string | Your internal payment reference. |
settlement_asset | string | Settlement asset: USDC (default) or EURC. |
ramp.compliance_screen
Compliance pre-screen for Ramp accounting agent payments — run before issuing an Agent Card to eliminate unnecessary human approval queues. Performs 5 checks in parallel: FATF country risk, amount threshold flags, OpenSanctions global sanctions screen, OpenSanctions PEP screen (individuals/payroll), and GLEIF UBO chain with sanctions at each node (if LEI provided). Returns APPROVED / FLAGGED / BLOCKED with a humanRequired boolean.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Payment amount in units of currency. |
counterpartyName * | string | Legal name of the payment counterparty. |
counterpartyCountry | string | ISO 3166-1 alpha-2 destination country (e.g. "DE", "NG", "IR"). |
counterpartyLei | string | Optional GLEIF LEI — enables UBO chain check and satisfies FATF R.16 originator identification. |
currency | string | ISO 4217 currency code. Defaults to "USD". |
isIndividual | boolean | true if counterparty is an individual (triggers PEP screen). Defaults to false. |
paymentType | string | Payment type — payroll automatically triggers PEP screen. |
sourceCountry | string | ISO 3166-1 alpha-2 source country. Defaults to "US". |
swift.gpi_track
Track a DPX settlement via SWIFT gpi-compatible status. Given a UETR (Unique End-to-End Transaction Reference), returns gpi-format payment status including a pacs.002 payload that a SWIFT member bank can submit to the gpi Tracker. DPX is not a SWIFT member — the SWIFT member bank submits the returned pacs.002 to the gpi Tracker via their own gpi API access.
| Parameter | Type | Description |
|---|---|---|
uetr * | string | RFC 4122 UUID UETR assigned at payment initiation, e.g. "97ed4827-7b6f-4491-a06f-b548d5a7512d". |
policy.delegate
Delegate payment authority from a parent agent to a sub-agent with explicit limits. The sub-agent can only spend up to the delegated ceiling. Delegation can be revoked at any time. Use in multi-agent workflows where an orchestrator authorises a worker agent to make payments on its behalf.
| Parameter | Type | Description |
|---|---|---|
child_agent_id * | string | The sub-agent receiving delegated authority |
parent_agent_id * | string | The authorising (parent) agent ID |
expires_at | number | Unix timestamp (ms) when this delegation expires. Omit for no expiry. |
max_per_tx | number | Maximum USD per transaction for the sub-agent |
max_total | number | Lifetime spending ceiling for this delegation |
policy_id | string | Policy ID to inherit (optional — inherits parent policy if omitted) |
receipt.create
Record a tamper-evident signed receipt for an agent financial action. Call immediately after every successful settlement. Returns a receipt ID and HMAC-SHA256 signature over the canonical receipt JSON — cryptographic proof the record has not been altered. Receipts are queryable by session or agent for audit.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Agent that executed the payment |
amount_usd * | number | Amount paid in USD |
compliance_decision | string | Compliance decision at time of payment (PROCEED / HOLD / BLOCKED) |
counterparty | string | Counterparty name |
delegation_id | string | Delegation ID if acting under delegated authority |
from_currency | string | Source currency (default: USD) |
oracle_status | string | Oracle status at time of payment (STABLE / CAUTION / UNSTABLE) |
policy_id | string | Policy ID that governed this payment |
recipient | string | Recipient wallet address |
sandbox | boolean | True if this was a sandbox settlement |
session_id | string | Task or session ID for grouping (use the same ID for all payments in one agent run) |
settlement_id | string | Settlement ID returned by the settle tool |
task_context | string | Plain-text description of what task triggered this payment |
to_currency | string | Destination currency (default: USD) |
tx_hash | string | On-chain transaction hash (if live) |
ledger.session
Get the aggregated payment graph for a multi-agent session. Returns total USD moved, transaction count, and a chronological list of all payments made during the session. Use for cost accounting, audit, or to show a human what an agent run spent.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session or task ID — the same ID used in receipt.create calls |
market.cascade
Butterfly Effect Cascade Intelligence — models how a shock in one macro domain propagates through the interconnected web of climate, geopolitical, economic, and commodity systems. Given an origin event and a magnitude score, returns a time-ordered cascade chain showing which downstream systems are hit, in what sequence, with what attenuated signal strength, and an AI synthesis briefing. Covers 24 nodes across 4 domains. Call with listNodes:true first to discover valid origin IDs.
| Parameter | Type | Description |
|---|---|---|
eventType | string | Free-text description of the specific event (e.g. "Russia-Ukraine escalation", "Sahel drought season", "Fed emergency 75bps hike"). |
horizonHours | number | Forward time horizon in hours (1–720). Default: 168 (1 week). |
listNodes | boolean | If true, returns all valid origin node IDs and descriptions instead of running a cascade. |
magnitude | number | Shock magnitude 1–100. 100 = maximum plausible shock for this event type. |
origin | string | Origin node ID. Call market.cascade with listNodes:true to discover valid IDs (e.g. "geo.conflict", "climate.drought", "commodity.oil", "macro.rate_decision"). |
intelligence.tectonic
Tectonic Intelligence — maps slow-moving structural stress across 22 fault lines in 5 domains (demographic, fiscal, environmental, infrastructure, geopolitical). Each node carries current stress (0–100), accumulation rate (%/yr), tipping threshold, and estimated years to rupture. Where market.cascade traces an acute shock, tectonic surfaces latent pressure before it ruptures.
intelligence.aftershock
Aftershock Intelligence — models the secondary waves that follow a primary cascade event. Takes a primary shock (origin node, event type, magnitude, elapsed hours) and returns three aftershock waves: Wave 1 (0–72h immediate), Wave 2 (1–4wk policy response distortions), Wave 3 (1–6mo structural changes). Companion to market.cascade — run cascade first, then aftershock.
| Parameter | Type | Description |
|---|---|---|
magnitude * | number | Primary shock magnitude 1–100. |
origin * | string | Origin node ID from the primary cascade (e.g. "geo.conflict", "climate.drought"). |
elapsedHours | number | Hours elapsed since the primary event. Default 24. |
eventType | string | Description of the primary event. |
horizonHours | number | Forward horizon to model in hours. Default 4320 (6 months). |
intelligence.contagion
Contagion Intelligence — simulates how a macro or financial shock spreads through 30 nodes across 6 domains using an epidemiological R-value model. Returns system R trajectory, per-epoch spread map, superspreader nodes, containment forecast, and AI briefing. R < 1.0 = self-limiting; R ≥ 1.0 = expanding. Call with listNodes:true first to discover valid origin IDs.
| Parameter | Type | Description |
|---|---|---|
listNodes | boolean | If true, returns all valid origin node IDs instead of running a simulation. |
magnitude | number | Initial shock magnitude 1–100. |
origin | string | Origin node ID. Call intelligence.contagion with listNodes:true to discover valid IDs. |
intelligence.resonance
Resonance Intelligence — detects when multiple independent macro forces are oscillating in phase across 28 signals in 5 domains, amplifying each other rather than cancelling. Returns per-signal phase angles, resonance clusters (groups of 3+ aligned signals), amplitude amplification factor, system resonance score (0–100), and historical danger-zone comparison to crisis precedents (2008, 2011, 2020, 1997 EM).
intelligence.gender_risk
Gender Risk & Opportunity Intelligence — maps the structural relationship between GBV prevalence, legal discrimination, female labour force participation, and economic outcomes across 18 countries. Returns gbvRiskScore (0–100 suppression risk) and opportunityScore (0–100 reform upside). Data: WHO GHO, World Bank WDI, FRED.
market.shipping
Shipping & Logistics Stress Intelligence — composite view of global freight market conditions across ocean, air, truck, and rail. Tracks energy-driven shipping costs, 8 key global trade routes with disruption status, and trade flow signals. Returns a settlementRelevance section mapping logistics conditions to cross-border payment corridor risk. Data: FRED (Brent crude), EIA (US diesel). 4h cache.
market.fx
FX Settlement Corridor Intelligence — per-pair execution risk assessment for 10 major currency corridors against USD (EUR, GBP, JPY, CAD, AUD, CHF, MXN, BRL, CNY, INR). Maps live FRED spot rates to settlement advice per pair: SETTLE_NOW / SETTLE_WITH_HEDGE / DELAY_SHORT / DELAY_REVIEW / AVOID. Returns DXY dollar regime, regional block risk rollup, best/worst corridors, and recommended actions. 1h cache.
treasury.yield_route
Treasury Float Yield Routing Analysis — OPTIONAL, CLIENT-DIRECTED ONLY. Analyzes whether idle settlement float can be productively deployed into a yield-bearing instrument (sUSDS — Sky Protocol Savings Rate) between now and a scheduled settlement deadline. Returns expected yield, exit timing, liquidity assessment, slippage estimate, and a mandatory risk disclosure. THIS TOOL DOES NOT MOVE FUNDS — analysis only; all execution decisions are made by the client. Safety rules: max 90% of amount routed (10% always stays in USDC), exit 30 min before deadline, slippage guard, 2h minimum window,…
| Parameter | Type | Description |
|---|---|---|
amountUsdc * | number | Settlement amount in USDC. Minimum $50,000 for yield routing to be viable after gas costs. |
settlementDeadlineUtc * | string | ISO 8601 UTC timestamp of when USDC must be ready for settlement (e.g. "2026-06-15T20:00:00Z"). The tool recommends exiting 30 minutes before this. |
dryRun | boolean | If true, returns analysis without any on-chain queries. Default: false. |
riskTolerance | string | conservative = sUSDS only, instant exit. moderate = higher slippage tolerance (up to 0.15%). Default: conservative. |
mercury.accounts
List all Mercury bank accounts and balances connected to the DPX Settlement Agent. Returns account IDs, names, available balance, current balance, and currency for each account. Use account IDs with mercury.transactions to fetch payment history, or mercury.send to initiate a payment. Works with both Mercury sandbox and production environments.
mercury.transactions
List recent transactions for a Mercury bank account. Returns transaction ID, amount (USD), status, note/memo, counterparty name, created date, and whether the transaction was DPX-tagged (memo contains "dpx:"). Filter by account ID obtained from mercury.accounts. Use this to reconcile DPX settlements against Mercury bank activity.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Mercury account ID (from mercury.accounts). |
limit | number | Number of transactions to return (default 20, max 500). |
offset | number | Pagination offset (default 0). |
mercury.ach_authorize
Screen an ACH payment through the DPX compliance oracle before execution. Runs FATF R16, GENIUS Act, MiCA, and AML checks against the recipient. Returns APPROVED / FLAGGED / BLOCKED with full compliance reasoning. Use this BEFORE every ACH payment via mercury.send — ACH is hard to reverse.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Source Mercury account ID (from mercury.accounts). |
amount * | number | Payment amount in USD. |
recipientId * | string | Mercury saved recipient ID. |
recipientName * | string | Legal name of the recipient entity or individual — used for compliance screening. |
autoExecute | boolean | If true and compliance returns APPROVED, immediately sends the ACH payment. Default false. |
externalMemo | string | External memo / reference visible to recipient (optional). |
idempotencyKey | string | Idempotency key for safe retries. Auto-generated if omitted. |
note | string | Payment memo / note (optional). |
purpose | string | Payment purpose category (optional). E.g. "Vendor", "Contractor", "Expenses". |
mercury.send
Initiate a Mercury bank payment from a connected account. Supports ACH, Wire, RTP (instant), International Wire, and Check. For International Wire, provide SWIFT/BIC code and beneficiary bank details — check oracle.stability and market.fx first. Set dpxRoute:true to tag the payment for automatic DPX on-chain USDC routing via the Mercury webhook. Use sandbox:true (default) for dry-run testing; set sandbox:false only when ready to move real funds.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Source Mercury account ID (from mercury.accounts). |
amount * | number | Payment amount in USD (or destination currency if specified). |
accountNumber | string | Recipient account number (required for ach/wire/check). Also used for IBAN on internationalWire. |
bankAddress | string | Beneficiary bank street address. |
bankCity | string | Beneficiary bank city. |
bankCountry | string | Beneficiary bank country — ISO 3166-1 alpha-2. |
bankName | string | Beneficiary bank name. |
currency | string | Destination currency for internationalWire (e.g. "GBP", "EUR"). Default USD. |
dpxRoute | boolean | If true, appends dpx:<wallet> to the memo — triggers DPX on-chain USDC settlement via the Mercury webhook. |
note | string | Payment memo / description. |
paymentMethod | string | Payment rail. Default: ach. |
recipientAddress | string | Beneficiary street address. |
recipientCity | string | Beneficiary city. |
recipientCountry | string | Beneficiary country — ISO 3166-1 alpha-2. |
recipientEmail | string | Recipient email (optional). |
recipientId | string | Mercury saved recipient ID for internationalWire. |
recipientName | string | Recipient legal name (required for ach/wire/rtp/check). |
recipientPostalCode | string | Beneficiary postal code. |
routingNumber | string | Recipient routing number (required for ach/wire/check). |
sandbox | boolean | Dry run — returns what would be sent without executing. Default: true. |
swiftCode | string | BIC/SWIFT code of beneficiary bank (required for internationalWire without recipientId). |
mercury.sweep
Treasury float yield routing analysis for idle Mercury bank balances. Computes how much can be swept above a reserve threshold, then evaluates whether deploying into sUSDS (Sky Protocol) on Base is viable before a settlement deadline. THIS TOOL DOES NOT MOVE FUNDS — analysis and step-by-step instructions only. Always keeps thresholdUsd in Mercury, deploys max 90% of the sweepable amount, requires a 2-hour minimum window and $50,000 minimum sweepable.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Mercury account ID to analyze (from mercury.accounts). |
riskTolerance | string | Default: moderate. |
sandbox | boolean | If true, marks analysis as sandbox mode. |
settlementDeadlineUtc | string | ISO 8601 UTC timestamp of when funds must be back in Mercury. Defaults to 7 days from now. |
thresholdUsd | number | Minimum USD balance to always keep in Mercury as a reserve. Default: $50,000. |
search_docs
Search DPX documentation by keyword. Returns the most relevant doc sections — how-to guides, API references, fee structure, oracle architecture, compliance requirements, and integration setup. Call this when you need protocol details mid-task rather than relying on context alone. Free — searches a local doc index bundled with this package.
| Parameter | Type | Description |
|---|---|---|
query * | string | Keywords to search — e.g. "how to settle", "esg fee formula", "butterfly cascade", "mercury send", "compliance screen". |
limit | number | Max results to return (default 3, max 5). |
card.positions
Plan treasury settlement for a crypto card program. Accepts net positions per corridor (e.g. USD-BRL: $2.3M, USD-EUR: €450K) and returns an optimal settlement plan — which corridors to settle now vs. hold, which stablecoin to use per corridor, and estimated all-in fee. No settlement is executed. Call this before card.settle to review the plan. Free.
| Parameter | Type | Description |
|---|---|---|
positions * | array | Array of net positions. Each: { corridor: "USD-BRL", netAmountUsd: 2300000, recipientAddress?: "0x..." } |
settlementDate | string | Settlement date ISO string (defaults to today UTC). E.g. "2026-08-09". |
card.settle
Execute treasury settlement for a crypto card program. Takes the same positions array as card.positions but executes all settlements via DPX batch — compliance-gated, oracle-priced, stablecoin-routed. Each position requires a recipientAddress. Use sandbox:true for testing. Returns per-corridor settlement results and a summary.
| Parameter | Type | Description |
|---|---|---|
positions * | array | Array of net positions. Each: { corridor: "USD-BRL", netAmountUsd: 2300000, recipientAddress: "0x..." }. recipientAddress is required for every position. |
sandbox | boolean | true = test mode, no on-chain execution. Default true — set false only for live execution. |
compute.models
List all AI models available through DPX Compute. All models are free-tier (no token cost) — routed via OpenRouter. Returns model IDs, provider, capability strengths, context window, and speed tier. Use this before compute.route to understand what models are available and pick the right one for a task. Free.
compute.cost
Get a model recommendation for a task type without running inference. Returns the best free model for the task, its strengths and speed tier, and a list of alternatives. Use this when an agent needs to select a model before committing to inference. Free.
| Parameter | Type | Description |
|---|---|---|
task * | string | Description of the task — e.g. "summarize a financial document", "write Python code", "translate from French", "reason through a math problem". |
speed | boolean | true = prefer fastest model over most capable. Default false. |
compute.route
Route a task to the best available free AI model and run inference. DPX selects the model based on the task type (reasoning, code, multilingual, fast), calls OpenRouter, and returns the completion. All models are free-tier — no token cost. Use this when an agent needs to delegate a subtask to a language model without managing model selection or API keys.
| Parameter | Type | Description |
|---|---|---|
task * | string | Plain-language description of what the model should do. Used for model selection. |
messages | array | Optional. Full message array in OpenAI format [{role, content}]. If omitted, task is sent as a user message. |
preferSpeed | boolean | true = use the fastest available free model regardless of task type. Default false. |