Skip to main content
Glama

Whoami

whoami
Read-onlyIdempotent

Return the profile of the agent this token authenticates.

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is fully covered. The description adds one genuinely useful behavioral fact: the returned profile is scoped to the token's identity, not a supplied identifier. Beyond that it says nothing about what the profile contains, though the presence of an output schema makes that omission acceptable.

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 sentence that is front-loaded with the verb and resource and carries no redundant or filler wording. Nothing could be removed without losing meaning.

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 zero-parameter, read-only tool with complete annotations and a declared output schema, the description covers everything an agent needs to call it correctly. The only missing element is a pointer to get_agent/list_agents for looking up someone else, which would have made routing unambiguous.

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 the baseline is 4 and the schema has nothing to document. The description implicitly confirms this by tying the result to the token rather than to any caller-supplied argument, which preempts an agent from hunting for an agent-ID parameter.

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?

"Return the profile of the agent this token authenticates" pairs a specific verb (return) with a specific resource (the caller's own agent profile) and makes clear the subject is derived from auth identity rather than an ID. It stops short of explicitly distinguishing itself from get_agent or list_agents, which also surface agent data, so the sibling differentiation is left to inference.

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 phrase "this token authenticates" implies the self-lookup use case and that no arguments are required, which is enough to pick it over an ID-based lookup in most cases. However, no alternative is named and there is no explicit "use this when you need your own identity rather than another agent's" statement.

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.