Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub labels

github_labels
Read-onlyIdempotent

Lists a GitHub repository's labels with name, color, and description, returning paginated results and optional fields so agents can inspect repository categorization.

Instructions

List repository labels with their name, color, and description. GitHub's labels endpoint does not supply issue counts, so open_issues_count and closed_issues_count stay null even with with_counts true; no extra call is made. Returns {repo, items[{name, color, description, open_issues_count, closed_issues_count}], page, per_page, has_more, next_page, meta}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>"
    },
    "name": "github_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1
repoYesRepository in owner/name form
freshNoBypass the local cache
per_pageNoItems per page, 1-100, default 30
with_countsNoGitHub's labels endpoint does not supply issue counts, so both counts stay null; no extra calls

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds real behavioral context the annotations cannot: that 'with_counts' will not populate counts and that no extra call is attempted, plus the full response envelope including pagination and meta fields. It does not mention caching behavior for the 'fresh' parameter, which is a minor gap.

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?

Two sentences, front-loaded with purpose followed by the counts caveat and return shape. The enumerated return object is somewhat dense but earns its place given there is no output schema; no filler wording.

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?

For a paginated read tool with no output schema, the description supplies the response envelope (items, page, per_page, has_more, next_page, meta) and sets expectations about null counts, which is the main ambiguity an agent would hit. Only the cache-bypass semantics of 'fresh' are left to the schema.

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%, so every parameter including 'page', 'per_page', 'repo', 'fresh', and 'with_counts' is already documented in the schema, and the description's explanation of with_counts essentially restates the schema text. Baseline 3 is appropriate; the description does not add syntax or edge-case detail beyond structured data.

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 opens with a specific verb and resource ('List repository labels') and immediately names the returned fields (name, color, description), so the agent knows exactly what this tool produces. No sibling in the catalog handles labels, so no explicit differentiation is needed, but none is offered either.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: the tool is for enumerating labels, and the prose clarifies that counts cannot be obtained through it. There is no explicit when-to-use/when-not or a pointer to an alternative path for getting issue counts beyond labels.

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