Skip to main content
Glama

compare_entities

Read-onlyIdempotent

Compare one indicator across multiple entities, such as GDP of countries, to analyze cross-region differences and create comparative charts.

Instructions

Compare ONE indicator across MULTIPLE entities (e.g. GDP of DEU vs USA vs CHN). Returns wide-format rows like [{time:"2020", DEU:3846, USA:20937, CHN:14688}, …]. Use this for country comparisons, cross-region analyses, or any chart that compares the same metric across entities.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entitiesYesEntity codes to compare (max 50). E.g. ["DEU","USA","CHN"]
indicatorYesIndicator ID to compare. Get from list_indicators.
timeNoOptional time range: "2010-2023" or "2020"
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=false. The description adds behavioral traits like output format (wide-format rows) and an example. No contradiction with annotations.

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?

Three sentences: purpose with example, output format, and use cases. Front-loaded with core purpose, no extraneous words. Highly efficient.

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?

Tool is relatively simple with 3 parameters and rich annotations. Description explains purpose, output format, and use cases adequately. Could mention that entities must exist in the system, but references list_indicators for indicator retrieval.

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%; all parameters have descriptions. The description reinforces that indicator is singular and entities are multiple but adds minimal new semantics beyond the schema. Baseline 3 is appropriate.

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?

Description clearly states the tool compares one indicator across multiple entities, provides an example (GDP of DEU vs USA vs CHN), and distinguishes from sibling tools like get_entity_data by specifying cross-entity comparison.

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?

Description explicitly mentions use cases (country comparisons, cross-region analyses, charts comparing same metric across entities). It does not mention when not to use or alternatives like get_entity_data, but the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Autario/autario-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server