Skip to main content
Glama

List Compare API - what is only in A, only in B, in both

list_compare
Read-onlyIdempotent

Compare two lists (one item per line): items only in A, only in B and in both, 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/list-compare.

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": {
      "listA": "apple\nbanana\ncherry",
      "listB": "banana\ncherry\ndate"
    },
    "name": "list_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
listAYesList A, one item per line
listBYesList B, one item per line
caseSensitiveNoCapital letters count as different

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing server-side execution, immediate deletion of data ('files are deleted right after the call, nothing stored'), rate limits, and the two authentication/payment routes. Minor inaccuracy: it refers to 'files' being deleted although both inputs are plain strings, not uploaded files. With readOnlyHint/idempotentHint already covering safety, this is strong added context.

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 core behavior and output are front-loaded in the first sentence, followed by privacy, limits, and pricing. The pricing block is dense (two URLs, key header, per-call price) but each element is actionable for an agent deciding whether it can invoke 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?

For a read-only, three-parameter tool with no output schema, the description covers output shape, privacy, rate limits, and auth. The only gap is that 'files are deleted' doesn't map to the actual string inputs, leaving a small ambiguity about whether file uploads are involved.

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%, so all three parameters including the caseSensitive default are already documented in the schema. The description only restates the one-item-per-line convention and adds nothing about case sensitivity behavior or duplicate handling, so 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 ('Compare two lists') plus the exact output shape ('items only in A, only in B and in both, with counts'), so an agent knows what it produces before opening the schema. The one-item-per-line input format is stated up front, making it distinguishable from any other list or set operation.

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?

Usage conditions are implied rather than spelled out: the description names the free tier (5 calls/day per IP) and the two paid access paths, which helps an agent decide whether it can call at all. However, it gives no explicit when-to-use/when-not guidance or alternatives for comparing sets differently (e.g. ordering, duplicates, fuzzy matching).

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