Skip to main content
Glama

workflow_limit_hits

Lists provider usage-limit hits and workflow runs blocked on recovery from persisted evidence, with filters for repo, workflow, and time range. Read-only; no retries.

Instructions

Provider usage-limit hits and blocking recoveries of workflow runs, from persisted run evidence.

Read-only: nothing is retried, switched or continued. Evidence is only an attempt's failure_diagnostic with category usage_limit (headless and Codex-native attempts alike) and the run's orchestrator or worker usage-limit recovery checkpoint; node results and prose are never read. Direct callers read every run; a workflow orchestrator reads its own run and descendants verified through persisted invocation links; workers and builders are refused.

current lists runs blocked on a usage-limit recovery (at most 100), reported on the owning run even while its root is running. latest is the newest hit per (backend, requested_model, observed_model) among the newest 500 hits matching the window bound: the first of root_workflow_run_id (not supported for managed callers), workflow_id and repo that is set, plus the since (inclusive) and before (exclusive) ISO8601 range with timezone; the other filters apply inside that window and there is no pagination. At most 50 keys are returned. current_only reports only current. Each hit carries root_workflow_run_id, workflow_run_id, node_id, execution_id, attempt, task_id, transport_task_id, observed_at (when the attempt settled; observed_at_source names the field), diagnostic, reset {raw, at, state} (a numeric reset is epoch seconds; elapsed does not say the provider is available again), an accepted recovery {accepted, answer} when one answered it, and detail_ref, the get_workflow_run_detail arguments for execution:. Each attempt is its own hit: native children that share a transport report it in transport_task_id. unavailable lists up to 20 runs whose document could not be read. scan.complete is false when a cap was reached, runs are unavailable or the index is still preparing (index_state), so retry while it is preparing. 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": "workflow_limit_hits"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNo
sinceNo
beforeNo
workflow_idNo
current_onlyNo
root_workflow_run_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A4.2/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 burden and does: it declares read-only behavior explicitly ('nothing is retried, switched or continued'), enumerates access-control outcomes per caller type, states hard caps (100 current runs, 50 keys, 20 unavailable), and explains scan.complete/index_state retry semantics. Edge cases like 'a numeric reset is epoch seconds' and 'elapsed does not say the provider is available again' are exactly the kind of trap an agent would otherwise fall into.

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

Conciseness3/5

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

The purpose is front-loaded and almost every sentence carries real information, but the body is a dense wall of prose with inline pseudo-structures like 'reset {raw, at, state}' and long compound sentences that are hard to scan. It also spends a full sentence enumerating per-hit return fields (root_workflow_run_id, workflow_run_id, node_id, detail_ref...) that an output schema already covers.

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?

For a six-parameter, no-required-arg query tool with access-control branches and a partial-result mechanism, nothing material is missing: caps, refusal paths, unavailable runs, index preparation, and the detail_ref handoff to get_workflow_run_detail are all covered. Since an output schema exists, the return-field enumeration is redundant rather than needed, but it does not leave gaps.

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?

Schema coverage is 0%, so the description must carry parameter meaning, and it largely does: since is inclusive, before is exclusive, both ISO8601 with timezone; filter precedence is spelled out as 'the first of root_workflow_run_id (not supported for managed callers), workflow_id and repo that is set'; current_only is defined as reporting only current blocks. Only repo is left without any stated semantics, a minor gap for an otherwise well-explained parameter set.

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?

The opening sentence names a specific resource and scope: 'Provider usage-limit hits and blocking recoveries of workflow runs, from persisted run evidence,' and the body distinguishes the two result shapes ('current lists runs blocked...' vs 'latest is the newest hit per (backend, requested_model, observed_model)'). An agent can tell what it retrieves. It never contrasts itself with the similarly named sibling recent_limit_hits, so differentiation from the closest alternative is left to inference.

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

Usage Guidelines4/5

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

It gives substantive when-to-use context: direct callers read every run, orchestrators read only their own run and descendants, and 'workers and builders are refused,' plus 'retry while it is preparing' for the index. It also says there is no pagination and that other filters apply inside the window. It stops short of naming when NOT to use it versus other limit-hit or run-listing tools.

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