Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub rate limit

github_rate_limit
Read-onlyIdempotent

Check authenticated or anonymous GitHub API quota and reset times, optionally for a single resource bucket or all buckets, to diagnose 403 and 429 rate-limit responses before retrying.

Instructions

Report the authenticated or anonymous GitHub API quota and reset times. Set resource to project a single bucket such as core or search. Call this first when a request is refused with 403 or 429. Returns {auth, resources keyed by bucket with {limit, remaining, reset, used}}; defaults to core and search; pass all: true for every bucket; adds authenticated_as and scopes when the identity opt-in is on.

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_rate_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoReturn every quota bucket; the default projects core and search only
resourceNoLimit the projection to one resource bucket, e.g. core or search

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / all
      Added value: +{
      +  "description": "Return every quota bucket; the default projects core and search only",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / resource
      Added value: +{
      +  "description": "Limit the projection to one resource bucket, e.g. core or search",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent safety, and the description goes well beyond them: it states default projection (core and search), the all:true override, the exact return shape, and that authenticated_as/scopes appear only when the identity opt-in is enabled. That is real behavioral context an agent cannot get from annotations.

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 with purpose and the diagnostic trigger, then defaults, then return shape. The semicolon-chained clauses make it dense and slightly run-on, but every sentence carries information.

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?

For a two-optional-parameter read tool with no output schema, the description supplies the trigger condition, defaults, override, and inline return shape. Nothing an agent needs to call it correctly is absent.

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% and both params are documented there, but the description adds the default behavior ('defaults to core and search') and the semantics of all:true versus resource, which the schema alone does not establish. Useful marginal value over baseline 3.

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 ('Report the ... GitHub API quota and reset times'), and the auth/anonymous distinction plus bucket projection makes it unmistakable against any sibling tool, none of which deal with quotas.

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 an explicit trigger: 'Call this first when a request is refused with 403 or 429.' It doesn't name exclusions or alternatives, but no sibling offers comparable rate-limit data, so the missing piece is minor rather than harmful.

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