Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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) }] };
      }

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/6figr-com/job-gpt-mcp-server'

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