Skip to main content
Glama

check_balance

Monitor API quota usage and verify tier status for NWO Robotics server operations.

Instructions

Check API quota usage and tier status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the checkBalance handler.
    async checkBalance() {
      const response = await axios.get(
        `${API_BASE}/api-agent-balance.php`,
        {
          headers: {
            'X-API-Key': API_KEY,
            'X-Agent-ID': AGENT_ID,
          },
        }
      );
      
      const data = response.data;
      return {
        content: [
          {
            type: 'text',
            text: `Tier: ${data.agent.tier}\n` +
                  `Quota Used: ${data.quota.used_this_month}\n` +
                  `Remaining: ${data.quota.remaining}\n` +
                  `Expires: ${data.subscription.expires_at || 'N/A'}`,
          },
        ],
      };
    }
  • server.js:116-122 (registration)
    Registration of the check_balance tool in ListToolsRequestSchema.
      name: 'check_balance',
      description: 'Check API quota usage and tier status',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },

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/RedCiprianPater/mcp-server-robotics'

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