Skip to main content
Glama

Agent Knowledge MCP

search

Retrieve specific documents from an Elasticsearch index using advanced filters, pagination, and time-based sorting to streamline data searches.

Instructions

Search documents in Elasticsearch index with advanced filtering, pagination, and time-based sorting capabilities

Input Schema

NameRequiredDescriptionDefault
date_fromNoStart date filter in ISO format (YYYY-MM-DD)
date_toNoEnd date filter in ISO format (YYYY-MM-DD)
fieldsNoSpecific fields to include in search results
indexYesName of the Elasticsearch index to search
queryYesSearch query text to find matching documents
sizeNoMaximum number of results to return
sort_by_timeNoSort order by timestampdesc
time_periodNoPredefined time period filter (e.g., '7d', '1m', '1y')

Input Schema (JSON Schema)

{ "properties": { "date_from": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Start date filter in ISO format (YYYY-MM-DD)", "title": "Date From" }, "date_to": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "End date filter in ISO format (YYYY-MM-DD)", "title": "Date To" }, "fields": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Specific fields to include in search results", "title": "Fields" }, "index": { "description": "Name of the Elasticsearch index to search", "title": "Index", "type": "string" }, "query": { "description": "Search query text to find matching documents", "title": "Query", "type": "string" }, "size": { "default": 10, "description": "Maximum number of results to return", "maximum": 1000, "minimum": 1, "title": "Size", "type": "integer" }, "sort_by_time": { "default": "desc", "description": "Sort order by timestamp", "pattern": "^(asc|desc)$", "title": "Sort By Time", "type": "string" }, "time_period": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Predefined time period filter (e.g., '7d', '1m', '1y')", "title": "Time Period" } }, "required": [ "index", "query" ], "type": "object" }

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/itshare4u/AgentKnowledgeMCP'

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