Skip to main content
Glama
GitHub MCP Server

GitHub MCP Server

search_repositories

Search GitHub repositories using query filters such as language and stars, then sort and paginate results to locate relevant projects.

Instructions

Search for repositories on GitHub

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
sortNoSort by: stars, forks, updated
queryYesSearch query (e.g., "language:typescript stars:>1000")
per_pageNoResults per page (max 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden of behavioral disclosure and largely drops it. It says nothing about GitHub's search rate limits, result pagination, ordering behavior when sort is omitted, or what a result record contains — all material facts for a search endpoint with no output schema.

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?

A single sentence with zero filler and the resource stated up front. Its brevity is efficient rather than padded, though it is arguably undersized for a tool with known search-API quirks.

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

Completeness2/5

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

With no annotations, no output schema, and no notes on rate limits, pagination, or authentication, the definition is thin relative to a GitHub search endpoint's real behavior. The rich schema compensates for parameter gaps but not for operational context.

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%, with each parameter documented including a query syntax example and per_page max, so the schema already does the work. The description adds no parameter meaning beyond that, which is consistent with the baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Search for repositories on GitHub" adds only the domain to what the name search_repositories already says; it does nothing to distinguish this from siblings like list_user_repos or get_repository. An agent knows it's a repository search but not what scope of repository corpus it covers (all of GitHub vs. the authenticated user's context).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of when to prefer this over list_user_repos or get_repository, and no stated prerequisites such as authentication. The agent must infer selection purely from the tool name.

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