Skip to main content
Glama

whoami

Read-only

Displays the signed-in ErgoHub user's username, role, approval state, and token expiry to verify identity and session status before acting.

Instructions

[ANY ROLE] Show the signed-in ErgoHub user: username, role, approval state and token expiry.

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 observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safe local-read profile is covered. The description adds the returned field set and, via "token expiry", hints that caller identity/session validity is part of the answer, but with an output schema present this is mostly a restatement of the response rather than new behavioral context.

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 plus a bracketed role tag, with the identity check front-loaded and the returned fields enumerated compactly. Nothing is padded or repeated.

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 no-argument, read-only identity tool with an output schema and full annotation coverage, this is nearly sufficient — the agent knows what it returns and that it is safe and local. The one omission is whether calling it has any side effect or dependency on approval state, which the phrase "approval state" only hints at.

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; there are no argument semantics to explain. The description correctly implies no input is needed by framing the answer entirely around the caller.

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?

"Show the signed-in ErgoHub user" gives a concrete verb plus a precisely scoped resource, and the colon-list (username, role, approval state, token expiry) tells the agent exactly what comes back. It is distinguishable from siblings like list_users because "signed-in" limits it to the caller, but that differentiation is implicit rather than stated.

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 "[ANY ROLE]" prefix usefully signals the tool is callable regardless of the caller's role, which is a real access hint. However, there is no explicit statement of when to call it (e.g. before role-dependent actions) and no named alternative or condition such as "use list_users to inspect other accounts".

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