Skip to main content
Glama
maicFir

maic-server-fs-mcp

by maicFir

buildCodebaseIndex

Scans local JS/TS/JSX/TSX files and builds a vector index using Gemini Embedding API for semantic search. Run after code changes or before searching.

Instructions

扫描整个本地代码库(js/ts/jsx/tsx文件),调用 Gemini Embedding API 构建/重构本地向量索引。当项目代码发生重大变化后,或者首次使用 searchCodebase 前,必须调用此工具构建索引。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirPathNo要扫描和索引的根目录路径,支持相对路径,默认当前项目根目录 '.'.
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It mentions scanning specific file types and calling an external API, but does not state whether the previous index is overwritten, the time/network cost, or any side effects. This is insufficient for a tool that has destructive potential (rebuilding index).

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

Conciseness5/5

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

Two concise sentences. First sentence states purpose and scope. Second sentence provides essential usage guidance. No redundant words.

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?

Covers when to invoke but lacks details on what happens after invocation (e.g., progress indication, result, error handling). No output schema, so description should explain expected outcome or side effects. It is adequate but not complete for a complex indexing tool.

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 schema already documents the single parameter dirPath with default and description. The tool description adds no further parameter semantics beyond what is in the schema.

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?

Description clearly states it scans local JS/TS/JSX/TSX files and builds/rebuilds a vector index using Gemini Embedding API. It distinguishes itself from sibling searchCodebase by noting it must be called before first use of searchCodebase or after major code changes.

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

Usage Guidelines4/5

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

Explicitly specifies when to use: after major code changes or before first use of searchCodebase. Does not provide alternatives or when not to use, but the context is clear that this is the only index-building tool among siblings.

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

Install Server

Other 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/maicFir/server-fs-mcp'

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