Skip to main content
Glama

Search GitHub repositories, users or trending projects

search_github
Read-only

Three GitHub discovery reads in one call: mode: repositories (default) searches public repositories by keyword, language, push window and stars/forks; mode: users searches developers and organizations by keyword, location, language and followers/repositories, returning each account's bio, company, location, website, X handle and exact counts; mode: trending reads GitHub's trending repositories page (daily, weekly or monthly, optionally by language) with stars gained in the window. Cached for thirty minutes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_github"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoWhat to search for (`repositories` and `users` modes). Omit on `trending` mode, or when filtering by `language` or `location` alone.
modeNo`repositories` (default) searches public repositories, `users` searches developers and organizations for lead discovery, and `trending` reads GitHub's trending repositories board (`github.com/trending`).
sortNoOrder: `relevance`, `stars`, `forks` or `updated` on `repositories`; `relevance`, `followers`, `repositories` or `joined` on `users`.
limitNoItems to return, 1–30. One page is one read: a smaller `limit` on the same question is served from it.
recencyNoWindow filter: `day`, `week`, `month` or `year` on `repositories` (by last push), or `day`, `week` or `month` on `trending` (`daily`, `weekly`, `monthly`).
refreshNoRead again instead of serving the half-hour cache. Charged like any read, and the fresh answer replaces the cached one.
languageNoProgramming language filter, such as `typescript`, `python` or `rust`.
locationNoLocation filter for `users` mode, such as `Brazil` or `São Paulo`.
accountTypeNoFilter `users` mode to personal accounts (`user`) or organizations (`org`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the description's job is to add operational context — and it does: a thirty-minute cache, the fact that `refresh` is charged like any read and replaces the cached entry, and that one page equals one read regardless of `limit`. It does not cover failure modes (empty keyword, invalid language) or what happens when `q` is omitted in users mode, which keeps it from a 5.

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?

Three semicolon-delimited clauses, one per mode, with the default named first and the caching note last — front-loaded and free of filler. The single paragraph is long and dense, which costs a point versus a scannable structure, but every clause carries distinct information.

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 nine optional parameters, zero required, and no output schema, the description carries the burden of explaining defaults and valid combinations, and it does so for every mode. It even sketches the users-mode return fields (bio, company, location, website, X handle, counts), but omits what repository and trending results contain, so return-shape coverage is uneven.

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; the description earns an extra point by restating cross-parameter constraints in one place — notably that `recency` means last-push windows on repositories (`day/week/month/year`) but maps to `daily/weekly/monthly` on trending, and that `q` can be omitted when filtering by `language` or `location` alone. This mode-to-parameter coupling is the main error source and is made explicit.

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 and resource and enumerates three distinct behaviors up front: `mode: repositories` (default), `mode: users`, and `mode: trending`. Each mode is described with the filters it honors (keyword, language, push window, stars/forks; location, followers, account type; daily/weekly/monthly trending), so an agent can tell exactly what each call does 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 Guidelines4/5

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

Gives clear per-mode selection guidance and names the default (`repositories`), plus the `refresh` escape hatch for stale cache. It stops short of an explicit exclusion — there is a sibling `list_trending` that overlaps with `mode: trending`, and the description never tells the agent which to prefer or when not to use this broader tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources