Skip to main content
Glama

Remove Line Breaks

remove_line_breaks
Read-onlyIdempotent

Remove line breaks from text that was hard-wrapped, and keep the paragraphs. A HelpySelf tool (helpyself.com).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoWhat to keep. "paragraphs" removes the breaks inside a paragraph and keeps the blank line between paragraphs, which is almost always what is wanted; "all" collapses everything to a single line.paragraphs
textYesThe hard-wrapped text to reflow — copied out of a P D F, an email or a terminal.
joinWithNoWhat replaces a removed break. "nothing" is for scripts written without spaces between words, where a space would be wrong.space
keepListsNoLeave a line that starts a list item on its own line. A hard-wrapped document is full of them, and joining a bulleted list into a sentence loses the only structure it had.
mendHyphensNoRejoin a word the line break split: "inter-" then "national" becomes "international". Only applied where the next line starts lower-case, so a real hyphen in "well-Known" is left alone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds that paragraph separation is retained by default, which is genuine behavioral context, but says nothing about output format or handling of very large inputs (the 1,000,000-char cap).

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 functional sentence is front-loaded and wastes no words. The trailing marketing line ("A HelpySelf tool (helpyself.com)") carries zero operational value for an agent and is the only dead weight.

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?

For a deterministic single-purpose text transform with full annotation coverage, a complete schema and no output schema to explain, the description covers what is needed. It lacks any note on how the result is returned or size limits, but those are minor gaps for this tool class.

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 description coverage is 100%, so the five parameters (mode, text, joinWith, keepLists, mendHyphens) are already fully documented with defaults and enum meanings. The description contributes no parameter-level detail beyond restating the paragraph-preserving default, so the baseline 3 applies.

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?

States a specific verb and resource ("Remove line breaks from text") plus the qualifying scope ("text that was hard-wrapped") and the key guarantee ("keep the paragraphs"). An agent can distinguish this from near-neighbours like duplicate_line_remover or word_counter without opening any schema.

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 the use case (hard-wrapped text copied from a PDF, email or terminal) but never states when to choose this over a sibling text-cleanup tool, nor any exclusions. The schema's parameter descriptions carry most of the real guidance, so usage is only implied here.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources