Skip to main content
Glama

Fund Xrpl Wallet Via Coinbase

fund_xrpl_wallet_via_coinbase

Buy XRP on Coinbase and withdraw it directly to an XRPL address in one automated call, bootstrapping a funded wallet without manual exchange steps.

Instructions

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

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.

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 (from 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. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses the Coinbase v2 API usage, HMAC authentication, and that no paid plan is required. It explicitly states that credentials are user-owned, the server holds none, and credentials can be passed via env vars or direct parameters. It also describes the one-time human setup and that after that it is fully autonomous. It doesn't mention transaction irreversibility or fee details beyond the default amount, but it covers the most critical aspects.

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 long but well-structured with a clear lead sentence, followed by credential ownership emphasis, and a bulleted setup section. It is front-loaded with the core purpose. While it could be tightened, the length is justified given the external API setup and credential handling requirements. The use of headings and bullets aids scannability.

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 the tool's complexity (external API, credentials, setup), the description is thorough. It covers the full workflow, authentication, credential handling, one-time setup, and autonomy after setup. The presence of an output schema means return values need not be explained. An agent has all necessary information to call the tool correctly and understand prerequisites.

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%, so baseline is 3. The description adds significant meaning: explains the usd_amount default rationale (covers 1 XRP reserve + fees + buffer), notes that xrpl_address comes from create_agent_wallet, and clarifies the fallback behavior for coinbase_api_key and coinbase_api_secret to environment variables. This goes beyond the schema's terse property descriptions.

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 the specific verb ('Buy XRP on Coinbase and withdraw it to an XRPL address') and the resource (an XRPL wallet via Coinbase). It clearly differentiates from siblings like get_xrp_price or create_agent_wallet by describing the end-to-end bootstrap action. The opening line is precise and actionable.

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 explains when to use the tool ('lets a USDC-native or fiat-funded agent bootstrap an XRPL wallet without manual exchange steps') and outlines the prerequisite human setup. It doesn't explicitly state when NOT to use it or name alternative tools, but the context is clear enough that an agent can decide correctly. It also specifies that it works with a free account, setting expectations.

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