Skip to main content
Glama

Plan wallet funding

fund_wallet
Read-only

Plan sending BSV to another wallet using USDC on Base: get a live quote and exact swap call without moving funds.

Instructions

Plan sending BSV to a specific BSV address, paid with this kit's USDC on Base. Read-only: it returns a live quote and the exact swap_asset_to_bsv call (with deliver_to set), but moves nothing. Use it when the BSV should land in another wallet; use get_quote when it can stay in this kit. Fails if the kit could not start that swap now (spending stopped, address refused by limits.json, or over the daily limit). Returns plan, quote (the get_quote fields; valid about 60 seconds), swap_call and non_custodial.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bsv_address": "<bsv_address>",
      "amount_in": "<amount_in>"
    },
    "name": "fund_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
amount_inYesUSDC to spend, in atomic units as a decimal string ("25000000" = 25 USDC).
from_assetNoOptional asset to pay with; only "USDC" (USDC on Base, the default) is available.
bsv_addressYesBSV mainnet address (P2PKH, starting with 1) that should receive the BSV.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.22
    • changedInput schema / properties / amount_in / description
      Previous value: -"Amount of from_asset to spend, atomic units (decimal string)."New value: +"USDC to spend, in atomic units as a decimal string (\"25000000\" = 25 USDC)."
    • changedInput schema / properties / bsv_address / description
      Previous value: -"The BSV address to fund."New value: +"BSV mainnet address (P2PKH, starting with 1) that should receive the BSV."
    • changedInput schema / properties / from_asset / description
      Previous value: -"Source asset to spend (default USDC): USDC or BSV (phase 1 supports USDC → BSV only)"New value: +"Optional asset to pay with; only \"USDC\" (USDC on Base, the default) is available."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already say readOnly=true and openWorld=true, but the description goes further: it states that nothing moves, that the output contains a live quote plus a ready-to-use swap_asset_to_bsv call with deliver_to set, that the quote expires in about 60 seconds, and enumerates the returned keys.

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?

Four dense sentences in a deliberate order: what it does, safety posture, when to use vs the alternative, then failure modes and return shape. No filler or 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?

With no output schema, the description still enumerates the return fields (plan, quote, swap_call, non_custodial) and flags the 60-second quote validity. Combined with the documented failure conditions, nothing an agent needs before calling is missing.

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

Parameters3/5

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

Schema coverage is 100%, so each parameter is already documented, and the description largely restates them. It does add one useful connection — that bsv_address becomes deliver_to in the produced swap call — but adds no format or unit detail beyond 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?

Opens with a specific verb and resource: 'Plan sending BSV to a specific BSV address, paid with this kit's USDC on Base.' It explicitly distinguishes itself from both swap_asset_to_bsv (it only returns the call, does not execute) and get_quote (no external delivery address).

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?

Gives an explicit selection rule: 'Use it when the BSV should land in another wallet; use get_quote when it can stay in this kit.' It also names the failure conditions (spending stopped, address refused by limits.json, over daily limit), so an agent knows when not to expect a result.

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