vocea_get_credits
Retrieve the current credit balance for the authenticated user. Check available credits to manage usage on the Vocea platform.
Instructions
Get the current credit balance for the authenticated user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:86-89 (registration)Tool registration with name, description and empty input schema.
name: "vocea_get_credits", description: "Get the current credit balance for the authenticated user.", inputSchema: { type: "object", properties: {} }, }, - src/index.ts:88-89 (schema)Input schema for vocea_get_credits - no inputs required.
inputSchema: { type: "object", properties: {} }, }, - src/index.ts:161-166 (handler)Handler that calls vocea.users.credits() and returns the credit balance as JSON.
case "vocea_get_credits": { const bal = await vocea.users.credits(); return { content: [{ type: "text", text: JSON.stringify(bal) }], }; }