Skip to main content
Glama

protools_merge_files

Merge multiple source code files into a single context for AI models. Supports compression modes, extension filtering, and exclusion rules.

Instructions

合并多个源代码文件,供对话模型作为上下文使用。支持压缩模式(full/compact/skeleton)、扩展名过滤、排除规则、分组输出。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo压缩模式:full=保留全部 | compact=移除注释和import | skeleton=仅保留签名compact
groupNo按输入路径分组输出
inputsYes文件/目录/glob 路径列表
outputNo输出方式:inline=直接返回内容 | file=写入文件并返回路径inline
excludesNo排除的 glob 模式列表
max_bytesNo超过此字节数强制落盘(即使 output=inline)
extensionsNo过滤扩展名,如 [".kt", ".java"]
output_dirNo输出目录,默认 ProTools/output
Behavior4/5

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

The description details compression modes, extension filtering, exclusion rules, and output options (inline/file, max_bytes fallback), providing sufficient behavioral context. However, it lacks information on error handling, permissions, or side effects. Since no annotations are provided, the description carries the full burden.

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 concise, with two sentences that first state the core purpose then list key features. It is front-loaded and every sentence adds value.

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?

The description covers the main functionality and modes comprehensively. However, given the absence of an output schema, it would benefit from a brief note on the return format (e.g., merged text or file path), which is only partially addressed in the schema.

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?

With 100% schema coverage, the description's high-level summary adds context but does not significantly enhance individual parameter understanding beyond the schema's own descriptions. The baseline of 3 is appropriate.

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 function of merging source code files for use as context for dialogue models, listing specific features (compression modes, extension filtering, exclusion rules, group output). This distinguishes it from sibling tools like protools_code_review and protools_document_suggest, which serve different purposes.

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

Usage Guidelines3/5

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

The description implies usage for assembling code files for model context but provides no explicit guidance on when to prefer this tool over alternatives or when not to use it. No comparison to sibling tools or scenarios is given.

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/hotic/protools'

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