get_usage
Check API usage, rate limits, and tier status to monitor calls made, remaining, and upgrade options.
Instructions
Check your current API usage, rate limits, and tier status.
Returns calls made today, calls remaining, tier, and upgrade options.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- worker/src/tools.ts:1231-1245 (handler)The implementation of the get_usage tool handler.
async function getUsage( supabase: SupabaseClient, tier: Tier, ): Promise<ToolResult> { return json({ tier, transport: "streamable-http", limits: { free: "100 calls/day", calibration: "1,000 calls/day", edge: "unlimited", }, upgrade: "Contact @TeleKashBot for tier upgrades", }); } - worker/src/tools.ts:248-249 (registration)Registration and dispatching of the get_usage tool within the main tool handler logic.
case "get_usage": return getUsage(supabase, tier); - worker/src/schema.ts:450-453 (schema)The MCP tool schema definition for get_usage.
name: "get_usage", description: `Check API usage, rate limits, and tier status.`, inputSchema: { type: "object", properties: {}, required: [] }, },