Skip to main content
Glama

funding_prepare

Read-only

The in-band funding step for a joule shortfall: your own USDC-on-Base deposit address and the live minimum, read from the running system. It moves no money; track the deposit with funding_status.

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": "funding_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
neededNoThe joules you are short (the shortfall from joules_deficit or a 402). Default 0.

Output Schema

NameRequiredDescriptionDefault
noteNo
neededNo
routesNo
wallet_idNo
in_band_agent_funding_liveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • removedInput schema / properties / needed / title
      Removed value: -"Needed"
    • removedInput schema / title
      Removed value: -"funding_prepareArguments"
    • removedOutput schema / description
      Removed value: -"funding_prepare — relays deposit-address for live USDC availability + the caller's own address."
    • removedOutput schema / properties / in_band_agent_funding_live / default
      Removed value: -null
    • removedOutput schema / properties / in_band_agent_funding_live / title
      Removed value: -"In Band Agent Funding Live"
    • removedOutput schema / properties / needed / default
      Removed value: -null
    • removedOutput schema / properties / needed / title
      Removed value: -"Needed"
    • removedOutput schema / properties / note / default
      Removed value: -null
    • removedOutput schema / properties / note / title
      Removed value: -"Note"
    • removedOutput schema / properties / routes / default
      Removed value: -null
    • removedOutput schema / properties / routes / title
      Removed value: -"Routes"
    • removedOutput schema / properties / wallet_id / default
      Removed value: -null
    • removedOutput schema / properties / wallet_id / title
      Removed value: -"Wallet Id"
    • removedOutput schema / title
      Removed value: -"FundingPrepareOut"
  2. Changed1 schema field changed
    • addedInput schema / properties / needed / description
      Added value: +"The joules you are short (the shortfall from joules_deficit or a 402). Default 0."
  3. Changed3 schema fields changed
    • removedInput schema / properties / wallet_id
      Removed value: -{
      -  "title": "Wallet Id",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "wallet_id"
      -]
    • changedOutput schema / description
      Previous value: -"funding_prepare — authored by this relay; no backend."New value: +"funding_prepare — relays deposit-address for live USDC availability + the caller's own address."
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "funding_prepare — authored by this relay; no backend.",
      +  "properties": {
      +    "in_band_agent_funding_live": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "In Band Agent Funding Live"
      +    },
      +    "needed": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Needed"
      +    },
      +    "note": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Note"
      +    },
      +    "routes": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Routes"
      +    },
      +    "wallet_id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Wallet Id"
      +    }
      +  },
      +  "title": "FundingPrepareOut",
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The description adds context the annotations do not: it clarifies this is a preparation step that 'moves no money' (disambiguating from the deposit siblings) and that values are 'read from the running system' rather than cached. It also warns that the deposit must be tracked separately via funding_status, which is a real behavioral trait. Annotations already cover the read-only/destructive profile, so this is solid added value rather than a repetition.

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?

Two sentences, no filler, with the identity of the tool (the funding step) front-loaded before the non-mutation caveat. Minor cost from 'in-band' and 'joule shortfall' requiring domain familiarity, but nothing is wasted.

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 a one-parameter read tool with an output schema and read-only annotations, the description covers what it returns, that it changes nothing, and the required follow-up. The remaining gap is the relationship to the deposit/deposit_brief tools, which an agent would need to resolve on its own.

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% and the single `needed` parameter is fully documented in the schema, including its default and its origin (joules_deficit or a 402). The description body itself does not restate the parameter, so it adds nothing beyond the structured field — baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource concretely — it returns the caller's own USDC-on-Base deposit address plus the live minimum — and frames it as the preparation step for a joule shortfall. An agent can distinguish it from funding_status because the description explicitly assigns tracking to that sibling. The only drag is jargon ('in-band funding step') that requires reading the rest of the sentence to decode.

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 states the triggering condition (a joule shortfall) and hands off the follow-up to funding_status, which is clear routing. It does not explicitly exclude the neighboring deposit/deposit_brief tools, so an agent facing both 'deposit' and 'funding_prepare' still has to infer which one initiates money movement.

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.

Resources