Skip to main content
Glama

Groundsocial

Trending GitHub repositories

github_trending_repositories
Read-onlyIdempotent

Trending GitHub repositories today, this week or this month, by language.

github.com/trending: the repositories gaining the most stars today, this week or this month, optionally for one programming language and one spoken language (spoken_language_code, e.g. en, zh). Each with stars, forks, stars in the period and a few top contributors.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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

Input Schema

NameRequiredDescriptionDefault
sinceNodaily (default), weekly or monthly.
languageNoProgramming language, as in github.com/trending/<language> (python, typescript, c++).
spoken_language_codeNoSpoken language of the README (ISO 639-1, e.g. en).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, openWorld and non-destructive, but the description adds material context they don't: cost of 1 credit per call, automatic refund on failure, public-data-only scope, and what the payload contains (stars, forks, period stars, top contributors, cost_credits, credits_remaining). It doesn't mention pagination or result limits, but that is a minor omission.

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?

Front-loaded and compact: the headline, the enum options, and the return contents all arrive early, with cost and safety last. The second paragraph ('github.com/trending: the repositories gaining the most stars…') partly restates the opening sentence, which is the only real waste.

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

Completeness5/5

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

No output schema exists, so the description carries the burden of describing returns — it does so by listing stars, forks, period stars, contributors, and the credit fields. Combined with cost and safety disclosure, an agent has everything needed to invoke it correctly.

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 baseline is 3; the description adds value by clarifying that only one programming language and one spoken language may be supplied and by giving spoken-language examples (en, zh) that go beyond the schema's single 'en' example. It provides no format detail beyond what the schema already encodes for `since`.

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 — repositories gaining the most stars on github.com/trending — with explicit scope (daily/weekly/monthly, one programming language, optional spoken language). The resource is unambiguously repositories rather than users, which is the relevant distinction against the developers-oriented sibling.

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 usage context: it mirrors the github.com/trending page and accepts one programming language plus an optional spoken language. It does not name any alternative tool or state when-not to use it (e.g. for a specific repo, use the repo tools), so it stops short of full routing guidance.

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.