Skip to main content
Glama

Who am I

whoami
Read-onlyIdempotent

Identify the account and organization authorized by the current credentials.

    Returns ``auth_kind``, ``organization_id``, ``user_id``, ``email`` and ``name``.
    Shared operator credentials have ``auth_kind="shared"`` with null user details.
    The response identifies the current actor, not a message recipient.

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
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  2. Changed3 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "description": "Who the caller is — the answer ``GET /whoami`` gives.\n\n``user_id``/``email``/``name`` are ``None`` for shared-key\n(``HAIL_API_KEY``) callers: that key carries no human identity. An\nagent that wants to put the operator's address in ``Reply-To`` reads\n``email`` and skips the header when it is ``None``.",
      +    "properties": {
      +      "auth_kind": {
      +        "description": "How the caller authenticated: 'apikey' (org API key), 'jwt' (logged-in user session), or 'shared' (the shared HAIL_API_KEY, which carries no human identity).",
      +        "enum": [
      +          "apikey",
      +          "jwt",
      +          "shared"
      +        ],
      +        "title": "Auth Kind",
      +        "type": "string"
      +      },
      +      "email": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The authenticated user's email. Null for 'shared' callers.",
      +        "title": "Email"
      +      },
      +      "name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The authenticated user's display name. Null for 'shared' callers.",
      +        "title": "Name"
      +      },
      +      "organization_id": {
      +        "description": "Organization the caller belongs to.",
      +        "format": "uuid",
      +        "title": "Organization Id",
      +        "type": "string"
      +      },
      +      "superadmin": {
      +        "default": false,
      +        "description": "True for a Hail staff console session acting on this organization.",
      +        "title": "Superadmin",
      +        "type": "boolean"
      +      },
      +      "user_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The authenticated user's id. Null for 'shared' callers.",
      +        "title": "User Id"
      +      }
      +    },
      +    "required": [
      +      "auth_kind",
      +      "organization_id",
      +      "user_id",
      +      "email",
      +      "name",
      +      "superadmin"
      +    ],
      +    "title": "WhoamiResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"whoami_toolDictOutput"
  3. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds genuinely non-schema information: shared operator credentials yield auth_kind="shared" with null user details, which warns the agent to expect nulls rather than treat them as a failure. The field enumeration is partly redundant with the output schema, keeping this 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short, front-loaded sentences with the purpose stated first and the misuse warning last. The middle sentence enumerating return fields duplicates the output schema and is the only largely expendable line.

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-required-argument read tool with full annotations and an output schema, the description covers purpose, the shared-credential edge case, and the actor-versus-recipient distinction. Nothing an agent needs before calling is missing, though it never mentions the optional analytics parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one optional parameter, llm_model, whose schema description is fully written (100% coverage), so the schema carries the semantics. The description says nothing about the parameter at all. Baseline 3 is appropriate given the high coverage.

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?

States a specific verb and resource: 'Identify the account and organization authorized by the current credentials.' An agent can tell immediately this is an identity/credentials introspection call, distinct from the entity-listing and messaging siblings.

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?

The closing sentence, 'The response identifies the current actor, not a message recipient,' preempts the most likely misuse (confusing identity with a contact or recipient), which is real guidance. It stops short of naming when to call it versus siblings, but the context is clear enough that no alternative tool plausibly competes.

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.