Skip to main content
Glama

rebuild

Rebuild the text index on the Library MCP server to ensure accurate search results after changes to local markdown files. Sync content updates efficiently.

Instructions

Rebuild text index. Useful for when contents have changed on disk

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:458-467 (handler)
    The handler function for the "rebuild" MCP tool. It rebuilds the text index by reloading content from disk via content_manager.load_content(), returning True on success or False if content_manager is not initialized.
    @mcp.tool() async def rebuild() -> bool: """Rebuild text index. Useful for when contents have changed on disk""" if content_manager is None: return False debug_print("Rebuilding content index...") content_manager.load_content() debug_print("Content index rebuilt successfully") return True

Other Tools

Related Tools

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/lethain/library-mcp'

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