QMetry: Fetch API Call Quota
qmetry_fetch_api_call_quotaFetch QMetry API call limits, consumed and remaining calls, and reset times to check quota before large batches or diagnose rate-limit errors.
Instructions
Fetch the hourly and daily QMetry Open API call limits, calls consumed, calls remaining, and reset times
Toolset: Projects
Parameters:
projectKey (string): Project key - unique identifier for the project (default: "default")
Output Description: JSON object: limitEnabled (boolean), hourly and daily objects each with limit, consumed, remaining (numbers) and resetsAt (UTC timestamp), and serverTime (UTC timestamp)
Use Cases: 1. Check how many API calls remain before running a large batch of operations 2. Diagnose rate-limit or quota-exceeded errors returned by other QMetry tools 3. Find out when the hourly or daily quota will reset 4. Confirm whether API call limits are enabled for the instance
Examples:
Check the current API call quota
{}Expected Output: limitEnabled flag, hourly and daily { limit, consumed, remaining, resetsAt }, and serverTime
Hints: 1. No parameters are needed — the quota belongs to the account/API key, not to a project 2. Calling this tool is free: it does not consume hourly or daily quota 3. If limitEnabled is false, no API call limits are enforced and the counts are informational only 4. resetsAt and serverTime are UTC ISO-8601 timestamps — compare resetsAt with serverTime, not with local time, to compute time until reset 5. Before a large batch of create/update/link calls, check hourly.remaining and daily.remaining and warn the user if the batch would exceed them 6. If another QMetry tool fails with a rate-limit or quota error, call this tool to report remaining calls and the reset time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectKey | No | Project key - unique identifier for the project | default |