Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub issue

github_issue
Read-onlyIdempotent

Read one GitHub issue or pull request with labels and assignees; optionally include comments in chronological order with configurable count and body truncation.

Instructions

Read one issue, or pull request, with labels and assignees. Set include_comments=true to fetch the latest comments in chronological order; comment_limit caps how many (default 20) and max_comment_chars truncates each body. Returns issue fields {number, title, state, author, labels, assignees, body, created_at, updated_at, closed_at, comments_count, html_url}; adds {comments[{author, body, created_at}], comments_truncated} when include_comments 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_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository in owner/name form
freshNoBypass the local cache
numberYesIssue or pull request number
comment_limitNoNumber of latest comments to include, default 20
include_commentsNoInclude the latest comments
max_comment_charsNoTruncate each comment body to this many UTF-8 bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • changedInput schema / properties / max_comment_chars / description
      Previous value: -"Truncate each comment body to this many characters"New value: +"Truncate each comment body to this many UTF-8 bytes"
  2. Changed3 schema fields changedv0.2.0
    • addedInput schema / properties / comment_limit
      Added value: +{
      +  "description": "Number of latest comments to include, default 20",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / include_comments / description
      Previous value: -"Include the latest 20 comments"New value: +"Include the latest comments"
    • addedInput schema / properties / max_comment_chars
      Added value: +{
      +  "description": "Truncate each comment body to this many characters",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real behavior beyond them: comment ordering is chronological, the default cap is 20, bodies are truncated, and a comments_truncated flag signals truncation. It does not mention the local cache that the 'fresh' parameter bypasses, which is a remaining gap.

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

Conciseness5/5

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

Two sentences, front-loaded with the purpose, then optional-parameter behavior, then the exact return shape. Dense but every clause carries information an agent would otherwise have to guess.

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, enumerating the returned fields and the extra comment fields is exactly what the description should do, and it does. Minor omissions remain (cache behavior tied to 'fresh', error case for a non-existent number), but nothing essential to a correct call is missing.

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 baseline is 3; the description goes further by explaining what include_comments actually triggers, how comment_limit and max_comment_chars interact with the result, and that truncation surfaces as comments_truncated. It largely restates the schema's 'default 20' rather than adding new limits, keeping it out of the top band.

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 ('Read one issue, or pull request') and scopes it to a single item with labels and assignees, which distinguishes it from the plural listing siblings without needing to name them.

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?

Gives a clear conditional rule for the optional behavior ('Set include_comments=true to fetch the latest comments'), plus the defaults and truncation levers. It never states when to prefer a different sibling (e.g., a list or PR-specific tool), so it stops short of full alternative routing.

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