Skip to main content
Glama

prd_search

Locates code implementations of business requirements using PRD-to-code links. Input requirement description, get function/component paths.

Instructions

【需求定位代码】当问题涉及"需求实现"、"功能在哪"、"这个需求怎么做的"时,必须调用此工具。输入需求描述文字,直接返回实现该需求的函数/组件及文件路径,基于 PRD 文档与代码的预关联索引。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo最大返回数量(默认 10)
queryYes需求描述文字
projectPathNo项目路径
Behavior3/5

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

No annotations are provided, so the description bears full responsibility. It discloses that the tool returns functions/components and file paths based on a pre-associated index, implying a read-only operation. However, it lacks details on side effects, rate limits, or behavior when no results are found.

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 relatively concise, being a single sentence that front-loads the usage trigger. It is efficient but could be structured into clearer segments (e.g., separating when to use from output description). No unnecessary words.

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 no output schema, the description adequately explains return values (functions/components and file paths) and the underlying mechanism (pre-associated index). It covers the basic usage scenario, but lacks details on pagination, error handling, or edge cases.

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 baseline is 3. The description adds minimal extra meaning beyond the schema: it elaborates on 'query' as '需求描述文字' (requirement description text) but does not provide further context for 'limit' or 'projectPath'. No significant added value.

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's purpose: to search for code implementations (functions/components) and file paths based on a requirement description. It gives specific trigger phrases like '需求实现' (requirement implementation) and distinguishes from sibling tools by explicitly stating it must be used for such queries.

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 explicitly states when to use the tool ('当问题涉及...时,必须调用此工具'), providing clear context for invocation. However, it does not mention when not to use it or explicitly compare with alternatives, though sibling names are provided in context.

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/lix30684-stack/codegraph-summary'

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