Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

text_remove_line_numbers

Read-onlyIdempotent

Strip leading line numbers from text using auto detection, custom regex, or manual mode. Returns cleaned text with statistics.

Instructions

Remove Line Numbers. Strip leading line numbers and numbered prefixes from each line of the supplied text, returning the cleaned text plus before/after statistics. In auto mode it samples the first lines to detect the numbering style (colon, dot, parenthesis, bracketed, space-separated, or zero-padded) and removes the best match; pattern mode applies your own regex; manual mode strips any leading digits with common separators. This is the inverse of text_add_line_numbers; use this to clean pasted code listings, logs, or numbered output. Pure local compute: read-only, non-destructive, offline, and rate-limited (60 requests/min for anonymous callers). Returns the cleaned result, counts of processed and unchanged lines, and the detected pattern with a confidence percentage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesMulti-line text to clean; split on newline (\n). Empty input is rejected with HTTP 400.
detectionModeNoHow numbers are found. auto detects the dominant style from a 10-line sample; pattern uses customPattern; manual strips leading digits followed by a separator.auto
customPatternNoRegex used only when detectionMode is pattern; accepts a bare body or /body/flags form. Capture group 1 or 2 is kept as the cleaned line. Invalid regex returns HTTP 400.
removeAllNoReserved flag accepted for forward compatibility; does not change current output.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoAlways true on success.
resultNoThe text with line numbers removed.
statsNoCounts for the input and output plus detection summary.
optionsNoThe effective settings applied.
Behavior4/5

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

The description adds behavioral context beyond annotations: 'Pure local compute: read-only, non-destructive, offline, and rate-limited (60 requests/min for anonymous callers).' It also details return values (cleaned result, counts, pattern, confidence) and error conditions (empty input, invalid regex). No contradictions with annotations.

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 at 5 sentences, front-loaded with the main purpose and then providing mode details and use cases. Every sentence adds value without redundancy or fluff.

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?

Given the tool's complexity (three modes, regex parameter, rate limiting, return statistics) and the presence of an output schema, the description covers all necessary aspects: modes, usage scenarios, limitations (rate limit, error handling), and return values. It is fully adequate for an AI agent to understand and invoke the tool correctly.

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?

Schema coverage is 100%, so baseline is 3. The description adds significant meaning: explains auto mode samples first 10 lines, pattern mode uses customRegex, manual strips leading digits. It clarifies the reserved flag and default behaviors, enhancing understanding beyond the schema.

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 'Remove Line Numbers' as the core function and specifies stripping leading line numbers and numbered prefixes. It distinguishes from sibling tool text_add_line_numbers by calling itself the inverse, providing clear differentiation.

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?

The description provides explicit use cases: cleaning pasted code listings, logs, or numbered output. It also mentions it's the inverse of text_add_line_numbers. However, it doesn't explicitly state when not to use the tool or list alternative tools, but the guidance is clear enough for correct selection.

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/Jambozx/onlinecybertools-mcp-server'

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