get_credits
Check your current credit balance, monthly spending cap, and usage details for the account.
Instructions
Get current credit balance, monthly spending cap, and usage for the account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/setup.ts:95-103 (handler)Tool registration and handler definition for 'get_credits' in the MCP tools setup.
{ name: 'get_credits', description: 'Get current credit balance, monthly spending cap, and usage for the account.', inputSchema: { type: 'object' as const, properties: {} }, handler: async () => { const result = await client.getCredits(); return JSON.stringify(result, null, 2); }, - src/api-client.ts:127-129 (helper)The underlying API client method that performs the network request for credit information.
async getCredits() { return this.request('GET', '/api/billing/credits'); }