Skip to main content
Glama
clarkemn

cortex-cloud-docs-mcp-server

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
NameRequiredDescriptionDefault
max_pagesNo

Implementation Reference

  • 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"
  • 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"

Latest Blog Posts

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/clarkemn/cortex-cloud-docs-mcp-server'

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