Create and manage custom tools in Elastic Agent Builder
You can extend the built-in tool catalog with your own custom tool definitions. Custom tools offer flexibility in how they interact with your data. This flexibility allows you to create tools that match your specific use cases and data access patterns.
Elastic Agent Builder supports several tool types:
- ES|QL tools: Execute pre-defined ES|QL queries with parameterized inputs for precise, repeatable data retrieval.
- Index search tools: Scope searches to specific indices or patterns. The LLM dynamically constructs queries based on user requests.
- MCP tools: Connect to external Model Context Protocol servers, enabling agents to use remote tools and services.
- Workflow tools: Call pre-defined Workflows directly from the agent chat.
You can create custom tools in the Kibana UI.
To create a custom tool in the UI:
- Navigate to theTools section on theAgents page in Kibana.
- ClickNew tool.

Fill in the required fields:
- ID: Enter a unique identifier for your tool (e.g.,
get_customer_orders). Agents use this ID to reference the tool. Refer toNaming conventions for recommended patterns. - Name: Enter a descriptive name for your tool.
- Description: Write a clear explanation of what the tool does and when it should be used. Refer toWriting effective tool descriptions for guidance.
- Type: Choose a tool type from the list.
- Parameters: For tools with ES|QL queries, define any parameters your query needs.
- Labels: (Optional) Add labels to categorize and organize your tools.
- ID: Enter a unique identifier for your tool (e.g.,
Choose how to save your tool:
- SelectSave to create the tool.
- SelectSave and test to create the tool and immediately open the testing interface
