get_index_fields
Discover available fields and their data types in Elasticsearch indices to correctly construct queries. Filter results by field name or type to find specific fields for exact matches or full-text search operations.
Instructions
Get all fields from an Elasticsearch index with optional filtering by field name and type. Use this tool when you need to discover available fields, their types, and correct field names before constructing queries. This is especially useful when unsure about field names or when looking for fields with specific types (e.g., keyword fields for exact matches or text fields for full-text search). ⚠️ IMPORTANT: Do NOT specify the index parameter unless the user explicitly requests fields from a different index. The tool defaults to "stats-*" which covers all standard indices. Only include the index parameter if the user specifically mentions a different index name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Index name or pattern (supports wildcards like stats-*). Defaults to "stats-*" if not specified. Only specify if you need fields from a different index. | stats-* |
| fieldFilter | No | Filter fields by name (case-insensitive partial match) | |
| typeFilter | No | Filter fields by type (e.g., "text", "keyword", "long", "date") | |
| includeNested | No | Include nested fields in the results |