Skip to main content
Glama
botwallet-co

BotWallet MCP Server

botwallet_can_i_afford

Check if you have sufficient balance for a payment by showing fees, total cost, and remaining balance, and identify approval requirements before proceeding.

Instructions

Pre-flight check before paying. Shows the fee, total cost, and your balance after payment. Also warns if the payment requires owner approval or exceeds limits. Always call this before botwallet_pay if unsure about your balance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesRecipient username
amountYesAmount in USD

Implementation Reference

  • The handler for botwallet_can_i_afford which executes the affordability check via the SDK.
    async handler(args, ctx) {
      try {
        const { to, amount } = args as { to: string; amount: number };
        const result = await ctx.sdk.canIAfford({ to, amount });
        return formatResult(result);
      } catch (e) {
        return formatToolError(e);
      }
    },
  • Input schema definition for botwallet_can_i_afford.
    inputSchema: z.object({
      to: UsernameSchema.describe('Recipient username'),
      amount: AmountSchema.describe('Amount in USD'),
    }),
  • Tool registration for botwallet_can_i_afford inside the spendingTools array.
    canIAfford,
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing multiple behavioral aspects: it's a check (not an execution), shows fee/cost/balance calculations, warns about approval requirements, and warns about limit exceedances. It doesn't mention error conditions or response format details.

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?

Two sentences with zero waste. First sentence explains what the tool does and its outputs. Second sentence provides crucial usage guidance. Every word serves a clear purpose.

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 2-parameter tool with no annotations and no output schema, the description provides excellent context about what the tool does and when to use it. It could be slightly more complete by mentioning what happens with invalid inputs or the exact format of warnings, but it's very strong overall.

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 description coverage is 100%, so the schema already documents both parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema, maintaining the baseline score of 3.

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 clearly states the tool's purpose as a 'pre-flight check before paying' that shows fee, total cost, balance after payment, and warns about approval requirements or limit exceedances. It specifically distinguishes from sibling 'botwallet_pay' by positioning itself as a prerequisite check.

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?

Explicitly states 'Always call this before botwallet_pay if unsure about your balance,' providing clear when-to-use guidance and naming the specific alternative tool. It establishes a clear workflow relationship between these two tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/botwallet-co/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server