Skip to main content
Glama

whoami

Inspect the current token's business name, token name, scoped groups, account count, and expiration date to verify what it can access.

Instructions

Returns information about the current token and what it has access to, including the business name, token name, scoped groups, account count, and expiration date.

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
errorNo
expiresAtNo
tokenNameNo
accountCountYes
businessNameNo
scopedGroupsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A3.6/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 burden. 'Returns' plus a zero-parameter schema telegraphs a safe read with no arguments, and the enumerated fields (business name, token name, scoped groups, account count, expiration date) give real substance. It does not state auth prerequisites or whether scope reflections are live versus cached, so it is not fully transparent.

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 preamble and no waste. The field list partially overlaps the output schema, which costs a small amount of redundancy but not enough to count against it.

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 introspection tool with an output schema present, the definition covers what it does and what comes back; return-value documentation is correctly left to the schema. Mention of auth expectations or common follow-up calls would be the only additions worth making.

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 schema has zero properties, which is the baseline-4 case; there are no parameters whose meaning could be ambiguous. The description correctly implies the call takes no input by describing it purely in terms of what the current token already carries.

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?

'Returns information about the current token and what it has access to' is a specific verb+resource statement that separates it from the account/group listing siblings, which enumerate resources rather than describe the caller's own token. It stops short of explicitly contrasting itself with those siblings, but the purpose is unmistakable.

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?

Usage is only implied: an agent can infer this is the natural first call to verify identity and scope before calling list_accounts or list_groups. There is no explicit when-to-use/when-not guidance or named alternative, so it lands at minimum-viable.

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

Deploy Server

Other Tools