trim
trimRemove leading and trailing whitespace from text to clean up formatting and prepare strings for processing.
Instructions
Remove leading and trailing whitespace from text
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
trimRemove leading and trailing whitespace from text to clean up formatting and prepare strings for processing.
Remove leading and trailing whitespace from text
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. While it states the tool removes whitespace, it does not clarify whether this is a read-only operation, if it modifies input in-place, what happens with empty strings, or the return format. For a tool with zero annotation coverage, this leaves significant behavioral 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, efficient sentence that directly states the tool's function without unnecessary words. It is appropriately sized and front-loaded, making it easy to understand immediately.
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?
Given the tool's simplicity (one parameter, no output schema, no annotations), the description is adequate but incomplete. It covers the basic purpose but lacks details on behavioral traits, return values, or error handling, which are important even for simple tools to ensure correct usage.
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 description adds meaning beyond the input schema by specifying that the 'text' parameter is processed to remove leading and trailing whitespace. With 0% schema description coverage and only one parameter, the description effectively compensates by explaining the parameter's purpose, though it could detail edge cases like handling null or whitespace-only strings.
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 specific action ('remove') and target ('leading and trailing whitespace from text'), distinguishing it from sibling tools like 'capitalize' or 'reverse' that perform different text transformations. It precisely defines what the tool does without being vague or tautological.
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 implies usage for text whitespace trimming but does not explicitly state when to use this tool versus alternatives like 'lowercase' or 'countCharacters'. No guidance is provided on prerequisites, exclusions, or specific contexts where trimming is preferred over other text operations.
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/xiaobenyang-com/Text-Transformer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server