Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub pull requests

github_prs
Read-onlyIdempotent

List and filter GitHub pull requests by state, base or head branch, sort field, and direction, returning PR summaries and pagination details.

Instructions

List pull requests with state, base, head, sort, and direction filters. Returns {items[{number, title, state, draft, author, base, head, updated_at, html_url}], page, per_page, has_more, next_page}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>"
    },
    "name": "github_prs"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoBase branch filter
headNoHead branch filter, owner:branch
pageNoPage number, starting at 1
repoYesRepository in owner/name form
sortNoSort field: created, updated, popularity, or long-running
freshNoBypass the local cache
stateNoPull request state, default open
per_pageNoItems per page, 1-100, default 20
directionNoSort direction: asc or desc

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / direction / description
      Previous value: -"Sort direction"New value: +"Sort direction: asc or desc"
    • changedInput schema / properties / per_page / description
      Previous value: -"Items per page, default 20"New value: +"Items per page, 1-100, default 20"
    • changedInput schema / properties / sort / description
      Previous value: -"Sort field"New value: +"Sort field: created, updated, popularity, or long-running"
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine value by describing the return envelope and pagination fields, but it says nothing about the local cache or the effect of the 'fresh' flag, which is the one non-obvious behavioral trait of this tool.

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?

Two sentences, front-loaded with purpose and followed by the return shape; nothing is wasted. The return signature is dense but justified because no output schema exists.

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?

With no output schema, the description correctly compensates by spelling out the response envelope (items, page, per_page, has_more, next_page) and the item fields. The only material omission is cache/'fresh' behavior, which an agent might otherwise overlook.

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 description coverage is 100% with enums on state, sort, and direction, so the schema already carries full parameter meaning. The description merely re-lists filter names (state, base, head, sort, direction) without adding format, default, or interaction details, so baseline 3 applies.

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 uses a specific verb and resource ('List pull requests') and enumerates the filter dimensions, which is enough to distinguish it from the singular sibling github_pr. It stops short of explicitly naming the alternative tool, so it lands at clear-but-not-differentiated.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus github_pr (single pull request), github_search_issues, or github_api_get. The listing intent is only implied by the verb, and no prerequisites, exclusions, or alternative routing are stated.

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