Skip to main content
Glama

reindex

Index your workspace to enable all other malong tools. Handles large workspaces with a confirmation step, supports incremental or forced re-indexing.

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.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses the two-step confirmation, blocking/force options, and its prerequisite nature, but does not mention side effects (e.g., overwriting index), whether it's a write operation, timeout behavior, or what happens if run without confirmation. Some transparency is provided, but gaps remain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loads the critical 'MUST run FIRST' directive. However, it is fragmented into three rough segments with some redundancy ('MUST run FIRST' and 'before ALL other malong tools' overlap). Still, it earns its place without excess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The workflow is complex (8 optional params, no output schema), and the description covers the crucial confirm process and prerequisite status. However, it doesn't describe return values (e.g., needs_review response with token), explain why indexing is required, or state what happens if skipped. It's adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description mentions 'blocking/force options' and the confirm flow, but these are already captured in the schema. It adds no new meaning about parameters (e.g., force semantics, maxFiles upper bound).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool indexes a workspace and positions it as the mandatory first step for all malong tools. The verb 'index' and resource 'workspace' are explicit, and the phrase 'before ALL other malong tools' distinguishes its role from siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs to run FIRST, provides the two-step confirm procedure for over-threshold workspaces, and mentions blocking/force options. This gives clear when-to-use guidance and preconditions, though it doesn't name alternatives (none needed for a prerequisite).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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