Skip to main content
Glama
cr7258

Elasticsearch MCP Server

delete_alias

Remove an alias from a specific Elasticsearch index to manage index references and streamline data organization.

Instructions

Delete an alias for a specific index. Args: index: Name of the index name: Name of the alias

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes
nameYes

Implementation Reference

  • The main handler function for the 'delete_alias' MCP tool. It is decorated with @mcp.tool() for registration and executes the deletion by calling the search client's delete_alias method. The docstring and type hints define the input schema.
    @mcp.tool() def delete_alias(index: str, name: str) -> Dict: """ Delete an alias for a specific index. Args: index: Name of the index name: Name of the alias """ return self.search_client.delete_alias(index=index, name=name)
  • Supporting helper method in the AliasClient class that implements the core deletion logic using the underlying search client's indices.delete_alias.
    def delete_alias(self, index: str, name: str) -> Dict: """Delete an alias for the specified index.""" return self.client.indices.delete_alias(index=index, name=name)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cr7258/elasticsearch-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server