Skip to main content
Glama

get_rate_limits

Check per-account rate-limit state, including locks and reset windows, before bulk jobs or after rate-limit errors to plan how many accounts can absorb work.

Instructions

Per-account rate-limit state: locks, last use, last X rate-limit headers.

Call before a bulk job to decide how many accounts can absorb it, and after a kind: rate_limit error to see when the window resets.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_rate_limits"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.6

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description still conveys that this is a state-read covering locks and headers, and that it applies per account. It does not clarify whether the result spans all managed accounts or just the authenticated one, nor whether reads are cached or themselves rate-limited — the main remaining behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: the first front-loads what the tool returns, the second states when to call it. No filler, no restatement of the name, and every clause carries actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no parameters and an existing output schema, the description only needs to say what the tool is and when to reach for it, which it does. The residual gap is the account-scoping question, which an agent might need answered before calling in a multi-account setup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline is high. The phrase 'per-account' is the only semantic nuance, and the absence of an account parameter leaves that scoping implicit rather than clarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact resource ('Per-account rate-limit state') and enumerates its contents (locks, last use, last X rate-limit headers). It is a specific noun phrase that an agent can map directly onto a read operation, with no ambiguity against siblings like get_account_settings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives two explicit trigger conditions: before a bulk job to size how many accounts can absorb it, and after a `kind: rate_limit` error to find the window reset. That is concrete when-to-use guidance tied to observable events rather than a generic suggestion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools