Skip to main content
Glama

List agent runs

list_agent_runs
Read-only

Lists agent runs of the issues the caller can read, oldest first, up to 50 per page - check hasNextPage for more. A runner polls state 'Ready' with excludeBlocked=true and takes the first run it can claim. Each run has its id, the issue (key, title, url), state (Ready, Working, Done, Failed or Cancelled), isBlocked (an issue blocking it isn't Completed yet - see get_issue's links), who handed it off and when, the API key that claimed it, and when it finished and why it failed.

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

Input Schema

NameRequiredDescriptionDefault
pageNoZero-based page number - pass the previous result's page + 1 for the next page. Omit for the first page.
countNoMax runs per page, 1-50. Omit for the default of 50.
stateNoOnly runs in this state. Omit to include every state.
spaceKeyNoOnly runs of issues in this space (e.g. 'BRD'), from list_spaces. Omit to include every space.
assigneeIdsNoOnly runs of issues assigned to one of these user ids, from list_members or get_me - e.g. a runner passes its own user id to take only its owner's issues. Omit to include every assignee.
excludeBlockedNoPass true to leave out runs of blocked issues - an issue is blocked while an issue that blocks it is in Created, InProgress or Review; only Completed releases it. Blockers you can't read don't count. A runner should pass true: a blocked run can't be claimed. Omit to include them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real value beyond that: oldest-first ordering, a hard 50-per-page cap, the hasNextPage signal, permission-scoped visibility, and the meaning of isBlocked. It stops short of rate limits or pagination depth, so it is good but not exhaustive.

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?

Purpose, ordering, and paging are front-loaded in the first sentence before any field detail. The closing sentence is a long run-on enumerating every returned field, which is dense but justified since there is no output schema.

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?

With six optional parameters, no output schema, and read-only annotations, the description covers everything an agent needs: scope, ordering, page size, the next-page signal, the runner polling pattern, and a full inventory of returned fields including failure reasons.

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 100%, so the baseline is 3, but the description adds the interplay the schema documents only piecewise: that a runner should combine state='Ready' with excludeBlocked=true, why blocked runs can't be claimed, and which states exist. The assignee-id use case (a runner passing its owner's id) is also reflected.

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?

States a specific verb and resource plus the access scope ('agent runs of the issues the caller can read'), the ordering ('oldest first'), and the page cap ('up to 50 per page'), which separates it cleanly from the mutation siblings like create_agent_run and claim_agent_run.

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?

Gives a concrete operating recipe: 'A runner polls state Ready with excludeBlocked=true and takes the first run it can claim,' plus the pagination instruction to check hasNextPage and a cross-reference to get_issue's links for blocker detail. An agent knows both when to call this and how to parameterize it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.