Skip to main content
Glama

Identify API Key

whoami
Read-only

Identify the calling API key: type, granted scopes, and active rate limits. Useful to validate a key or discover which tools are usable.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds value beyond that by disclosing what the call reveals (type, scopes, rate limits) and implicitly that it reports on the key rather than returning the secret material. It does not mention whether scope/rate-limit data can be stale or cached, which keeps it from a 5.

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 sentences, zero waste. What is returned is front-loaded and the usage note follows, which is the right order for an agent skimming for applicability.

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?

With no input parameters and no output schema, the description carries the burden of explaining the return payload, and it does so by listing the three reported attributes. A small gap remains around the exact shape of 'type' (key vs. account vs. credential class) and whether the key's identity includes a name or owner.

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 add and the baseline is 4. The description correctly implies a no-argument call by describing the target as 'the calling API key' rather than an identifier the agent must supply.

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 and resource ('Identify the calling API key') and enumerates the exact fields returned (type, granted scopes, active rate limits). There is no sibling catalog to disambiguate against, and an agent can tell immediately this is a self-introspection call rather than a lookup of arbitrary keys.

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?

It gives concrete use cases: 'validate a key or discover which tools are usable.' That is clear positive guidance for when to call it. It stops short of explicit when-not conditions or named alternatives, though with an empty sibling list there is nothing to route against.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources