check_rate_status
Monitor Claude API usage to prevent rate limiting by checking current status and receiving actionable guidance.
Instructions
Check if you are close to being rate limited. Returns a clear status: LOW, MODERATE, or HIGH usage with actionable advice.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:77-93 (handler)Registration and handler implementation for the check_rate_status tool.
server.tool( "check_rate_status", "Check if you are close to being rate limited. Returns a clear status: LOW, MODERATE, or HIGH usage with actionable advice.", {}, async () => { const result = await fetchUsage(); if (!result.data) { return { content: [{ type: "text", text: result.error ?? "Failed to fetch usage data." }], isError: true, }; } return { content: [{ type: "text", text: formatRateStatus(result.data) }] }; } );