检测仓库
detectRepoInspect a specified directory to read its package.json and retrieve essential project metadata for building documentation.
Instructions
读取指定目录的 package.json 并返回关键信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No |
detectRepoInspect a specified directory to read its package.json and retrieve essential project metadata for building documentation.
读取指定目录的 package.json 并返回关键信息
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It transparently states that the tool reads and returns information, but it omits details about error handling, what 'key information' includes, and whether there are any side effects. This is sufficient for a simple read operation but leaves gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, front-loaded with the action and resource. It is concise and contains no extraneous information, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has no output schema, so the description should have explained the return values. Saying 'return key information' is vague and does not specify what that information includes (e.g., name, version, scripts). It also lacks details on prerequisites or error behavior. For a tool with only one parameter, more completeness is expected.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, so the description must compensate. It clarifies that the 'dir' parameter is the directory whose package.json should be read, giving meaning to an otherwise bare string parameter. This adds significant value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: reading the package.json in a specified directory and returning key information. The verb '读取' (read) and resource 'package.json' make the purpose explicit, and it is clearly distinct from sibling tools like generateReadme or writeFile, which perform different actions.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide any guidance on when to use this tool versus the alternatives. It is implied that this tool would be used to gather repo information before generating a README, but no explicit context or exclusions are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mingzhu3377/Readme-builder-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server