Skip to main content
Glama

reindex_knowledge_tool

Rebuild a project's vector index by scanning all Markdown files in the knowledge base and resynchronizing them, keeping semantic search results current.

Instructions

重建專案的向量索引 掃描知識庫中的所有 Markdown 檔案並重新同步

Args: project_name: 專案名稱

Returns: 處理結果統計

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_name": "<project_name>"
    },
    "name": "reindex_knowledge_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2601.5

TDQS

B3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses blast radius (all Markdown files, full rebuild) and that statistics are returned, but says nothing about whether the existing index is destroyed, whether the operation is incremental, expected duration, permissions, or whether it can be run concurrently with writes.

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?

Front-loaded with the core action, followed by a scope sentence and conventional Args/Returns blocks. No filler, though the Args section is pure restatement and could be dropped.

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?

An output schema exists, so the Returns section needs no expansion. However, for an unannotated, potentially destructive rebuild operation, the definition should say more about side effects and runtime before an agent triggers it.

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

Parameters2/5

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

Schema description coverage is 0% and the only parameter is restated verbatim as 'project_name: 專案名稱', adding no format, example, or relationship to list_projects_tool. With one required parameter the risk is low, but the description adds no meaning beyond the schema.

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

Purpose4/5

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

The description states a specific verb and resource ('重建專案的向量索引') and adds scope detail ('掃描知識庫中的所有 Markdown 檔案並重新同步'), which distinguishes it from read/search/save siblings without naming them. It is clear but does not explicitly contrast itself with alternatives.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is for resynchronizing the index after knowledge-base content changes, but there is no explicit when-to-use or when-not-to-use guidance, and no warning about overlap with save_knowledge_tool or cost of a full rescan.

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