Skip to main content
Glama
onion-ai

onion-mcp-server

Official
by onion-ai

text_clean

Clean text by removing blank lines, stripping whitespace, and deleting duplicate lines for normalized output.

Instructions

清理文本:去除多余空行、首尾空白、重复行等。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes要清理的文本
remove_blank_linesNo删除空行(默认 true)
remove_duplicatesNo删除重复行(默认 false)
strip_linesNo去除每行首尾空白(默认 true)
normalize_spacesNo将连续空格压缩为单个(默认 false)
Behavior2/5

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

With no annotations, the description must fully disclose behavior. It lists some cleaning actions but omits critical details like whether the tool is read-only or modifies input, and does not describe return value or side effects.

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 extremely concise with one sentence that front-loads the tool's purpose. No wasted words, and the colon structure effectively separates label from details.

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

Completeness2/5

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

No output schema is provided, yet the description does not explain what is returned. It also fails to mention all parameters (e.g., normalize_spaces) or provide comprehensive behavioral context.

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 coverage is 100%, so the input schema already describes all parameters. The description adds no additional meaning beyond the schema; it only summarizes a subset of parameters.

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 verb '清理' (clean) and resource '文本' (text), and lists specific actions: removing blank lines, leading/trailing whitespace, and duplicate lines. This distinguishes it from sibling tools like text_count or text_diff.

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 does not provide explicit guidance on when to use this tool versus alternatives. While the purpose is clear, there is no mention of exclusions or alternative tools like text_format for formatting tasks.

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/onion-ai/mcp-server'

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