Skip to main content
Glama
gh-search-mcp
by raystyle

search_repositories

Read-onlyIdempotent

Search public GitHub repositories by keyword and qualifiers to find projects by language, stars, topics, or update status; results are restricted to public repositories.

Instructions

Search public GitHub repositories by keyword and qualifiers. Results are always restricted to public repositories.

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

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page of results; start at 1.
sortNobest
limitNoMaximum number of results to return (1–50).
orderNodesc
queryYesSearch text with optional GitHub qualifiers, e.g. `mcp server stars:>100 language:python`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds one real fact beyond the annotations: visibility is always limited to public repositories, which explains why private/org results will never appear. It says nothing about rate limits, pagination depth, or result ordering behavior.

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?

Two short sentences, front-loaded with the action and resource. The second sentence partly repeats "public" from the first, which is mild redundancy rather than wasted structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and five parameters, the description would ideally note result ordering defaults or rate-limit constraints. It is adequate for a simple read-only search whose safety annotations and parameter schemas carry most of the burden, but it leaves the agent to discover result shape and pagination limits.

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 60%; query, page, and limit are documented in the schema, while sort and order have enums but no per-value meaning. The description's "keyword and qualifiers" reinforces the query format but adds no detail on sort/order semantics or how limit interacts with pagination, so it does not compensate for the gaps.

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?

"Search public GitHub repositories by keyword and qualifiers" names a specific verb and resource plus the input style (keyword + qualifiers). It does not differentiate from its siblings search_code or get_file_contents, so an agent must still infer when repository search beats code search.

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 verb and by the scope constraint, but there is no explicit when-to-use guidance and no mention of the sibling tools as alternatives. The agent gets no rule for choosing between search_repositories and search_code.

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

Deploy Server

Other Tools