Skip to main content
Glama

Factbook Compare

factbook_compare
Read-onlyIdempotent

Compare CIA World Factbook fields side by side across up to 10 countries, population, median age, life expectancy, real GDP per capita, GDP growth, inflation, unemployment, public debt, military expenditures, area, internet users, etc. Use for "compare population and GDP per capita of Kenya, Nigeria and Ghana" or "life expectancy in Japan vs Germany". Field names match the Factbook headings (case-insensitive, partial match allowed; "Economy > Exports" pins a section). factbook_fields lists the exact names.

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": {
      "fields": [
        "Population",
        "Real GDP per capita",
        "Life expectancy at birth"
      ],
      "countries": [
        "Kenya",
        "Nigeria",
        "Ghana"
      ]
    },
    "name": "factbook_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesFactbook field names, e.g. ["Population", "Real GDP per capita", "Life expectancy at birth"]. Max 10.
countriesYesTwo to ten country names or ISO codes, e.g. ["Kenya", "Nigeria", "Ghana"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description only needs to add context — and it does, disclosing case-insensitive partial field matching, the "Economy > Exports" section-pinning syntax, and the 10-country ceiling. It stops short of saying what happens on unknown country or field names, but the added matching semantics are genuinely useful.

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?

Front-loaded with the core action and scope, then examples, then matching rules — a sensible order. The field enumeration drifts into a long "etc." list that is slightly padded, but no sentence is wasted.

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 two-parameter read-only comparison tool with no output schema, the description covers scope, field-name syntax, and examples. The one gap is that it never sketches the shape of the result (a per-country side-by-side set of values), which an agent would benefit from knowing.

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 would be 3, but the description goes beyond it by explaining that field names match Factbook headings case-insensitively with partial matching and that ">" pins a section. That is real invocation guidance the schema does not convey.

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 CIA World Factbook fields side by side across up to 10 countries," then enumerates concrete fields so the agent knows the data domain. This is clearly distinguishable from factbook_country (single entity) and factbook_fields (field discovery).

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?

Provides two natural-language example queries that map directly onto the parameters, giving a clear picture of when to reach for this tool. It also routes the agent to factbook_fields for exact field names, but never states the negative case (e.g., a single country should use factbook_country).

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.