Skip to main content
Glama

github_search

Read-onlyIdempotent

Search GitHub repositories, code, issues, commits, and topics; returns stars, forks, descriptions, and links so you can identify and read relevant results.

Instructions

Search GitHub repositories, code, issues, commits, or topics. Returns stars, forks, descriptions and links. Read a result with github_read.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoRepos: 'stars', 'forks', 'updated', 'help-wanted-issues'; issues: 'comments', 'reactions', 'updated'
typeNo'repositories' (default), 'issues', 'code', 'commits', 'topics'repositories
orderNo'desc' (default) or 'asc'
queryYesGitHub search query — same syntax as github.com/search (e.g. 'mcp server language:typescript stars:>100')
perPageNoResults per page (max 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive) and open-world scope, so the description is not obligated to restate them. It adds genuinely new context by listing the return fields (stars, forks, descriptions, links) in the absence of an output schema, and it points to the companion read tool. It stops short of mentioning GitHub search rate-limit/auth constraints, which would be valuable for a networked search call.

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 short sentences, front-loaded with the core action, then return shape, then the natural next step. Nothing is padded or redundant.

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?

For a 5-param, no-output-schema search tool, the description covers purpose, result shape, and the follow-up tool, which is close to sufficient. It leaves out pagination/result-cap behavior and authentication or rate-limit expectations that would affect how an agent sequences large searches.

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% and two params carry enums, so query syntax, sort values, and perPage max are already fully documented in the schema. The description adds no parameter-level meaning (e.g., result caps, cross-field interactions between type and sort), so the baseline 3 applies.

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 ("Search") plus the exact resource domain (GitHub repositories, code, issues, commits, topics), which distinguishes it immediately from the web_search siblings. The agent knows exactly what universe is being queried without opening the schema.

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 "Search GitHub ..." and the follow-up routing "Read a result with github_read" tells the agent what to do next. However, it never states when to prefer this over web_search/web_search_exa for general web queries, nor any when-not conditions.

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