Skip to main content
Glama

Fund Xrpl Wallet Via Coinbase

fund_xrpl_wallet_via_coinbase

Buy XRP on Coinbase and withdraw it to an XRPL address in one call.

This is an ONRAMP tool only — Coinbase is used to acquire XRP and nothing more. All escrow creation and settlement happens on XRPL, not on Coinbase. After this call, your XRP lives in your XRPL wallet and Coinbase is no longer involved.

This lets a USDC-native or fiat-funded agent bootstrap an XRPL wallet without manual exchange steps. Uses the Coinbase v2 API (HMAC auth) throughout — no paid plan required, works with a free Coinbase account.

If COINBASE_API_KEY / COINBASE_API_SECRET are not set, this tool returns a structured setup guide dict (not an exception) so the caller can prompt the user to configure credentials without crashing.

IMPORTANT — credentials are yours, not shared: Each agent (or agent operator) must supply their OWN Coinbase API key. Never use someone else's key — it would charge their account, not yours. The AgentTrust MCP server itself holds no Coinbase credentials. Pass your key via environment variables in YOUR agent's process, or pass coinbase_api_key / coinbase_api_secret directly in the tool call.

One-time human setup (takes ~5 minutes):

  1. Create a free account at coinbase.com and complete KYC (passport/ID)

  2. Go to coinbase.com/settings/api → New API Key

  3. Grant: wallet:accounts:read, wallet:buys:create, wallet:transactions:send

  4. Set COINBASE_API_KEY and COINBASE_API_SECRET in your agent's environment

After setup, this tool is fully autonomous — no human needed per transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usd_amountNoUSD to spend (default $3 — covers 1 XRP reserve + Coinbase fees + XRP price variance buffer)
xrpl_addressYesDestination XRPL address (your wallet's public address; get it from get_wallet_setup_guide() or create_agent_wallet())
coinbase_api_keyNoYour Coinbase API key (falls back to COINBASE_API_KEY env var)
coinbase_api_secretNoYour Coinbase API secret (falls back to COINBASE_API_SECRET env var)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / xrpl_address / description
      Previous value: -"Destination XRPL address (from create_agent_wallet)"New value: +"Destination XRPL address (your wallet's public address; get it from get_wallet_setup_guide() or create_agent_wallet())"
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it delivers: it discloses the HMAC-authenticated Coinbase v2 API usage, free-account compatibility, the credential-missing fallback behavior (returns a setup guide dict instead of throwing), the fact that Coinbase is no longer involved after the call, and the one-time human setup requirement. This is exceptionally transparent about side effects and prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but well-structured with section headers, bullet lists, and numbered setup steps. It is front-loaded with the core purpose and each subsequent block earns its place by covering credentials, setup, and failure behavior without unnecessary repetition.

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?

Given that an output schema exists, the description does not need to document return values. It covers prerequisites, environment variables, credential ownership, setup steps, failure behavior, and post-call state, making it fully sufficient for an agent to decide when and how to invoke the tool correctly.

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 already 100%, but the description adds meaningful semantics beyond the schema: usd_amount's default is explained as covering 1 XRP reserve plus Coinbase fees and price variance, and the credential parameters are framed with ownership warnings. It also documents the required Coinbase API scopes, which is valuable context not present 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 states a specific verb and resource: 'Buy XRP on Coinbase and withdraw it to an XRPL address in one call.' It further distinguishes itself as an 'ONRAMP tool only' and clarifies that escrow creation and settlement happen on XRPL, not Coinbase, so it is unambiguous against the many sibling tools.

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?

The description gives clear context for when to use the tool: a USDC-native or fiat-funded agent bootstrapping an XRPL wallet without manual exchange steps. It also draws a boundary by saying Coinbase is used only to acquire XRP and nothing more, but it does not explicitly name alternative tools or spell out when not to use it beyond that boundary.

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.