get_credits
Check your current credit balance and usage details for job search and application features.
Instructions
Get your current credit balance and usage information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/job-hunts.ts:6-20 (handler)The registration and handler implementation for the 'get_credits' tool in src/tools/job-hunts.ts. It calls the 'client.getCredits()' method to fetch credit information.
server.tool( 'get_credits', 'Get your current credit balance and usage information', {}, async () => { const result = await client.getCredits(); const response = { credits: result.autoApplyQuota, creditsRemaining: result.autoApplyQuotaRemaining, message: result.autoApplyQuotaRemaining > 0 ? `You have ${result.autoApplyQuotaRemaining} credits available for auto-apply and other operations.` : 'You have no credits remaining. Purchase credits to continue: https://6figr.com/jobgpt?addCreditsPopup=true', }; return { content: [{ type: 'text' as const, text: JSON.stringify(response, null, 2) }] }; }