Skip to main content
Glama

gpu_balance

Check GPU-Bridge credit balance, daily spending, volume discount tier, and job history for AI compute services.

Instructions

Check GPU-Bridge credit balance, daily spend, volume discount tier, and job history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'gpu_balance' tool, which fetches account balance data from the API and formats it into a text response.
          case "gpu_balance": {
            const balance = await apiCall("/account/balance", "GET");
            const vd = balance.volume_discount || {};
            let text = `Balance: $${balance.balance}
    Daily spend: $${balance.daily_spend}/$${balance.daily_limit}
    Tier: ${vd.tier} (${vd.discount_percent}% discount)`;
            if (vd.next_tier) {
              text += `
    Next tier: ${vd.next_tier.name} at $${vd.next_tier.threshold} spent (${vd.next_tier.discountPercent}% discount)`;
            }
            return { content: [{ type: "text", text }] };
          }
  • index.js:56-60 (registration)
    The definition and registration of the 'gpu_balance' tool in the tool list provided to the MCP server.
    {
      name: "gpu_balance",
      description: "Check GPU-Bridge credit balance, daily spend, volume discount tier, and job history.",
      inputSchema: { type: "object", properties: {} }
    },

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/gpu-bridge/mcp-server'

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