Skip to main content
Glama

github_whoami

Identify which GitHub account a token belongs to. Use it to verify authenticated identity before performing read-only repository browsing tasks.

Instructions

查看当前 GitHub token 对应的账号(只读)。

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, and it does supply the key trait: 只读 (read-only), which tells the agent this call has no side effects. Beyond that it says nothing about authentication requirements, rate-limit behavior, or what identity fields come back. For a zero-parameter, non-mutating lookup this is passable but thin.

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?

A single front-loaded clause stating the resource and its read-only nature, with zero filler. Nothing could be removed without losing information.

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?

Given a no-parameter, no-annotation, no-output-schema tool, the definition covers what the tool does and that it is safe to call. A brief note on what identity information is returned or the typical precondition (a valid token) would make it fully self-sufficient, but little is missing for a call this simple.

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?

The tool takes zero parameters, so there is no parameter meaning to clarify and the baseline is 4. The description correctly adds the implicit parameter that the token itself is the input source of truth, which is slightly valuable context.

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: view the account associated with the current GitHub token, explicitly scoped to 'the current token' rather than an arbitrary user. That is distinguishable from every listed sibling, which operate on commits, files, issues, pulls, repos, and branches. It stops short of 5 because it does not explicitly contrast itself with any sibling.

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?

The usage is implied by the purpose: call it to identify which account the active token authenticates as. There is no explicit when-to-use framing (for example, verifying credentials before other GitHub calls), no when-not-to-use guidance, and no alternative named. Adequate but leaves the agent to infer the scenario.

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