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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:189-200 (handler)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: {} } },