Skip to main content
Glama

Remove Duplicate Lines API - de-duplicate and sort a list

remove_duplicate_lines
Read-onlyIdempotent

Remove duplicate lines (optionally ignoring case/spaces), drop blank lines, sort A-Z or Z-A, with counts. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/remove-duplicate-lines.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "a\nb\na\nB"
    },
    "name": "remove_duplicate_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNokeep, az or zakeep
textYesThe text
trimNoIgnore spaces at line ends
ignoreCaseNoApple = apple
removeBlankNoRemove empty lines

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint, idempotentHint, openWorldHint), so the bar is lower, yet the description still adds real context: server-side execution, immediate deletion of data with nothing stored, a 5 calls/day per IP free tier, and the two paid paths (X-API-Key header or x402 per-call). The phrase 'files are deleted right after the call' is slightly off since the input is plain text, not a file, which introduces minor noise.

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?

A single dense paragraph that front-loads the capability and pushes access/pricing details to the end. Every clause carries information, though the billing sentence is long and URL-heavy relative to the core action.

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?

With no output schema, the definition still needs to hint at results, and 'with counts' does minimally. Access, rate limits, and privacy are fully covered, which is the main risk area for an open-world, server-side tool. The remaining gap is that the shape of the returned de-duplicated text and counts is never described.

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% with per-parameter descriptions and an enum for sort, so the schema already carries the parameter burden and the baseline of 3 applies. The description restates the same options (case, spaces, sort direction) without adding syntax or format detail. 'With counts' is the one hint beyond the schema, but it gestures at output rather than clarifying an input.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause gives a concrete verb and resource plus its option set: 'Remove duplicate lines (optionally ignoring case/spaces), drop blank lines, sort A-Z or Z-A, with counts.' That is far more specific than the title alone. It does not, however, distinguish itself from a plausible neighbour such as remove_line_breaks, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never states when to reach for this tool versus an alternative such as remove_line_breaks, nor what preconditions apply beyond the billing tiers. The only 'when' signal is implicit in the verb phrase. The pricing/access sentence is about authorization, not about tool selection.

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