Skip to main content
Glama
maicFir

maic-server-fs-mcp

by maicFir

searchCodebase

Search the entire codebase using keywords or functional descriptions to find relevant code snippets, even when the location of a feature or component is unknown.

Instructions

语义化检索整个本地代码库。当不知道某段功能、组件、路由在哪里时,调用此工具通过关键词或功能描述找出最相关的真实代码片段。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topKNo返回的最相关的代码片段数量,默认为 3
queryYes搜索词或代码功能描述,例如 'JWT 鉴权拦截器' 或 'Button 组件'
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It describes a read-only search operation but does not disclose potential behaviors like indexing prerequisites, resource cost, or limitations on search scope beyond 'local codebase'. Basic transparency is present.

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?

The description is a single, well-structured sentence that front-loads the core purpose. It is concise with no extraneous information, earning every word.

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

Completeness4/5

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

Given the tool's simplicity (2 parameters, no output schema, no annotations), the description is mostly complete. It covers when and what to use, and parameter semantics are clear. Lack of output format details is minor for a search 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 coverage is 100%, so the schema already documents both parameters. The description adds contextual examples (e.g., 'JWT 鉴权拦截器') for query and explains topK's purpose, but the value over schema is marginal. The description does not compensate for any missing schema details.

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 specifies the verb (semantic search), resource (local codebase), and provides a clear use case (when location of code is unknown). It implicitly distinguishes from siblings like readFile (specific file) and executeCommand (commands).

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?

The description states when to use ('when you don't know where'), providing clear context. However, it does not explicitly mention when not to use or suggest alternative sibling tools like buildCodebaseIndex for indexing.

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