iflow-mcp-opensearch-project-opensearch-mcp-server-py
v0.7.0OpenSearch MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
DataDistributionTool
Analyzes data distribution patterns and field value frequencies within OpenSearch indices. Supports both single dataset analysis for understanding data characteristics and comparative analysis between two time periods to identify distribution changes. Automatically detects useful fields, calculates value distributions, groups numeric data, and computes divergence metrics. Useful for anomaly detection, data quality assessment, and trend analysis. We can use this tool to analyze the distribution of failures over time
| Parameter | Type | Description |
|---|---|---|
index * | string | Target OpenSearch index name |
selectionTimeRangeEnd * | string | End time for analysis period |
selectionTimeRangeStart * | string | Start time for analysis period |
timeField * | string | Date/time field for filtering(requied) |
baselineTimeRangeEnd | string | End time for baseline period (optional) |
baselineTimeRangeStart | string | Start time for baseline period (optional) |
size | integer | Maximum number of documents to analyze |
LogPatternAnalysisTool
Intelligent log pattern analysis tool for troubleshooting and anomaly detection in application logs. Use this tool when you need to: analyze error patterns in logs, identify unusual log sequences, compare log patterns between time periods, find root causes of system issues, detect anomalous behavior in application traces, or investigate performance problems. The tool automatically extracts meaningful patterns from raw log messages, groups similar patterns, identifies outliers, and provides insights for debugging. Essential for log-based troubleshooting, incident analysis, and proactive monitor…
| Parameter | Type | Description |
|---|---|---|
index * | string | Target OpenSearch index name containing log data |
logFieldName * | string | Field containing raw log messages to analyze |
selectionTimeRangeEnd * | string | End time for analysis target period |
selectionTimeRangeStart * | string | Start time for analysis target period |
timeField * | string | Date/time field for time-based filtering(requied) |
baseTimeRangeEnd | string | End time for baseline comparison period (optional) |
baseTimeRangeStart | string | Start time for baseline comparison period (optional) |
traceFieldName | string | Field for trace/correlation ID (optional) |
ListIndexTool
Lists indices in the OpenSearch cluster. If an index name or pattern is specified, return only information about the provided index or index pattern. The include_detail flag controls output: if False, returns only index name(s); if True (default), returns full metadata.
| Parameter | Type | Description |
|---|---|---|
include_detail | boolean | Whether to include detailed information. If False, returns only index name(s). If True, returns full metadata. |
index | string | The name of the index or index pattern to get information for. |
IndexMappingTool
Retrieves index mapping and setting information for an index in OpenSearch
| Parameter | Type | Description |
|---|---|---|
index * | string | The name of the index to get mapping information for |
SearchIndexTool
Searches an index using a query written in query domain-specific language (DSL) in OpenSearch
| Parameter | Type | Description |
|---|---|---|
index * | string | The name of the index to search in |
query * | The search query in OpenSearch query DSL format. For date/time fields, if a range query is applied to a date/time field, it MUST include a "format" parameter. Most commonly "format": "strict_date_opti… | |
format | string | Output format: "json" or "csv" |
size | integer | Number of search results to return. The maximum allowed value is 100, unless overridden by configuration. |
GetShardsTool
Gets information about shards in OpenSearch
| Parameter | Type | Description |
|---|---|---|
index * | string | The name of the index to get shard information for |
GenericOpenSearchApiTool
A flexible tool for calling any OpenSearch API endpoint. Supports all HTTP methods with custom paths, query parameters, request bodies, and headers. Use this when you need to access OpenSearch APIs that don't have dedicated tools, or when you need more control over the request. Leverages your knowledge of OpenSearch API documentation to construct appropriate requests.
| Parameter | Type | Description |
|---|---|---|
path * | string | The API endpoint path (e.g., "/_search", "/_cat/indices", "/my_index/_doc/1"). Should start with "/". |
body | Request body for GET/POST/PUT requests. Can be a JSON object, string, or None | |
headers | Additional HTTP headers to include in the request | |
method | string | HTTP method to use (GET, POST, PUT, DELETE, HEAD, PATCH) |
query_params | Query parameters to include in the request URL as key-value pairs |