Skip to main content
Glama

Get Elasticsearch roles

elasticsearch_role_get
Read-onlyIdempotent

Retrieve details for a specific Elasticsearch role by cluster and role name, optionally scoped to a namespace, to inspect its permissions.

Instructions

Get Elasticsearch roles

Input Schema

NameRequiredDescriptionDefault
roleYes
clusterYes
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

D1.9/5.0
Behavior2/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 elsewhere. The description contributes nothing beyond that: no mention of what identifying a role requires, how scoping via namespace works, or what happens when the role is absent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

It is short, but the brevity comes from under-specification rather than economy: the single sentence duplicates the title verbatim and front-loads no useful constraint. There is no wasted filler, but there is also no substance for the sentence to earn its place with.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the tool takes three parameters (two required) with an interesting namespace scoping model that is left unexplained. For a lookup tool returning a role definition, the description should at minimum state what entity is retrieved and how the inputs identify it, which it does not.

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

Parameters1/5

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

Schema description coverage is 0% for the three top-level parameters; cluster and role are required and carry only pattern/length constraints with no stated meaning. The description does not compensate at all, leaving it unclear whether "role" is a role name, an ID, or a path segment, or how namespace scoping interacts with cluster.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

Tautological: description restates name/title.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use, when-not-to-use, or alternative is mentioned. There is an obvious sibling (elasticsearch_roles_list) for enumerating roles, and the description gives no signal that this tool is for fetching one role given cluster and role name.

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