Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub pull request

github_pr
Read-onlyIdempotent

Read a GitHub pull request to get branches, stats, mergeability, and optional changed files with patches for review or triage.

Instructions

Read one pull request with branches, stats, mergeability, and optional changed files. Set include_files=true to fetch up to 100 files with patches. Returns PR fields {number, title, state, draft, merged, author, base, head, body, additions, deletions, changed_files, mergeable, created_at, updated_at, merged_at, html_url}; adds {files[{filename, status, additions, deletions, changes, patch}], files_truncated} when include_files is true.

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>",
      "number": "<number>"
    },
    "name": "github_pr"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository in owner/name form
freshNoBypass the local cache
numberYesPull request number
include_filesNoInclude up to 100 changed files

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered elsewhere. The description earns credit for disclosing the truncation behavior via the files_truncated field and the 100-file cap, which the agent cannot infer from the schema. It says nothing about caching (relevant given the fresh parameter) or rate-limit/auth behavior, leaving that context gap.

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 action and payload summary in the first sentence, then the include_files directive, then the field inventory. The second sentence is a dense brace-delimited field dump, but since there is no output schema it carries genuine informational weight rather than padding. Minor redundancy between 'changed files' in sentence one and the files list later.

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 compensates well by enumerating the returned PR fields and the conditional files structure including the truncation flag. For a four-parameter read-only tool with full annotation coverage, an agent has what it needs to call it and interpret the result. The remaining gap is operational context such as caching behavior for fresh and any rate-limit implications of openWorldHint.

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 description coverage is 100%, so the baseline is 3 and the schema already documents repo, number, fresh, and include_files. The description adds real meaning on top: include_files fetches files 'with patches' and results can be capped, signaled by files_truncated. It still leaves the fresh parameter's cache-bypass semantics entirely to the 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 verb and resource: 'Read one pull request with branches, stats, mergeability, and optional changed files.' The word 'one' implicitly scopes it against the listing sibling github_prs, and the enumerated facets make the payload shape concrete. It stops short of naming the sibling explicitly, so differentiation is inferred rather than stated.

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 by the single-PR framing rather than spelled out; there is no explicit 'use this instead of github_prs when...' statement and no exclusions. The one actionable directive is conditional parameter usage: 'Set include_files=true to fetch up to 100 files with patches.' That is helpful but is guidance about a flag, not about when to pick this tool over alternatives.

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