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 €9/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. Added

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the readOnlyHint/idempotentHint annotations, it discloses execution location, that data is deleted immediately and nothing is stored, plus a concrete rate limit (5 calls/day per IP) and the two paid auth paths (X-API-Key or x402). Minor imprecision: it says 'files are deleted' when the input is a text payload, which could confuse an agent about whether a file upload exists.

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?

Purpose and capabilities are front-loaded in the first sentence, with operational and pricing details after. It is dense but each clause carries information; the pricing URL and monthly figure are the most expendable elements for an agent deciding how to call the tool.

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 five parameters, one enum, and no output schema, the definition covers the transformation semantics, data handling, and access constraints. The one gap is the return shape: 'with counts' hints at a count field but does not describe the response, which matters since no output schema exists.

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 enum for sort and the ignoreCase/trim/removeBlank booleans are already documented in structured form. The description restates the same behaviors (case, spaces, blank lines, sort direction) without adding format details or edge-case semantics, so the baseline 3 applies.

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 sentence names a specific verb and resource (remove duplicate lines) and enumerates the operations performed: dropping blank lines, sorting A-Z/Z-A, and returning counts. That distinguishes it from neighbors like case_converter or list_compare, though it never names a sibling explicitly to route the agent.

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 explains what the tool can do but gives no when-to-use guidance, no prerequisites, and no alternatives for related tasks such as comparing two lists or converting case. The only conditional language ('optionally ignoring case/spaces') describes an option, not a usage decision.

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