Skip to main content
Glama

List agent PRs

list_agent_prs
Read-onlyIdempotent

Lists the open or recently merged pull and merge requests an agent created, helping you review delegated coding work and track completed changes.

Instructions

Pull/merge requests the agent opened: open ones, or recently merged.

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_prs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMerged PRs to return
stateNoDefault open

Output Schema

NameRequiredDescriptionDefault
prsNo
messageNo
errorCodeNoSet on failure: stable error code
nextStepsNoSet on failure: steps to run next (`command` runs on the worker host)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered by structured data. The description contributes the scoping fact that results are limited to PRs the agent itself opened, which is genuinely useful. However, it leaves 'recently merged' undefined and says nothing about the 500-item cap or whether results are paginated, so added behavioral context is thin.

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?

A single compact sentence with the resource front-loaded and the scope qualifiers immediately after; no filler or restatement of the title. It is efficient, though the brevity is close to the point of under-specification rather than optimal density.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and annotations carry the safety profile. The remaining gaps are the undefined 'recently merged' window and the unmentioned result cap, both of which matter for an agent deciding whether one call is enough. Adequate but not fully complete for a listing tool with a bounded limit.

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

Parameters3/5

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

Schema coverage is 100%, with both `state` (enum open/merged) and `limit` documented in the schema, so the baseline is 3. The description reinforces the default of open and hints that `limit` relates to the merged case, but it does not resolve the schema's ambiguous wording that `limit` is 'Merged PRs to return' — whether it also caps open results is left unclear.

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 description states a specific resource (pull/merge requests) with a clear scope qualifier: only those the agent opened, and only open or recently merged. That is far more precise than a bare 'list PRs'. It does not name a sibling to differentiate from, but no sibling in the catalog appears to overlap, so the gap is minor.

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?

Usage is implied rather than stated: the agent can infer it should call this to see its own open PRs or check recently merged work, and the default of 'open' is signaled. There is no explicit when-not guidance, no statement of what 'recently merged' means in time terms, and no named alternative for querying other users' PRs or older merged history.

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