Skip to main content
Glama

build_deep_index

Build a complete symbol index for code projects to enable code search and analysis. This tool performs full re-indexing and loads it into memory.

Instructions

Build the deep index (full symbol extraction) for the current project.

This performs a complete re-index and loads it into memory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'build_deep_index' MCP tool via @mcp.tool() decorator, with the handler function that delegates to the service.
    @mcp.tool() @handle_mcp_tool_errors(return_type='str') def build_deep_index(ctx: Context) -> str: """ Build the deep index (full symbol extraction) for the current project. This performs a complete re-index and loads it into memory. """ return IndexManagementService(ctx).rebuild_deep_index()
  • Handler function that executes the tool logic by calling IndexManagementService.rebuild_deep_index()
    @mcp.tool() @handle_mcp_tool_errors(return_type='str') def build_deep_index(ctx: Context) -> str: """ Build the deep index (full symbol extraction) for the current project. This performs a complete re-index and loads it into memory. """ return IndexManagementService(ctx).rebuild_deep_index()
  • Supporting method in IndexManagementService that performs the actual deep index rebuild workflow.
    def rebuild_deep_index(self) -> str: """Rebuild the deep index using the original workflow.""" # Business validation self._validate_rebuild_request() # Deep rebuild via existing workflow result = self._execute_rebuild_workflow() return self._format_rebuild_result(result)

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/johnhuang316/code-index-mcp'

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