Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub API GET

github_api_get
Read-onlyIdempotent

Send read-only GitHub REST GET requests to api.github.com when no dedicated MCP tool covers an endpoint; requires ihaveto: true and does not support GraphQL or writes.

Instructions

Escape hatch for read-only GitHub REST GET requests that the dedicated tools do not cover. Call github_capabilities first; this tool rejects unless ihaveto: true explicitly acknowledges that no dedicated tool covers the endpoint. The host is fixed to api.github.com; GraphQL and writes are not supported. Returns {status, content_type, body, truncated, pagination, 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": {
      "path": "<path>"
    },
    "name": "github_api_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute API path, for example /repos/owner/name/readme
freshNoBypass the local cache
queryNoQuery parameters; entries override pairs already present in path
ihavetoNoExplicit acknowledgement that no dedicated tool covers this endpoint

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.1
    • addedInput schema / properties / ihaveto
      Added value: +{
      +  "default": false,
      +  "description": "Explicit acknowledgement that no dedicated tool covers this endpoint",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / fresh
      Added value: +{
      +  "description": "Bypass the local cache",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changedv0.2.1
    • changedInput schema / properties / query / additionalProperties / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "boolean"
      +]
    • changedInput schema / properties / query / description
      Previous value: -"Query string parameters"New value: +"Query parameters; entries override pairs already present in path"
  4. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the bar is lower, yet the description still adds real behavior: the call will be rejected without the ihaveto acknowledgement, the host is fixed, and non-GET/untyped APIs fail. It also discloses the response envelope including a truncated flag and pagination, which annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each doing distinct work: purpose, prerequisite/gate, constraints, return shape. Front-loaded with the escape-hatch framing and no redundant restatement of the title.

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?

Though there is no output schema, the description spells out the return envelope (status, content_type, body, truncated, pagination, meta) and the rejection behavior. Combined with full schema coverage and annotations, nothing an agent needs to invoke this correctly is missing.

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 the baseline is 3; the description earns above baseline by explaining that ihaveto is an enforced acknowledgement, not a hint, and that path is an absolute API path. It does not elaborate on fresh or on how query overrides path pairs, but the schema already documents those.

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?

The description names a specific verb (GET) and resource (GitHub REST API) and frames the tool as an "escape hatch" for endpoints the dedicated tools do not cover, which immediately distinguishes it from siblings like github_file or github_issue. It also names the exact host (api.github.com) and the return payload shape.

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

Usage Guidelines5/5

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

It gives an explicit prerequisite ("Call github_capabilities first"), states a hard selection gate ("rejects unless ihaveto: true"), and enumerates exclusions ("GraphQL and writes are not supported"). An agent knows both when to use it and when not to.

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