Skip to main content
Glama

Get Elasticsearch users

elasticsearch_user_get
Read-onlyIdempotent

Retrieves an Elasticsearch user's username, roles, enabled status, and optional full name and email without exposing credentials; returns 404 when the native account does not exist.

Instructions

Get Elasticsearch users

Returns username, roles, enabled and optional fullName and email, never the credential. Select an identity through elasticsearch_users_list; an absent native account returns 404.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cluster": "<cluster>",
      "username": "<username>"
    },
    "name": "elasticsearch_user_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterYesManaged cluster name; the RBAC object is namespace/cluster.
usernameYesExact native realm username string returned as username by elasticsearch_users_list; reserved and Karakoram-managed identities are unavailable.
namespaceNoNamespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter.

Output Schema

NameRequiredDescriptionDefault
emailNo
rolesYes
enabledYes
fullNameNo
usernameYes
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cluster / description
      Added value: +"Managed cluster name; the RBAC object is namespace/cluster."
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter."
    • addedInput schema / properties / username / description
      Added value: +"Exact native realm username string returned as username by elasticsearch_users_list; reserved and Karakoram-managed identities are unavailable."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Native realm user. Reserved and Karakoram-managed identities are hidden.",
      +  "properties": {
      +    "email": {
      +      "type": "string"
      +    },
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "fullName": {
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "roles": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "username": {
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "username",
      +    "roles",
      +    "enabled"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely useful context: the returned field set, the explicit exclusion of credentials, and 404 on a missing native account. It stops short of mentioning authorization requirements or that reserved/Karakoram-managed identities are excluded (that detail lives only in the schema).

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 tight sentences, front-loaded with the purpose and return shape before the routing hint and error behavior. The opening line restates the title, which is mild redundancy but harmless given the overall brevity.

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?

With only three fully documented parameters, a present output schema, and complete annotations, the description covers what an agent needs: what comes back, that credentials are never exposed, how to obtain a valid username, and the 404 outcome. Only minor gaps remain around permissions and reserved-identity handling.

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?

Schema description coverage is 100%, so the schema already documents cluster, username and namespace thoroughly. The description adds only the provenance hint for username (values come from elasticsearch_users_list) and says nothing about cluster or namespace, leaving it at the baseline for a fully documented schema.

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 and resource ("Get Elasticsearch users") and immediately clarifies that it returns a single identity's fields (username, roles, enabled, fullName, email), which distinguishes it from the list sibling. Minor friction: the name/title are plural while the operation is a single-user fetch, resolved only by the reference to elasticsearch_users_list.

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?

Explicitly routes the agent through elasticsearch_users_list to select the identity first, and states the failure mode ("an absent native account returns 404"). No explicit when-not-to-use guidance, but the discovery-then-get workflow is unambiguous.

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