index_cortex_api_docs
Index Cortex Cloud API documentation for searchability. Use this tool before querying to ensure accurate results, with optional control over indexing depth.
Instructions
Index Cortex Cloud API documentation. Call this first before searching.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No |
Implementation Reference
- src/main.py:215-219 (handler)The handler function for the 'index_cortex_api_docs' tool, decorated with @mcp.tool() for registration. It indexes the Cortex API docs by calling the indexer's index_site method.@mcp.tool() async def index_cortex_api_docs(max_pages: int = 50) -> str: """Index Cortex Cloud API documentation. Call this first before searching.""" pages_indexed = await indexer.index_site('cortex_api', max_pages) return f"Indexed {pages_indexed} pages from Cortex Cloud API documentation"
- server.py:215-219 (handler)Duplicate handler function for the 'index_cortex_api_docs' tool, identical to the one in src/main.py.@mcp.tool() async def index_cortex_api_docs(max_pages: int = 50) -> str: """Index Cortex Cloud API documentation. Call this first before searching.""" pages_indexed = await indexer.index_site('cortex_api', max_pages) return f"Indexed {pages_indexed} pages from Cortex Cloud API documentation"