Package com.viglet.turing.mcp.server
Class TurToolsService
Object
TurToolsService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionindexMappingTool
(String index, String locale) listIndexTool
(String index) searchIndexTool
(String index, String locale, String query, int page, List<String> fq, String sort, int rows, String group)
-
Constructor Details
-
TurToolsService
-
-
Method Details
-
listIndexTool
-
indexMappingTool
-
searchIndexTool
@Tool(name="search_index_tool", description="Executes a search query against the Turing Elasticsearch (ES) instance.\n\nArgs:\n index (str): Name of the index to query. Required. Example: \'samplesite\'.\n query (str, optional): Search query string. Example: \'foobar\'. If date need be ISO-8601 format.\n page (int, optional): Page number for paginated results. Example: 1.\n fq (list[str], optional): List of filter queries using attribute:value format. If date need be ISO-8601 format. Example: [\'title:foobar\'].\n sort (str, optional): Sort order for results. Options: \'asc\', \'desc\', \'relevant\'. Example: \'relevant\'.\n rows (int, optional): Number of results to return per page. Example: 10.\n group (str, optional): Field name to group results by. Example: \'foobar\'.\n locales (str): Locale or language code for the search. Required. Example: \'en-US\' or \'pt-BR\'.\nReturns:\n A dictionary containing the search results that match the provided parameters.\n") public TurSNDocumentList searchIndexTool(String index, String locale, String query, int page, List<String> fq, String sort, int rows, String group)
-