get_session_usage
Monitor your current Claude session usage to track burst limit consumption and reset timing for effective quota management.
Instructions
Get your current 5-hour session usage window — how much of your burst limit you have used and when it resets.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:41-57 (handler)Tool registration and handler for get_session_usage in src/index.ts.
server.tool( "get_session_usage", "Get your current 5-hour session usage window — how much of your burst limit you have used and when it resets.", {}, 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: formatSessionUsage(result.data) }] }; } );