Skip to main content
Glama

text_to_txt

Merges all text files in the current directory into a single output file, auto-detecting encoding and labeling each file with its name.

Instructions

扫描当前目录下所有文本文件(自动检测 UTF-8/UTF-16/GBK/Latin-1 编码),将文件内容合并输出到一个文本文件中。格式:每个文件以【文件名】标记分隔。适用于:文档汇总、语料准备、文本分析、合并散落的文本资料。无参数,默认扫描当前目录,跳过自身输出文件,输出到 merged_texts.txt。自动跳过 .venv 目录及 .gitignore 中忽略的内容。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses encoding auto-detection, skipping of its own output file, skipping .venv and .gitignore entries, and the output filename merged_texts.txt.

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 dense but well-organized: it leads with the core behavior, then format, use cases, and edge cases. Every sentence adds distinct information with no filler.

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

Completeness5/5

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

For a parameterless file-processing tool with no annotations and no output schema, the description is complete: it covers input scope, encoding handling, output file and format, and which directories/files are skipped. Nothing essential is missing.

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 schema has one optional undocumented `args` parameter and 0% coverage, so the description compensates by explicitly stating '无参数' and describing default behavior. It clarifies the tool needs no user-provided parameters, though it does not explain what the optional `args` field does if supplied.

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 states a specific verb and resource: scans all text files in the current directory and merges them into one text file. It also clearly differentiates from sibling tools by targeting generic text files rather than specific formats like xlsx or python source.

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?

Provides clear use contexts: '适用于:文档汇总、语料准备、文本分析、合并散落的文本资料'. It does not explicitly name exclusions or alternatives, but the scope and sibling names make appropriate usage clear.

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/Liangbiaoyong/Python_Scripts_MCP'

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