get_mappings
Retrieve field mappings for Elasticsearch indices to understand data structure and optimize queries.
Instructions
Get the field mappings for an index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name or pattern |
Retrieve field mappings for Elasticsearch indices to understand data structure and optimize queries.
Get the field mappings for an index.
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name or pattern |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It states a read operation ('Get'), implying it's likely non-destructive, but doesn't disclose behavioral traits such as permissions required, rate limits, response format, or whether it's a safe operation. This leaves significant gaps for an agent to understand how to invoke it effectively.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no wasted words. It's front-loaded with the core purpose, making it efficient and easy to parse, which is ideal for conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a tool that retrieves field mappings (which could involve technical details like data types or mappings structure), the description is too minimal. With no annotations, no output schema, and no behavioral context, it doesn't provide enough information for an agent to fully understand what the tool returns or how to use it correctly in context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, with the single parameter 'index' documented as 'Index name or pattern'. The description adds no additional meaning beyond this, such as examples or constraints on the index name. Given the high schema coverage, a baseline score of 3 is appropriate as the schema handles the parameter documentation adequately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and the resource 'field mappings for an index', making the purpose understandable. However, it doesn't differentiate from sibling tools like 'get_index' or 'get_settings', which also retrieve index-related information, so it doesn't fully distinguish its specific scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. With siblings like 'get_index' and 'get_settings' that might overlap in retrieving index metadata, there's no indication of when field mappings are needed specifically, leaving usage context unclear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/schwarztim/elastic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server