PulseAugur
EN
LIVE 04:25:05

GitHub API sorting behavior differs from tool documentation

A developer discovered that the `list_repos` function in their `my-git-manager` tool, which interacts with GitHub, does not behave as documented for certain sorting options. Specifically, when requesting repositories sorted by 'stars' or 'forks', the function defaults to fetching 100 repositories from GitHub's API, even if a smaller limit is specified. This occurs because GitHub's API only server-side sorts by 'created', 'updated', 'pushed', or 'full_name', requiring client-side sorting for 'stars' and 'forks'. The developer demonstrated this discrepancy through code examples, highlighting that the function returns the requested number of repositories but makes a much larger API call behind the scenes, which is not apparent to the user. AI

RANK_REASON Developer discovers a functional discrepancy in a personal tool's interaction with a platform API.

Read on dev.to — MCP tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

GitHub API sorting behavior differs from tool documentation

How we ranked this

Signal score
6 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
Developer discovers a functional discrepancy in a personal tool's interaction with a platform API.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
Low
Off-topic or adjacent — cluster remains reachable but doesn't surface in AI-industry rankings.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — MCP tag TIER_1 English(EN) · Enjoy Kumawat ·

    "list_repos(limit=1, sort=\"stars\") Still Downloads 100 Repos From GitHub"

    <p>I run a small MCP server for my own GitHub and DEV.to presence (<code>my-git-manager</code>, a FastMCP server with eight tools). One of them, <code>list_repos</code>, has a docstring that reads: "List public repos. sort: updated|created|pushed|full_name|stars|forks. limit: 1-1…