Skip to main content
Glama
gh-mcp-server

gh-mcp-server

by leonardo-zhu

refresh_installation_token

Force-refreshes a GitHub installation access token to bypass the cache when permissions change or the current token is revoked. Optionally target an installation by ID.

Instructions

Force-refresh a GitHub installation access token, bypassing the cache. Useful when token permissions have changed or the current token has been revoked.

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

Input Schema

NameRequiredDescriptionDefault
installationIdNoOptional installation ID. If not provided, it uses the GITHUB_INSTALLATION_ID env var.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral weight. It does disclose the key trait — cache bypass and forced re-issuance — but says nothing about whether the prior token is invalidated, whether this hits GitHub API rate limits, or what authentication the caller needs.

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?

Two tight sentences: the action and mechanism first, then the motivating conditions. Nothing is padded or redundant.

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 one-optional-parameter tool with no output schema, the description covers purpose, mechanism, and triggering conditions adequately. A note on what is returned or whether the old token dies would close the remaining gap.

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 coverage is 100% and the single parameter's fallback to GITHUB_INSTALLATION_ID is already documented in the schema. The description adds no meaning beyond that, which is acceptable at this coverage level.

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?

States a specific verb and resource ('Force-refresh a GitHub installation access token') plus the defining mechanism ('bypassing the cache'). It implicitly contrasts with get_installation_token by emphasizing cache bypass, though it never names the sibling explicitly.

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 concrete triggering conditions: token permissions changed or token revoked. That is clear when-to-use guidance; what's missing is an explicit statement of when NOT to call it (i.e., use get_installation_token for normal cached retrieval).

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