Skip to main content
Glama
gh-mcp-server

gh-mcp-server

by leonardo-zhu

get_installation_token

Obtains a short-lived GitHub installation access token using GitHub App credentials, optionally for a specified installation ID.

Instructions

Get a GitHub installation access token using the GitHub App's credentials.

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": "get_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

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one meaningful behavioral fact — that GitHub App credentials are required — but says nothing about token lifetime, whether a new token is minted on each call, caching, or any rate limits on token issuance.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though so terse that it omits several things an agent would benefit from knowing.

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-parameter, zero-required tool with full schema coverage and no output schema, the description is largely sufficient to invoke it correctly. The missing guidance about the sibling refresh tool is the main gap, but it does not block a correct call.

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 description already explains the GITHUB_INSTALLATION_ID fallback, so the description adds no meaning beyond the schema. With one well-documented optional parameter, the baseline of 3 applies.

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 names a specific verb and resource ('Get a GitHub installation access token') and adds the mechanism ('using the GitHub App's credentials'), so the agent knows exactly what is produced. It stops short of differentiating from the sibling refresh_installation_token, so a 4 rather than a 5.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus refresh_installation_token, nor any preconditions such as whether an existing token should be reused first. Usage must be inferred entirely from the name.

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