get_quota
Check API key usage quotas for read, write, and note operations with daily and monthly remaining counts.
Instructions
查询当前 API Key 的调用配额,包括 read/write/write_note 三类的日/月剩余次数。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:324-326 (handler)The handler method that performs the API request to fetch quota information.
async getQuota() { return this.request<GetQuotaResp>("GET", "/resource/rate-limit/quota"); } - src/client.ts:551-555 (schema)The interface defining the structure of the quota response.
export interface GetQuotaResp { read: QuotaBucket; write: QuotaBucket; write_note: QuotaBucket; } - src/index.ts:490-499 (registration)The MCP tool registration for 'get_quota'.
{ name: "get_quota", description: "查询当前 API Key 的调用配额,包括 read/write/write_note 三类的日/月剩余次数。", inputSchema: { type: "object" as const, properties: {}, required: [], }, },