get_usage
Check your API usage quota for the current billing month to monitor document conversion limits.
Instructions
Check your API usage quota for the current billing month
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:320-327 (handler)The handler function for the get_usage tool which makes a GET request to /v1/usage.
async () => { try { const result = await client.request("GET", "/v1/usage"); return jsonResult(result); } catch (err) { return errorResult(err); } }, - src/tools.ts:309-328 (registration)The registration of the get_usage tool within the MCP server instance.
server.tool( "get_usage", "Check your API usage quota for the current billing month", {}, { title: "Get API Usage", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true, }, async () => { try { const result = await client.request("GET", "/v1/usage"); return jsonResult(result); } catch (err) { return errorResult(err); } }, );