Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub issue and pull request search

github_search_issues
Read-onlyIdempotent

Searches GitHub issues and pull requests using search syntax to find items by repo, state, or label, returning paginated results with counts and links.

Instructions

Search issues and pull requests with GitHub search syntax, such as is:issue, is:pr, state:open, or repo:owner/name; the repo:, path:, state:, and label: qualifiers are parsed from query. A repo: query reads the repository issues endpoint with total_count null and repo_scoped true, filtering pull requests into filtered_count; sort: reactions is unsupported on that path. Free text and other qualifiers are rejected for repo: queries. For per-repository aggregate counts, use github_repo_health. Returns {total_count, incomplete_results, items[{repo, number, title, state, type, author, created_at, updated_at, html_url}], page, per_page, has_more, next_page, repo_scoped, filtered_count}.

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": {
      "query": "<query>"
    },
    "name": "github_search_issues"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1
sortNoSort field: comments, reactions, created, or updated
freshNoBypass the local cache
orderNoSort order: asc or desc
queryYesGitHub issue search query
per_pageNoItems per page, 1-100, default 20

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / order / description
      Previous value: -"Sort order"New value: +"Sort order: 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: comments, reactions, created, or updated"
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive behavior, so safety is covered; the description goes well beyond that by disclosing the dual backend: repo: queries hit the repository issues endpoint, return total_count null with repo_scoped true, and divert pull requests into filtered_count. It also flags the unsupported sort: reactions combination and the rejection of free text on that path, which are non-obvious behavioral traits an agent must know before calling.

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?

The syntax guidance and backend caveats are front-loaded before the return shape, which is the right ordering for a search tool. The trailing return-value enumeration is dense but justified since no output schema exists; a few of the listed item fields could be trimmed.

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?

For a six-parameter search tool with no output schema, this covers what is missing elsewhere: the full return envelope (total_count, incomplete_results, items shape, pagination fields, repo_scoped, filtered_count) plus the path-dependent quirks. An agent has enough to issue a correct query and interpret the response.

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 genuine meaning for the most important parameter by explaining which qualifiers (repo:, path:, state:, label:) are parsed from query and which are rejected. It also adds a semantic restriction on the sort parameter (reactions unsupported on the repo: path) that the enum alone cannot convey.

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?

The description opens with a specific verb and resource ("Search issues and pull requests") and immediately scopes it with GitHub search syntax examples. It also distinguishes itself from github_repo_health by naming that sibling for aggregate counts, so an agent can route between them without opening schemas.

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?

It gives concrete when-to-use context (GitHub search syntax qualifiers) and explicit exclusions: free text and non-parsed qualifiers are rejected for repo: queries, and sort: reactions is unsupported on that path. It also names github_repo_health as the alternative for per-repository aggregate counts. It stops short of routing against the many other search siblings (code, repos, users), but the guidance it does give is precise.

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