Skip to main content
Glama

whoami

Read-onlyIdempotent

Identifies the current session by returning the tenant name, role, and subscription plan, so users can confirm their active context and permissions.

Instructions

Identify the current session: tenant name, role, and subscription plan

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
planNo
roleNo
key_idNo
successNo
user_idNo
auth_kindNo
tenant_idNo
tenant_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.3
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "anyOf": [
      +    {
      +      "required": [
      +        "success",
      +        "tenant_id",
      +        "role"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "error": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "success": {
      +          "const": false
      +        }
      +      },
      +      "required": [
      +        "success",
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "properties": {
      +    "auth_kind": {
      +      "enum": [
      +        "api_key",
      +        "person"
      +      ],
      +      "type": "string"
      +    },
      +    "key_id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "plan": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "role": {
      +      "type": "string"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    },
      +    "tenant_id": {
      +      "type": "string"
      +    },
      +    "tenant_name": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "user_id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. 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, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description adds the useful behavioral detail that the call scopes to the caller's own session and returns tenant/role/plan, but it says nothing about auth requirements or failure behavior when no session exists. With an output schema present and annotations complete, this is adequate but not rich.

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 front-loaded sentence with a verb, a scope, and the returned fields. No filler, no restatement of the title, nothing to trim.

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?

An output schema exists, so return-value detail need not be in the description, and there are no parameters to document. The definition is essentially complete for a simple introspection tool; it could only be improved with a note on session/prerequisite context, which is a minor gap.

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 there is nothing to disambiguate; the baseline for a 0-param tool is 4. The description correctly adds no spurious parameter discussion.

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?

States a specific verb (Identify) and resource (current session) and enumerates the returned identity attributes: tenant name, role, subscription plan. That is enough to tell it apart from sibling tools like clear_session or get_agent, which operate on other resources. It falls short of a 5 only because it never frames its relationship to any sibling.

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 implied rather than stated: 'Identify the current session' signals a self-inspection check, but there is no explicit when-to-use, no precondition (e.g. requires an authenticated session), and no mention of alternatives. For a zero-parameter introspection tool this is largely self-evident, so 3 is the right level.

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