get_usage
Check your API usage details including calls made, limits, and current subscription tier for monitoring your account activity.
Instructions
Check your FundzWatch API usage: calls made, limits, current tier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:312-321 (handler)The handler logic for the "get_usage" tool, which fetches API usage data via a GET request and formats the response.
case "get_usage": { const data = await apiRequest("GET", "/usage"); const text = `FundzWatch Usage (${data.current_period}):\n\n` + `Tier: ${data.tier}\n` + `API Calls: ${data.api_calls_used} / ${data.limits.api_calls_monthly}\n` + `AI Score Calls: ${data.ai_score_calls_used} / ${data.limits.ai_score_calls_monthly}\n` + (data.last_api_call ? `Last API Call: ${data.last_api_call}` : ""); return textResult(text); } - src/index.ts:163-166 (registration)Registration of the "get_usage" tool in the list of available tools.
name: "get_usage", description: "Check your FundzWatch API usage: calls made, limits, current tier.", inputSchema: { type: "object" as const, properties: {} }, },