Skip to main content
Glama

Withdraw Base funds

withdraw_base
Destructive

Send USDC or ETH from this kit's Base wallet to a user-confirmed Base address; the transfer is irreversible and blocked during swaps, stopped spending, or disallowed limits.

Instructions

Send USDC or ETH from this kit's Base wallet to another Base address. This moves funds and cannot be undone: use only an address the user gave you, and confirm it with them first. The kit pays the gas in ETH, so withdraw USDC before ETH. Refused while a swap is in progress, while spending is stopped, or when limits.json does not allow the address. Returns asset, amount (atomic and display), to, txid, status and a BaseScan url. Use withdraw_bsv for BSV.

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": {
      "asset": "<asset>",
      "to": "<to>",
      "amount": "<amount>"
    },
    "name": "withdraw_base"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination Base address in checksummed 0x form (EIP-55), supplied and confirmed by the user. Not this kit's own address, and not a swap or token contract.
assetYesWhich asset to send: "USDC" or "ETH".
amountYesAtomic units as a decimal string (USDC has 6 decimals, "1000000" = 1 USDC; ETH is in wei), or "all". For ETH, "all" keeps back the gas and needs the USDC withdrawn first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.22
    • addedInput schema / properties / amount / description
      Added value: +"Atomic units as a decimal string (USDC has 6 decimals, \"1000000\" = 1 USDC; ETH is in wei), or \"all\". For ETH, \"all\" keeps back the gas and needs the USDC withdrawn first."
    • addedInput schema / properties / asset / description
      Added value: +"Which asset to send: \"USDC\" or \"ETH\"."
    • addedInput schema / properties / asset / enum
      Added value: +[
      +  "USDC",
      +  "ETH"
      +]
    • addedInput schema / properties / to / description
      Added value: +"Destination Base address in checksummed 0x form (EIP-55), supplied and confirmed by the user. Not this kit's own address, and not a swap or token contract."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/non-idempotent, and the description goes well beyond them: it states the transfer is irreversible and requires user confirmation, explains the gas-in-ETH ordering constraint, enumerates the refusal conditions, and lists the response fields. This is the kind of pre-call risk context an agent cannot get from the annotations alone.

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?

Front-loaded with what the tool does and its irreversibility, followed by confirmation requirement, ordering constraint, refusal conditions, return shape, and the sibling pointer. Sentences are dense but every one adds a distinct operational fact; nothing is redundant padding.

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?

For a destructive, open-world fund transfer with no output schema, the description covers safety, preconditions, failure modes, and the return shape, which is everything an agent needs to decide and invoke 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 100% and already documents the EIP-55 address form, the USDC/ETH enum, and atomic-unit/'all' semantics, so the description is not required to carry parameter detail. It does add useful linkage by tying the ETH 'all' behaviour to the gas reserve and the USDC-first ordering, which clarifies how amount interacts with the gas rule.

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 the specific verb ('Send') plus the resource and the scope ('USDC or ETH from this kit's Base wallet to another Base address'), and explicitly names the sibling it is not ('Use withdraw_bsv for BSV'). An agent can distinguish it from withdraw_bsv and the swap tools without opening any schema.

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 concrete when-to-use and when-not-to-use rules: only an address the user supplied and confirmed, withdraw USDC before ETH because the kit's gas is ETH, and it is refused during a swap, while spending is stopped, or when limits.json disallows the address. It also routes BSV work to withdraw_bsv, so no alternative selection is left to inference.

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