Skip to main content
Glama

On the Books

Compare towns

compare
Read-onlyIdempotent

Ask the same question of 2 or 3 towns and get one comparison, each town's rule cited to its own code. Needs a connected pass (sign in) or a key; counts one question per town. Takes 20–60 seconds. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "towns": "<towns>",
      "question": "<question>"
    },
    "name": "compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
townsYesTwo or three town ids from find_town.
questionYesThe question to put to every town.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the auth requirement (connected pass or key), the billing model (one question counted per town), and expected latency (20–60 seconds) — exactly the operational facts an agent needs before committing. It also confirms the output shape (one comparison with per-town citations).

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?

Four short sentences, front-loaded with what it does, then prerequisites, cost, and a safety marker. Nothing is redundant and each sentence carries distinct information.

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?

With no output schema, the description compensates by describing the return value (one comparison, per-town citations) and the timing. Combined with full schema coverage and safety annotations, nothing material is missing for correct invocation.

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 the baseline is 3, but the description adds real meaning: the `question` is applied identically to every town, and the town count is bounded at 2–3 producing a single merged answer rather than separate results. That clarifies how the two parameters interact rather than just restating them.

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 gives a concrete verb and resource — ask the same question of 2 or 3 towns and receive a single comparison — and adds the distinguishing detail that each town's rule is cited to its own code. This makes it clearly different in scope from a single-town query like `ask`, without needing to name it.

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?

It states the operating envelope well: requires a connected pass (sign in) or a key, costs one question per town, and takes 20–60 seconds. What it doesn't say is when to prefer this over querying towns individually, or an explicit exclusion, so it stops short of a 5.

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