Skip to main content
Glama

Read the authenticated identity

current_user_get
Read-onlyIdempotent

Retrieve the authenticated caller's identity for self-service checks, returning only the current user regardless of administrative account read policies.

Instructions

Read the authenticated identity

Self-service: returns only the caller, independent of administrative accounts read policy.

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": "current_user_get"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
nameYes
groupsYes
subjectYes
csrfTokenNoPresent for cookie sessions, including OIDC sessions. Safe authenticated GET discovery allows the UI to authorize subsequent unsafe requests. Absent for bearer API-token authentication.
operationIdNo
mustChangePasswordYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "csrfToken": {
      +      "description": "Present for cookie sessions, including OIDC sessions. Safe authenticated GET discovery allows the UI to authorize subsequent unsafe requests. Absent for bearer API-token authentication.",
      +      "readOnly": true,
      +      "type": "string"
      +    },
      +    "groups": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "mustChangePassword": {
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "maxLength": 128,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "subject": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "subject",
      +    "groups",
      +    "mustChangePassword"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds one genuinely useful trait beyond that: the result is unaffected by the administrative accounts read policy, meaning it succeeds even when admin-scoped reads are restricted. It does not describe caching, error behavior, or what identity fields come back (though an output schema likely covers the latter).

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?

Two tight sentences, front-loaded with the purpose and followed by the scoping caveat. The first line duplicates the title verbatim, a small redundancy, but no other sentence is wasted.

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 with full annotation coverage and an output schema, the definition supplies the one thing that matters beyond structure: who is returned and that policy restrictions do not apply. Nothing an agent needs to invoke it correctly is missing.

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 for the description to disambiguate; baseline applies. Nothing is misleading about the empty schema claim.

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?

The description states a specific verb+resource ('Read the authenticated identity') and clarifies scope with 'Self-service: returns only the caller', which separates it from the many *_user_get siblings that look up other accounts. It stops short of naming a sibling alternative explicitly, so it lands just below a top score.

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?

It gives clear context for selection: use this for the caller's own identity, and it works 'independent of administrative accounts read policy', which implies no elevated permissions are needed. No explicit when-not or named alternative is provided.

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