Skip to main content
Glama

GitHub 仓库搜索

github_search
Read-onlyIdempotent

搜索 GitHub 开源仓库(按 Star/更新时间排序),返回仓库简介、语言、Star/Fork 数与链接。用于查找开源项目、代码库或比较类库流行度。Example: {"query":"mcp server","sort":"stars","per_page":5}

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sort": "stars",
      "query": "mcp server",
      "per_page": 5
    },
    "name": "github_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo排序:stars/forks/updated,默认 starsstars
queryYes搜索关键词,如 "mcp server"
per_pageNo返回条数 1-10,默认 5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"搜索关键词,如 \"mcp server\"、\"weather api\"、\"language:python fastapi\""New value: +"搜索关键词,如 \"mcp server\""
    • changedInput schema / properties / sort / description
      Previous value: -"排序字段:stars / forks / updated,默认 stars"New value: +"排序:stars/forks/updated,默认 stars"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds value beyond them by disclosing what is returned (summary, language, star/fork counts, link) and that results are sortable by stars/updated. It omits GitHub API rate-limit behavior, which is a real operational concern for a remote search.

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?

It is compact and front-loaded: purpose first, then use case, then a concrete example. The example largely duplicates the schema's examples array, so a small amount of space is not earning its place.

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 usefully enumerates return fields, and the three parameters are fully covered by the schema. What is missing for a tool wrapping a remote API is rate-limit/error behavior and whether results are paginated, which keeps it from a 5.

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 of query, sort and per_page documented in the schema, so the baseline is 3. The description's example restates schema examples rather than adding new meaning about query syntax, sort tie-breaking, or how per_page interacts with paging.

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 gives a specific verb+resource ("搜索 GitHub 开源仓库") and goes further to describe sorting options and the returned fields (简介、语言、Star/Fork 数、链接). It is distinguishable from hacker_news_search and stackoverflow_search by resource, but it never names those siblings or explicitly contrasts with web_fetch.

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?

It states a clear context for use: finding open source projects, code libraries, or comparing library popularity. There are no explicit when-not conditions or named alternatives, which keeps it just short of a 5.

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.