Skip to main content
Glama

factanker

Compare entities

compare_entities
Read-onlyIdempotent

Concrete figures from company filings, bank reports, tax returns, government awards and official registers; each value carries the filing it came from and a citable URL. One metric for several entities on one shared period. Fits 'X versus Y', 'which of these is higher' and 'rank these' questions in a single call. Entities do not share coverage: Kings County has childcare prices from 2017, Autauga County from 2008 — two separate get_facts calls return 2022 and 2008 without flagging that they are different years. This tool picks the most recent year for which EVERY requested entity has a value, and if no such year exists it returns common_year: null and compares nothing rather than guessing. Entities without a value for the shared year come back with status 'no_observation' rather than a neighbouring year. Each result carries its status; an estimated value against a measured one is not like-for-like.

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": {
      "entities": "<entities>",
      "predicate": "<predicate>"
    },
    "name": "compare_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoforce this year instead of the most recent shared one
entitiesYes2-12 names or IDs
predicateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, closed-world behavior, and the description goes well beyond them: it discloses the shared-year selection rule, the explicit `common_year: null` no-op instead of guessing, the 'no_observation' status instead of borrowing a neighbouring year, and the estimated-vs-measured like-for-like caveat. This is exactly the behavioral context annotations cannot carry.

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?

Dense but mostly load-bearing; each clause about coverage divergence and status codes adds decision-relevant information. Minor weakness: the opening sentence describes the underlying data corpus rather than the tool's action, so the actual operation arrives in sentence two.

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 description does the work of explaining return contents (per-entity status, common_year, citable URL), which is the right call. The remaining hole is predicate semantics — the one required parameter the definition never characterizes.

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 67%; `year` and `entities` are already documented in the schema and the description only reinforces them (most recent shared year, 2-12 constraint). The `predicate` parameter is undocumented in both places, and the description never explains what a predicate is or points to describe_predicate, leaving the coverage gap uncompensated.

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 operation and scope: 'One metric for several entities on one shared period', with the return shape (value plus filing and citable URL) named. It also distinguishes itself from doing 'two separate get_facts calls', so an agent can tell it apart from the nearest sibling without opening a schema.

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

Usage Guidelines5/5

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

Explicitly enumerates the question shapes it serves ('X versus Y', 'which of these is higher', 'rank these') and names the alternative pattern it replaces (two separate get_facts calls) along with the failure mode of that alternative (mixed years go unflagged). The `year` parameter is positioned as the override when the shared-year default is not wanted.

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