Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub repository search

github_search_repos
Read-onlyIdempotent

Search GitHub repositories with GitHub search syntax, sort by stars, forks, help-wanted issues, or update date, and return paginated public or authorized private results.

Instructions

Search repositories by GitHub search syntax. Supports stars, forks, help-wanted-issues, and updated sorting. public_only defaults to true; pass false to include private repositories the token can see. Returns {total_count, incomplete_results, filtered_count, items[{full_name, description, private, visibility, stars, forks, language, topics, license, updated_at, created_at, pushed_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": {
      "query": "<query>"
    },
    "name": "github_search_repos"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1
sortNoSort field: stars, forks, help-wanted-issues, or updated
freshNoBypass the local cache
orderNoSort order: asc or desc
queryYesGitHub repository search syntax, like stars:>100 language:rust
per_pageNoItems per page, 1-100, default 20
public_onlyNoDrop private repositories from the results; defaults to true, pass false to include private items the token can see

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / public_only / description
      Previous value: -"Drop private repositories from the results"New value: +"Drop private repositories from the results; defaults to true, pass false to include private items the token can see"
    • changedInput schema / properties / query / description
      Previous value: -"GitHub repository search query"New value: +"GitHub repository search syntax, like stars:>100 language:rust"
    • changedInput schema / properties / sort / description
      Previous value: -"Sort field"New value: +"Sort field: stars, forks, help-wanted-issues, or updated"
  2. Changed1 schema field changedv0.2.1
    • addedInput schema / properties / public_only
      Added value: +{
      +  "description": "Drop private repositories from the results",
      +  "type": "boolean"
      +}
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real value beyond them: the default value and privacy semantics of public_only, the token's visibility scope, and the fact that results may be cache-backed. It does not mention rate limits or what 'incomplete_results' implies for the caller, which is a notable omission for a search API.

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?

Three tight sentences, front-loaded with what the tool does, then the one non-obvious default, then the return shape. The field enumeration is dense but earns its place 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 full response envelope and item fields, and it discloses the public_only default. What is missing is the meaning of incomplete_results, default sort/order behavior, and the cache semantics behind 'fresh' — modest gaps for a 7-parameter search tool.

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%, so every parameter is already documented by the schema, and the description mostly restates it (the four sort values, the public_only default). No added meaning is given for 'fresh' (cache TTL, when to bypass) or for 'order'/'page' interplay. Baseline 3 is appropriate.

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 opens with a specific verb+resource: 'Search repositories by GitHub search syntax.' The resource noun 'repositories' implicitly separates it from github_search_code, github_search_issues and github_search_users, but it never names those siblings or explicitly says how this differs from github_repos (list-a-user's-repos). Clear purpose, sibling differentiation left to inference.

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 GitHub search-syntax framing and the public_only default, but there is no explicit when-to-use / when-not-to-use guidance and no routing to github_repos or github_search_code. The one genuinely useful rule — public_only defaults to true, pass false to see private repos the token can see — is stated, which lifts it above a bare minimum.

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