Skip to main content
Glama

reindex

Index your workspace before using other tools. Supports incremental or forced re-indexing, with confirmation for large projects and directory skip options.

Instructions

MUST run FIRST: index workspace before ALL other malong tools. Over-threshold workspaces require two-step confirm (call → get token → confirm). blocking/force options. malong = LLM-native toolset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoMark ALL files dirty + re-extract (ignore mtime). Use to purge stale index. Default: incremental.
confirmNoSecond-step confirmation token from a previous needs_review response (TTL 10 min). REQUIRED to start indexing when total_files > threshold. NEVER invent a token — re-call reindex to get a fresh one.
blockingNoIf true, wait for indexing to complete before returning (default false = async).
maxFilesNoIndex upper bound (default 5000): after confirmation, indexing stops at this many files and warns (truncated). Raise it or use ignoreDirs to index everything.
skipDirsNoSkip specific directories by relative path, e.g. ["runtime1", "0通天/eval-cases"]. Useful when pre-check says too many files.
thresholdNoPre-check warning line (default 2000): workspaces with more files return needs_review + confirm_token before indexing (no silent skip).
ignoreDirsNoAdditional directory names to skip globally (e.g. ["deps", "archive"]). Combined with built-in defaults.
workspace_dirNoProject root (abs). Omit to check indexing status.

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/wulun811/LiuHe'

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