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 €15/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. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/idempotentHint/openWorldHint annotations by disclosing data handling (runs on the provider's server, inputs deleted after the call, nothing stored), the rate limit, and both authentication paths. This is exactly the kind of context an agent cannot infer from structured fields. Minor wrinkle: it says 'files are deleted' although the schema only accepts strings, which is a slightly loose phrasing rather than a contradiction of the annotations.

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 purpose is front-loaded and stated in the first clause, followed by the privacy and pricing facts. The pricing sentence is dense with two full URLs and a currency symbol, which crowds an otherwise tight definition, though each piece does carry information the caller needs.

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?

For a three-parameter, read-only utility with rich annotations and a fully documented schema, the description covers what is returned, how inputs are formatted, retention policy, rate limits, and authentication. No output schema exists, yet the description already enumerates the result shape, so nothing essential is missing.

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%, with listA, listB and caseSensitive (default false, 'Capital letters count as different') all documented. The description restates the 'one item per line' format but adds no new meaning about case handling or duplicate treatment, so the baseline of 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 concrete verb and resource (compare two lists) and names the three outputs (only in A, only in B, in both) plus counts. The input format ('one item per line') is stated up front, so an agent knows exactly what the tool does without opening the schema.

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?

Gives clear situational context for a caller: 5 free calls/day per IP, then a paid tier via X-API-Key or pay-per-call via x402. There is no competing sibling that does list comparison, so no alternative routing is needed, but the description never explicitly states when to prefer this tool over doing the diff locally.

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