Skip to main content
Glama

octodet-elasticsearch-mcp

count_documents

Count documents in a specified Elasticsearch index, with an optional query to filter results for precise document tallying.

Instructions

Count documents in an index, optionally filtered by a query

Input Schema

NameRequiredDescriptionDefault
indexYesName of the Elasticsearch index to count documents in
queryNoOptional Elasticsearch query to filter documents to count

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "index": { "description": "Name of the Elasticsearch index to count documents in", "minLength": 1, "type": "string" }, "query": { "additionalProperties": {}, "description": "Optional Elasticsearch query to filter documents to count", "type": "object" } }, "required": [ "index" ], "type": "object" }
Install Server

Other Tools from octodet-elasticsearch-mcp

Related Tools

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/Octodet/elasticsearch-mcp'

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