Skip to main content
Glama

OpenFinance — Easy Trading: Crypto, Stocks, Perps & Prediction Markets

get_onramp_url

The ONE fiat-to-crypto onramp tool. The backend picks the right provider based on baseCurrency — agents should NOT think about which provider to use. Use this whenever the user wants to deposit fiat / buy crypto / top up / add funds — e.g. 'I want to buy USDC', 'top up my wallet with $100', 'deposit ₹1000', 'add ₹5000 USDC', 'buy USDC with INR', 'onramp $50', 'add funds with UPI/IMPS', 'add funds with credit card', 'buy ETH on Base', 'get USDT with INR'.

Provider routing (handled server-side, do not mention to the user unless they ask):

  • baseCurrency = 'inr' → Onramp.money (UPI / IMPS / RTGS, India-first)

  • anything else / default → Moonpay (global cards & bank transfers)

Wallet address defaults to the caller's Privy-provisioned wallet for the chosen chain (EVM by default; Solana when chain=solana). Email is auto-pulled from Privy on the Moonpay branch. Returns { provider, url, ... } — hand the URL to the user to open in browser/iframe.

INR (Onramp.money) coin × network matrix — when baseCurrency='inr' pass a chain matching one of these or the call rejects: usdt → ethereum, polygon, bsc, tron usdc → polygon, bsc (NOT ethereum, NOT solana) busd → bsc matic → polygon bnb → bsc eth → ethereum, polygon sol → solana If the user asks for a pair outside this matrix on INR, propose a supported chain — e.g. 'buy USDC with INR on Ethereum' → polygon is the only INR option for USDC, suggest that.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_onramp_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoDestination chain. For INR/Onramp.money: ethereum, polygon, bsc, tron, solana. For non-INR/Moonpay: also base, arbitrum, optimism.
themeNoMoonpay branch only.
amountNoFiat amount the user will spend, in baseCurrency units. e.g. 1000 with baseCurrency=inr = ₹1000; 100 with usd = $100.
currencyNoCrypto symbol — usdc, usdt, eth, sol, btc, etc. Mapped to provider-specific code on the backend.
colorCodeNoMoonpay branch only.
coinAmountNoOnramp.money branch only: target crypto amount (alternative to fiat `amount`). Wins if both are passed.
redirectURLNoURL the provider redirects the user to after a successful purchase. Must be https and on an origin this deployment allowlists — anything else is refused, since the URL is signed and the provider honours the redirect on our authority.
baseCurrencyNoISO-4217 fiat code, lowercased. **THIS IS THE ROUTING KEY** — "inr" → Onramp.money (UPI/IMPS), anything else → Moonpay. Default "usd".
currencyCodeNoMoonpay-only direct override (e.g. "usdc_polygon"). Ignored on the Onramp.money branch.
paymentMethodNoOnramp.money branch only: 1 = UPI/Instant, 2 = IMPS/Bank. Skip to let the user pick on the form.
walletAddressNoDestination wallet. Leave it out: it defaults to the caller's own wallet for the chain. Only the caller's own wallet for that chain (EVM wallet for EVM coins, Solana wallet for SOL/SPL; never the Polymarket deposit wallet; no wallet on chains like Tron or Bitcoin). Any other address is refused with EXTERNAL_RECIPIENT_NOT_ALLOWED unless the person does it themselves, signed in at openfinance.tech.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / walletAddress / description
      Previous value: -"Destination wallet. Optional — defaults to the caller's Privy wallet for the chain."New value: +"Destination wallet. Leave it out: it defaults to the caller's own wallet for the chain. Only the caller's own wallet for that chain (EVM wallet for EVM coins, Solana wallet for SOL/SPL; never the Polymarket deposit wallet; no wallet on chains like Tron or Bitcoin). Any other address is refused with EXTERNAL_RECIPIENT_NOT_ALLOWED unless the person does it themselves, signed in at openfinance.tech."
  2. Changed2 schema fields changed
    • removedInput schema / properties / externalCustomerId
      Removed value: -{
      -  "description": "Moonpay branch only — defaults to authenticated userId.",
      -  "type": "string"
      -}
    • changedInput schema / properties / redirectURL / description
      Previous value: -"URL the provider redirects the user to after a successful purchase."New value: +"URL the provider redirects the user to after a successful purchase. Must be https and on an origin this deployment allowlists — anything else is refused, since the URL is signed and the provider honours the redirect on our authority."
  3. First observed

TDQS

A4.9/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 does so: server-side provider selection, default wallet resolution per chain, email auto-pull on the Moonpay branch, hard rejection on chain/pair mismatch, EXTERNAL_RECIPIENT_NOT_ALLOWED on foreign wallets, redirectURL signing/allowlist refusal, and the returned { provider, url } handoff. It even says what not to surface to the user unless asked.

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?

Long, but front-loaded with the one-line purpose and routing rule, then sectioned into provider routing and a coin×network matrix. Every block answers a distinct agent question; the long example list is the only mild padding but it directly serves intent matching.

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?

For an 11-parameter tool with no annotations and no output schema, the description covers routing, defaults, rejected inputs, and the return handoff. Minor gaps remain: no mention of URL/quote expiry or idempotency across repeated calls, and the return object is described only as { provider, url, ... }.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds material meaning the schema lacks: the exact coin×network matrix for INR (e.g. usdc → polygon/bsc only, not ethereum or solana) and the fact that a mismatched chain causes the call to reject. It also names which parameters are branch-specific defaults versus meaningful inputs.

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?

States a specific verb+resource (get an onramp URL) and explicitly frames itself as 'The ONE fiat-to-crypto onramp tool', which separates it from relay_*, onchain_* and wallet siblings that do not do fiat entry. The routing rule by baseCurrency makes the tool's identity unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Provides explicit when-to-use triggers with concrete user phrasings ('I want to buy USDC', 'add funds with UPI/IMPS', 'buy ETH on Base') and an explicit when-not-to-think instruction: 'agents should NOT think about which provider to use'. It also tells the agent what to do when the requested pair is unsupported ('propose a supported chain').

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.