Skip to main content
Glama

recent_limit_hits

Lists recent provider usage-limit failures per backend and requested model from persisted task records, helping direct callers inspect limit hits without retrying or switching tasks.

Instructions

Latest provider usage-limit hit per backend and requested model, from persisted task records; direct callers only.

Read-only: nothing is retried, switched or continued. Evidence is a persisted task failure_diagnostic with category usage_limit (never provider_error or prose). There is no pagination: a query sees only the newest 500 hits that match its since, backend and model bounds, so filtering by backend (or backend and model) gives each its own newest-500 window, while an unfiltered query sees only the newest 500 overall. repo and group filter inside that window. model is the requested model; a task on the backend default has requested_model null. since is an inclusive ISO8601 timestamp with timezone. At most 50 backend/model keys are returned. scan.complete is false when older matching hits were left unexamined, the key cap was reached, or the index is still preparing (index_state), so retry while it is preparing. Each hit carries task_id, title, group, observed_at (when the task settled: finished_at, else started_at, named by observed_at_source; not necessarily when the provider rejected the request), diagnostic and reset {raw, at, state}. A numeric reset is epoch seconds. reset.state is future, elapsed or unknown; elapsed only says the stated time has passed and does not say the provider is available again. See docs/usage-limits.md.

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": "recent_limit_hits"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNo
groupNo
modelNo
sinceNo
backendNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so thoroughly: read-only with nothing retried or switched, evidence restricted to failure_diagnostic with category usage_limit, the newest-500 window, a 50-key cap, scan.complete semantics including index preparation, and the caveat that observed_at is settlement time rather than rejection time.

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

Conciseness4/5

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

Front-loaded with the core purpose, then layered detail in short clauses with no filler sentences. It is dense and fairly long, but nearly every sentence carries operational weight; only the trailing docs pointer is marginal.

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

Completeness5/5

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

Complete for a high-complexity query tool: window semantics, caps, index state, reset states, and timestamp provenance are all addressed, and the presence of an output schema means return-shape explanation is not required even though key fields are described anyway.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate and does: since is an inclusive ISO8601 timestamp with timezone, model is the requested model with null on backend default, backend/model define the outer window while repo and group filter inside it. All five parameters gain meaning absent from the bare schema.

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

Purpose4/5

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

States a specific resource and scope: "Latest provider usage-limit hit per backend and requested model, from persisted task records; direct callers only." This lets an agent tell it apart from the workflow-oriented sibling, though the sibling is never named explicitly and the differentiation rests on the phrase "direct callers only".

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

Usage Guidelines3/5

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

Provides real operational guidance — how filtering by backend/model creates separate newest-500 windows, and to retry while index_state is preparing — but never states when to choose this tool over workflow_limit_hits or any other alternative. Usage is implied by scope rather than contrasted against siblings.

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