Skip to main content
Glama
xiaochenwin

Trae Rules Generator MCP

by xiaochenwin

save_rules_file

Save rule files to a specified directory by providing content, filename, and path. Use to store project-specific rules for AI configuration.

Instructions

保存规则文件到指定目录

Args: content: 规则文件内容 filename: 文件名,默认为 project_rules.md rules_path: 规则文件目录路径,默认为 .trae/rules

Returns: 保存操作的结果信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
filenameNoproject_rules.md
rules_pathNo.trae/rules

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description should compensate. It mentions saving a file with defaults but does not disclose key behaviors like overwrite policy, directory creation, or error handling. The return description is vague ('保存操作的结果信息').

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 concise, using a brief title and structured 'Args' and 'Returns' sections. It avoids unnecessary words, though the structure could be slightly improved with bullet points for readability.

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?

Given the tool has 3 parameters, an output schema, and siblings, the description covers basic purpose but lacks behavioral details (e.g., overwriting) and usage guidance. It is adequate but incomplete for an agent to fully understand implications.

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

Parameters4/5

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

The input schema has no parameter descriptions (0% coverage), but the tool description's 'Args' section provides clear explanations for each parameter: 'content' (file content), 'filename' (with default), 'rules_path' (with default). This adds meaningful value beyond 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?

The description clearly states the action '保存' (save) and the resource '规则文件' (rules file) to a specified directory. It is distinguishable from siblings 'generate_project_rules' (creation) and 'read_existing_rules' (reading).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus the siblings, such as 'generate_project_rules' or 'update_existing_rules'. It lacks context on prerequisites or scenarios.

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/xiaochenwin/trae-rules-mcp'

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