Skip to main content
Glama

whoami

Read-onlyIdempotent

Returns the organisation, the member this key speaks as, its scopes, its capability flags, and, for an agent key, its budget and expiry. Call this first: a key resolves to a member and cannot exceed what that member can do, so this tells you your real ceiling before you plan anything.

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.5/5.0
Behavior4/5

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

The annotations already state that this is a read-only, idempotent, non-destructive call. The description adds important semantics that the annotations do not cover: the key resolves to a member and cannot exceed that member's permissions, so the results define a permission ceiling; an agent key also gets budget and expiry information. With no output schema, explaining these return values is genuinely useful. The definition still says nothing about invalid or revoked keys, which is a minor gap.

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, front-loaded with what is returned, followed by when to call it and why. Every clause adds information: return fields, key-to-member resolution, the permission ceiling, and agent-key budget/expiry. There is no filler.

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?

With no parameters and no output schema, the description must describe the return values itself, and it does so thoroughly, including the agent-key-specific case. Combined with the strong 'call this first' positioning, an agent has everything it needs to decide when to invoke the tool and how to interpret the result.

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 has zero parameters, so the baseline is 4. The description correctly implies that no input is needed: the credential itself supplies all context. There is nothing to add beyond the empty schema.

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 uses a concrete verb and enumerates the exact fields returned: organisation, the member the key speaks as, its scopes, capability flags, and budget/expiry for agent keys. This distinguishes it cleanly from siblings such as organization_get, member_list, and auth_get, because it identifies the calling credential rather than looking up arbitrary resources.

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?

"Call this first" gives explicit, actionable timing, and "tells you your real ceiling before you plan anything" explains why. It stops short of naming a specific alternative or exclusion (for example, when to use auth_get instead), so it falls just below a 5.

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