Skip to main content
Glama

List World Bank Countries

worldbank_list_countries
Read-onlyIdempotent

List countries with ISO codes, region, income level, lending type, capital, and coordinates, narrowed by region, income_level, lending_type, and text (filter), combined by AND. With source_id, lists that dataset's own entities instead (source_id=50 with filter="Kenya" returns Kenya and its provinces).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "worldbank_list_countries"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based.
filterNoText whose every word must appear in an entry's id and name together, ignoring case, diacritics, punctuation, and order; a word may be part of a longer one ("nairobi kenya" matches KEN_Nairobi_Province_KE.NP_51328_KEN004). Aggregates match only with include_aggregates=true. Applied before paging, so the totals count matches; one with no letter or digit is ignored.
regionNoRegion code, as region.id reports: EAS (East Asia & Pacific), ECS (Europe & Central Asia), LCN (Latin America & Caribbean), MEA (Middle East, North Africa, Afghanistan & Pakistan), NAC (North America), SAS (South Asia), or SSF (Sub-Saharan Africa). Other World Bank region and grouping codes (AFE, AFW, ARB, EUU, LDC, …) filter by membership.
per_pageNoResults per page (default: server default); sizes above 300 are served at that maximum, with a notice.
source_idNoSource ID (from worldbank_list_sources) whose own entities to list, as id, name, and sourceId only. region, income_level, lending_type, and include_aggregates=true are rejected with it (the default false keeps every entity); filter applies.
income_levelNoIncome group code: LIC (Low), LMC (Lower middle), UMC (Upper middle), or HIC (High income).
lending_typeNoLending type code: IDX (IDA), IBD (IBRD), IDB (Blend, eligible for both), or LNX (Not classified). worldbank_get_poverty takes IDX, IBD, and IDB for its lending groups.
include_aggregatesNoAlso return regional, income-group, and world aggregates (default false: countries only). No effect with region, income_level, or lending_type, which never return aggregates.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoExplains an empty result (which filters matched nothing), a page past the end, or a reduced page size.
countriesNoMatching entries on this page.
totalCountNoMatching entries before pagination.
totalPagesNoTotal pages at perPage.
currentPageNoPage number; past totalPages when the request ran off the end.
appliedFiltersNoParameters in force for this listing; a filter not applied is omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changed
    • changedInput schema / properties / filter / description
      Previous value: -"Text that narrows either listing to entries whose id and name, together, contain every word of it. Case, diacritics, punctuation, and word order are ignored, and a word may be part of a longer one: \"nairobi kenya\" matches KEN_Nairobi_Province_KE.NP_51328_KEN004, and \"ZM\" matches ZM.WE. Aggregate names such as Sub-Saharan Africa match only with include_aggregates=true. Applied after the other filters and before pagination, so totalCount and totalPages count matches. A filter with no letter or digit, blank included, is absent."New value: +"Text whose every word must appear in an entry's id and name together, ignoring case, diacritics, punctuation, and order; a word may be part of a longer one (\"nairobi kenya\" matches KEN_Nairobi_Province_KE.NP_51328_KEN004). Aggregates match only with include_aggregates=true. Applied before paging, so the totals count matches; one with no letter or digit is ignored."
    • changedInput schema / properties / include_aggregates / description
      Previous value: -"When true, includes regional, income-group, and world aggregate entries alongside individual countries. Default false (individual countries only). No aggregate is returned under region, income_level, or lending_type, whichever code is given, so this changes nothing when any of them is set."New value: +"Also return regional, income-group, and world aggregates (default false: countries only). No effect with region, income_level, or lending_type, which never return aggregates."
    • changedInput schema / properties / income_level / description
      Previous value: -"Filter by income group code: LIC (Low income), LMC (Lower middle income), UMC (Upper middle income), HIC (High income)."New value: +"Income group code: LIC (Low), LMC (Lower middle), UMC (Upper middle), or HIC (High income)."
    • changedInput schema / properties / lending_type / anyOf
      Previous value: -[
      -  {
      -    "const": "",
      -    "type": "string"
      -  },
      -  {
      -    "description": "IDX (IDA), IBD (IBRD), IDB (Blend), or LNX (Not classified).",
      -    "enum": [
      -      "IBD",
      -      "IDB",
      -      "IDX",
      -      "LNX"
      -    ],
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "",
      +    "type": "string"
      +  },
      +  {
      +    "description": "A lending type code.",
      +    "enum": [
      +      "IBD",
      +      "IDB",
      +      "IDX",
      +      "LNX"
      +    ],
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / lending_type / description
      Previous value: -"Filter by World Bank lending type code: IDX (IDA), IBD (IBRD), IDB (Blend — eligible for both), or LNX (Not classified). IDX, IBD, and IDB are also the codes worldbank_get_poverty takes for its lending groups; a country's lendingType field reports the name (IDA, IBRD, Blend, Not classified)."New value: +"Lending type code: IDX (IDA), IBD (IBRD), IDB (Blend, eligible for both), or LNX (Not classified). worldbank_get_poverty takes IDX, IBD, and IDB for its lending groups."
    • changedInput schema / properties / page / description
      Previous value: -"Pagination page number (1-based)."New value: +"Page number, 1-based."
    • changedInput schema / properties / per_page / description
      Previous value: -"Results per page (default: server default). Positive integers above 300 are served at that maximum with the requested and served sizes echoed and a notice. totalPages uses the served size."New value: +"Results per page (default: server default); sizes above 300 are served at that maximum, with a notice."
    • changedInput schema / properties / region / description
      Previous value: -"Filter by World Bank region code. A country's region.id is one of EAS (East Asia & Pacific), ECS (Europe & Central Asia), LCN (Latin America & Caribbean), MEA (Middle East, North Africa, Afghanistan & Pakistan), NAC (North America), SAS (South Asia), or SSF (Sub-Saharan Africa). Any other World Bank region or grouping code also filters, by membership: AFE (Africa Eastern and Southern), AFW (Africa Western and Central), ARB (Arab World), EUU (European Union), LDC (Least developed countries), and the rest of the codes the World Bank publishes for regions."New value: +"Region code, as region.id reports: EAS (East Asia & Pacific), ECS (Europe & Central Asia), LCN (Latin America & Caribbean), MEA (Middle East, North Africa, Afghanistan & Pakistan), NAC (North America), SAS (South Asia), or SSF (Sub-Saharan Africa). Other World Bank region and grouping codes (AFE, AFW, ARB, EUU, LDC, …) filter by membership."
    • changedInput schema / properties / source_id / description
      Previous value: -"Select a source-specific entity listing. Entries carry canonical id, name and sourceId only. region, income_level, lending_type, and include_aggregates=true are unavailable here (include_aggregates' default false keeps every source entity); filter applies."New value: +"Source ID (from worldbank_list_sources) whose own entities to list, as id, name, and sourceId only. region, income_level, lending_type, and include_aggregates=true are rejected with it (the default false keeps every entity); filter applies."
    • changedOutput schema / properties / appliedFilters / description
      Previous value: -"The effective listing parameters — which filters were in force and the page size served."New value: +"Parameters in force for this listing; a filter not applied is omitted."
    • changedOutput schema / properties / appliedFilters / properties / filter / description
      Previous value: -"Text filter applied, trimmed; omitted when none."New value: +"filter applied, trimmed."
    • changedOutput schema / properties / appliedFilters / properties / includeAggregates / description
      Previous value: -"Whether aggregates were requested, including the default of false."New value: +"include_aggregates in force."
    • changedOutput schema / properties / appliedFilters / properties / incomeLevel / description
      Previous value: -"Income level code applied, omitted when none."New value: +"income_level applied."
    • changedOutput schema / properties / appliedFilters / properties / lendingType / description
      Previous value: -"Lending type code applied, omitted when none."New value: +"lending_type applied."
    • changedOutput schema / properties / appliedFilters / properties / page / description
      Previous value: -"Page number requested."New value: +"Page requested."
    • changedOutput schema / properties / appliedFilters / properties / perPage / description
      Previous value: -"Results per page actually served — the requested size or server default, reduced to the page cap when larger. totalPages is counted at this size."New value: +"Page size served, after any reduction to the page maximum."
    • changedOutput schema / properties / appliedFilters / properties / region / description
      Previous value: -"Region code applied, omitted when none."New value: +"region applied."
    • changedOutput schema / properties / appliedFilters / properties / requestedPerPage / description
      Previous value: -"Page size asked for, present only when it exceeded the page cap and perPage was reduced."New value: +"Page size asked for, or the server default; present only when perPage was reduced."
    • changedOutput schema / properties / appliedFilters / properties / sourceId / description
      Previous value: -"Source dataset requested, omitted for the global country listing."New value: +"source_id requested."
    • changedOutput schema / properties / countries / description
      Previous value: -"Countries (and optionally aggregates) matching the filters."New value: +"Matching entries on this page."
    • changedOutput schema / properties / countries / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "An entity from a selected source.",
      -    "properties": {
      -      "id": {
      -        "description": "Canonical source entity ID, accepted unchanged by worldbank_get_data.",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Source entity name.",
      -        "type": "string"
      -      },
      -      "sourceId": {
      -        "description": "Source owning this entity.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "sourceId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A country or aggregate entry.",
      -    "properties": {
      -      "capitalCity": {
      -        "description": "Capital city name (empty for aggregates).",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "Country or aggregate ID (ISO2 or WB aggregate code).",
      -        "type": "string"
      -      },
      -      "incomeLevel": {
      -        "additionalProperties": false,
      -        "description": "World Bank income classification.",
      -        "properties": {
      -          "id": {
      -            "description": "Income level code.",
      -            "type": "string"
      -          },
      -          "name": {
      -            "description": "Income level name.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      "isAggregate": {
      -        "description": "True when this entry is a regional or income-group aggregate rather than an individual country.",
      -        "type": "boolean"
      -      },
      -      "iso2": {
      -        "description": "ISO2 country code.",
      -        "type": "string"
      -      },
      -      "latitude": {
      -        "description": "Capital latitude (empty for aggregates).",
      -        "type": "string"
      -      },
      -      "lendingType": {
      -        "description": "World Bank lending type name: IDA, IBRD, Blend, or Not classified (lending_type filters by the codes IDX, IBD, IDB, LNX). Aggregates report Aggregates.",
      -        "type": "string"
      -      },
      -      "longitude": {
      -        "description": "Capital longitude (empty for aggregates).",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Country or aggregate name.",
      -        "type": "string"
      -      },
      -      "region": {
      -        "additionalProperties": false,
      -        "description": "World Bank region this country belongs to.",
      -        "properties": {
      -          "id": {
      -            "description": "Region code.",
      -            "type": "string"
      -          },
      -          "name": {
      -            "description": "Region name.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "iso2",
      -      "name",
      -      "region",
      -      "incomeLevel",
      -      "lendingType",
      -      "capitalCity",
      -      "longitude",
      -      "latitude",
      -      "isAggregate"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "A source entity.",
      +    "properties": {
      +      "id": {
      +        "description": "Entity ID, which worldbank_get_data takes unchanged.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Entity name.",
      +        "type": "string"
      +      },
      +      "sourceId": {
      +        "description": "Source owning this entity.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "sourceId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A country or aggregate.",
      +    "properties": {
      +      "capitalCity": {
      +        "description": "Capital city; empty for aggregates, as are the coordinates.",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Three-character code (USA; SSF for an aggregate).",
      +        "type": "string"
      +      },
      +      "incomeLevel": {
      +        "additionalProperties": false,
      +        "description": "Income classification.",
      +        "properties": {
      +          "id": {
      +            "description": "Income level code.",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Income level name.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "isAggregate": {
      +        "description": "True for a regional or income-group aggregate.",
      +        "type": "boolean"
      +      },
      +      "iso2": {
      +        "description": "ISO2 code.",
      +        "type": "string"
      +      },
      +      "latitude": {
      +        "description": "Capital latitude.",
      +        "type": "string"
      +      },
      +      "lendingType": {
      +        "description": "Lending type name: IDA, IBRD, Blend, Not classified, or Aggregates.",
      +        "type": "string"
      +      },
      +      "longitude": {
      +        "description": "Capital longitude.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Country or aggregate name.",
      +        "type": "string"
      +      },
      +      "region": {
      +        "additionalProperties": false,
      +        "description": "World Bank region.",
      +        "properties": {
      +          "id": {
      +            "description": "Region code.",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Region name.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "iso2",
      +      "name",
      +      "region",
      +      "incomeLevel",
      +      "lendingType",
      +      "capitalCity",
      +      "longitude",
      +      "latitude",
      +      "isAggregate"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / countries / items / description
      Previous value: -"A global country or aggregate, or an entity from the selected source."New value: +"A country or aggregate, or a source entity."
    • changedOutput schema / properties / currentPage / description
      Previous value: -"Page number requested — past totalPages when the request ran off the end."New value: +"Page number; past totalPages when the request ran off the end."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `source_not_found`: source_id does not name a source. `source_not_queryable`: The selected source has no supported country/series/time layout. `unsupported_source_filter`: Global classification filters are combined with source_id. `invalid_filter`: An invalid region or income_level code was provided. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `source_not_found`: source_id does not name a source. `source_not_queryable`: The source lacks a country/series/time layout. `unsupported_source_filter`: Classification filters are combined with source_id. `invalid_filter`: Unknown region or income_level code. `upstream_timeout`: The World Bank Indicators API did not answer within the call's 50-second budget. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "source_not_found",
      -  "source_not_queryable",
      -  "unsupported_source_filter",
      -  "invalid_filter"
      -]New value: +[
      +  "source_not_found",
      +  "source_not_queryable",
      +  "unsupported_source_filter",
      +  "invalid_filter",
      +  "upstream_timeout"
      +]
    • changedOutput schema / properties / notice / description
      Previous value: -"Context for an empty page — which filters matched nothing, or the page range that exists when the requested page is past the end — or for a page size reduced to the page cap."New value: +"Explains an empty result (which filters matched nothing), a page past the end, or a reduced page size."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Total matching entries before pagination (includes aggregates if include_aggregates=true)."New value: +"Matching entries before pagination."
    • changedOutput schema / properties / totalPages / description
      Previous value: -"Total number of pages."New value: +"Total pages at perPage."
  2. Changed5 schema fields changed
    • addedInput schema / properties / filter
      Added value: +{
      +  "description": "Text that narrows either listing to entries whose id and name, together, contain every word of it. Case, diacritics, punctuation, and word order are ignored, and a word may be part of a longer one: \"nairobi kenya\" matches KEN_Nairobi_Province_KE.NP_51328_KEN004, and \"ZM\" matches ZM.WE. Aggregate names such as Sub-Saharan Africa match only with include_aggregates=true. Applied after the other filters and before pagination, so totalCount and totalPages count matches. A filter with no letter or digit, blank included, is absent.",
      +  "type": "string"
      +}
    • changedInput schema / properties / include_aggregates / description
      Previous value: -"When true, includes regional, income-group, and world aggregate entries alongside individual countries. Default false (individual countries only). No aggregate is returned under region or lending_type, whichever code is given, so this changes nothing when either is set."New value: +"When true, includes regional, income-group, and world aggregate entries alongside individual countries. Default false (individual countries only). No aggregate is returned under region, income_level, or lending_type, whichever code is given, so this changes nothing when any of them is set."
    • removedInput schema / properties / per_page / maximum
      Removed value: -9007199254740991
    • changedInput schema / properties / source_id / description
      Previous value: -"Select a source-specific entity listing. Entries carry canonical id, name and sourceId only; global classification filters and include_aggregates=true are unavailable. Default false keeps all source entities."New value: +"Select a source-specific entity listing. Entries carry canonical id, name and sourceId only. region, income_level, lending_type, and include_aggregates=true are unavailable here (include_aggregates' default false keeps every source entity); filter applies."
    • addedOutput schema / properties / appliedFilters / properties / filter
      Added value: +{
      +  "description": "Text filter applied, trimmed; omitted when none.",
      +  "type": "string"
      +}
  3. Changed12 schema fields changed
    • changedInput schema / properties / per_page / description
      Previous value: -"Results per page (default: server default, max: 300). One page holds at most 150 entries, which keeps a response within about 50 KB; a larger value is reduced to that cap and echoed as appliedFilters.perPage, and totalPages is counted at the reduced size, so page + 1 continues where a page ends; notice discloses the reduction whenever the result runs past one page."New value: +"Results per page (default: server default). Positive integers above 300 are served at that maximum with the requested and served sizes echoed and a notice. totalPages uses the served size."
    • changedInput schema / properties / per_page / maximum
      Previous value: -300New value: +9007199254740991
    • addedInput schema / properties / source_id
      Added value: +{
      +  "description": "Select a source-specific entity listing. Entries carry canonical id, name and sourceId only; global classification filters and include_aggregates=true are unavailable. Default false keeps all source entities.",
      +  "pattern": "^\\s*\\d*\\s*$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / appliedFilters / properties / sourceId
      Added value: +{
      +  "description": "Source dataset requested, omitted for the global country listing.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / countries / items / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / countries / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "An entity from a selected source.",
      +    "properties": {
      +      "id": {
      +        "description": "Canonical source entity ID, accepted unchanged by worldbank_get_data.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Source entity name.",
      +        "type": "string"
      +      },
      +      "sourceId": {
      +        "description": "Source owning this entity.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "sourceId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A country or aggregate entry.",
      +    "properties": {
      +      "capitalCity": {
      +        "description": "Capital city name (empty for aggregates).",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Country or aggregate ID (ISO2 or WB aggregate code).",
      +        "type": "string"
      +      },
      +      "incomeLevel": {
      +        "additionalProperties": false,
      +        "description": "World Bank income classification.",
      +        "properties": {
      +          "id": {
      +            "description": "Income level code.",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Income level name.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "isAggregate": {
      +        "description": "True when this entry is a regional or income-group aggregate rather than an individual country.",
      +        "type": "boolean"
      +      },
      +      "iso2": {
      +        "description": "ISO2 country code.",
      +        "type": "string"
      +      },
      +      "latitude": {
      +        "description": "Capital latitude (empty for aggregates).",
      +        "type": "string"
      +      },
      +      "lendingType": {
      +        "description": "World Bank lending type name: IDA, IBRD, Blend, or Not classified (lending_type filters by the codes IDX, IBD, IDB, LNX). Aggregates report Aggregates.",
      +        "type": "string"
      +      },
      +      "longitude": {
      +        "description": "Capital longitude (empty for aggregates).",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Country or aggregate name.",
      +        "type": "string"
      +      },
      +      "region": {
      +        "additionalProperties": false,
      +        "description": "World Bank region this country belongs to.",
      +        "properties": {
      +          "id": {
      +            "description": "Region code.",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Region name.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "iso2",
      +      "name",
      +      "region",
      +      "incomeLevel",
      +      "lendingType",
      +      "capitalCity",
      +      "longitude",
      +      "latitude",
      +      "isAggregate"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / countries / items / description
      Previous value: -"A country or aggregate entry."New value: +"A global country or aggregate, or an entity from the selected source."
    • removedOutput schema / properties / countries / items / properties
      Removed value: -{
      -  "capitalCity": {
      -    "description": "Capital city name (empty for aggregates).",
      -    "type": "string"
      -  },
      -  "id": {
      -    "description": "Country or aggregate ID (ISO2 or WB aggregate code).",
      -    "type": "string"
      -  },
      -  "incomeLevel": {
      -    "additionalProperties": false,
      -    "description": "World Bank income classification.",
      -    "properties": {
      -      "id": {
      -        "description": "Income level code.",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Income level name.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "isAggregate": {
      -    "description": "True when this entry is a regional or income-group aggregate rather than an individual country.",
      -    "type": "boolean"
      -  },
      -  "iso2": {
      -    "description": "ISO2 country code.",
      -    "type": "string"
      -  },
      -  "latitude": {
      -    "description": "Capital latitude (empty for aggregates).",
      -    "type": "string"
      -  },
      -  "lendingType": {
      -    "description": "World Bank lending type name: IDA, IBRD, Blend, or Not classified (lending_type filters by the codes IDX, IBD, IDB, LNX). Aggregates report Aggregates.",
      -    "type": "string"
      -  },
      -  "longitude": {
      -    "description": "Capital longitude (empty for aggregates).",
      -    "type": "string"
      -  },
      -  "name": {
      -    "description": "Country or aggregate name.",
      -    "type": "string"
      -  },
      -  "region": {
      -    "additionalProperties": false,
      -    "description": "World Bank region this country belongs to.",
      -    "properties": {
      -      "id": {
      -        "description": "Region code.",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Region name.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / countries / items / required
      Removed value: -[
      -  "id",
      -  "iso2",
      -  "name",
      -  "region",
      -  "incomeLevel",
      -  "lendingType",
      -  "capitalCity",
      -  "longitude",
      -  "latitude",
      -  "isAggregate"
      -]
    • removedOutput schema / properties / countries / items / type
      Removed value: -"object"
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: An invalid region or income_level code was provided. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `source_not_found`: source_id does not name a source. `source_not_queryable`: The selected source has no supported country/series/time layout. `unsupported_source_filter`: Global classification filters are combined with source_id. `invalid_filter`: An invalid region or income_level code was provided. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "invalid_filter"
      -]New value: +[
      +  "source_not_found",
      +  "source_not_queryable",
      +  "unsupported_source_filter",
      +  "invalid_filter"
      +]
  4. Changed4 schema fields changed
    • changedInput schema / properties / per_page / description
      Previous value: -"Results per page (default: server default, max: 300)."New value: +"Results per page (default: server default, max: 300). One page holds at most 150 entries, which keeps a response within about 50 KB; a larger value is reduced to that cap and echoed as appliedFilters.perPage, and totalPages is counted at the reduced size, so page + 1 continues where a page ends; notice discloses the reduction whenever the result runs past one page."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "countries",
      -      "totalCount",
      -      "currentPage",
      -      "totalPages"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "countries",
      +      "appliedFilters",
      +      "totalCount",
      +      "currentPage",
      +      "totalPages"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / appliedFilters
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The effective listing parameters — which filters were in force and the page size served.",
      +  "properties": {
      +    "includeAggregates": {
      +      "description": "Whether aggregates were requested, including the default of false.",
      +      "type": "boolean"
      +    },
      +    "incomeLevel": {
      +      "description": "Income level code applied, omitted when none.",
      +      "type": "string"
      +    },
      +    "lendingType": {
      +      "description": "Lending type code applied, omitted when none.",
      +      "type": "string"
      +    },
      +    "page": {
      +      "description": "Page number requested.",
      +      "type": "number"
      +    },
      +    "perPage": {
      +      "description": "Results per page actually served — the requested size or server default, reduced to the page cap when larger. totalPages is counted at this size.",
      +      "type": "number"
      +    },
      +    "region": {
      +      "description": "Region code applied, omitted when none.",
      +      "type": "string"
      +    },
      +    "requestedPerPage": {
      +      "description": "Page size asked for, present only when it exceeded the page cap and perPage was reduced.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "includeAggregates",
      +    "page",
      +    "perPage"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Context for an empty page: which filters matched nothing, or the page range that exists when the requested page is past the end."New value: +"Context for an empty page — which filters matched nothing, or the page range that exists when the requested page is past the end — or for a page size reduced to the page cap."
  5. Changed4 schema fields changed
    • changedInput schema / properties / include_aggregates / description
      Previous value: -"When true, includes regional, income-group, and world aggregate entries alongside individual countries. Default false (individual countries only)."New value: +"When true, includes regional, income-group, and world aggregate entries alongside individual countries. Default false (individual countries only). No aggregate is returned under region or lending_type, whichever code is given, so this changes nothing when either is set."
    • addedInput schema / properties / lending_type
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "",
      +      "type": "string"
      +    },
      +    {
      +      "description": "IDX (IDA), IBD (IBRD), IDB (Blend), or LNX (Not classified).",
      +      "enum": [
      +        "IBD",
      +        "IDB",
      +        "IDX",
      +        "LNX"
      +      ],
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Filter by World Bank lending type code: IDX (IDA), IBD (IBRD), IDB (Blend — eligible for both), or LNX (Not classified). IDX, IBD, and IDB are also the codes worldbank_get_poverty takes for its lending groups; a country's lendingType field reports the name (IDA, IBRD, Blend, Not classified)."
      +}
    • changedInput schema / properties / region / description
      Previous value: -"Filter by World Bank region code. Valid codes: EAS (East Asia & Pacific), ECS (Europe & Central Asia), LCN (Latin America & Caribbean), MEA (Middle East & North Africa), NAC (North America), SAS (South Asia), SSF (Sub-Saharan Africa)."New value: +"Filter by World Bank region code. A country's region.id is one of EAS (East Asia & Pacific), ECS (Europe & Central Asia), LCN (Latin America & Caribbean), MEA (Middle East, North Africa, Afghanistan & Pakistan), NAC (North America), SAS (South Asia), or SSF (Sub-Saharan Africa). Any other World Bank region or grouping code also filters, by membership: AFE (Africa Eastern and Southern), AFW (Africa Western and Central), ARB (Arab World), EUU (European Union), LDC (Least developed countries), and the rest of the codes the World Bank publishes for regions."
    • changedOutput schema / properties / countries / items / properties / lendingType / description
      Previous value: -"World Bank lending type classification."New value: +"World Bank lending type name: IDA, IBRD, Blend, or Not classified (lending_type filters by the codes IDX, IBD, IDB, LNX). Aggregates report Aggregates."
  6. Changed2 schema fields changed
    • changedOutput schema / properties / currentPage / description
      Previous value: -"Current page number."New value: +"Page number requested — past totalPages when the request ran off the end."
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Context for an empty page: which filters matched nothing, or the page range that exists when the requested page is past the end.",
      +  "type": "string"
      +}
  7. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "countries",
      +      "totalCount",
      +      "currentPage",
      +      "totalPages"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: An invalid region or income_level code was provided. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "invalid_filter"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "countries",
      -  "totalCount",
      -  "currentPage",
      -  "totalPages"
      -]
  8. Changed7 schema fields changed
    • addedOutput schema / properties / currentPage
      Added value: +{
      +  "description": "Current page number.",
      +  "type": "number"
      +}
    • removedOutput schema / properties / page
      Removed value: -{
      -  "description": "Current page number.",
      -  "type": "number"
      -}
    • removedOutput schema / properties / pages
      Removed value: -{
      -  "description": "Total number of pages.",
      -  "type": "number"
      -}
    • removedOutput schema / properties / total
      Removed value: -{
      -  "description": "Total matching entries before pagination (includes aggregates if include_aggregates=true).",
      -  "type": "number"
      -}
    • addedOutput schema / properties / totalCount
      Added value: +{
      +  "description": "Total matching entries before pagination (includes aggregates if include_aggregates=true).",
      +  "type": "number"
      +}
    • addedOutput schema / properties / totalPages
      Added value: +{
      +  "description": "Total number of pages.",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "countries",
      -  "total",
      -  "page",
      -  "pages"
      -]New value: +[
      +  "countries",
      +  "totalCount",
      +  "currentPage",
      +  "totalPages"
      +]
  9. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so safety semantics are covered. Beyond those, the description adds genuinely behavioral detail: filters are AND-combined, and source_id changes the result domain to a dataset's hierarchical entities (Kenya plus provinces). It does not mention aggregate exclusion defaults, the per_page cap, or pagination behavior, though those live in the schema.

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?

Two sentences, both front-loaded with the resource and its narrowing options, and the example in the second sentence earns its space by clarifying a non-obvious hierarchical return. The first sentence is densely packed with comma-separated field names, which slightly slows parsing but contains no filler.

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 an output schema present, the description does not need to explain return shapes, and all eight parameters are fully documented in the schema; the description adds the cross-parameter combination rule and the source_id mode switch. Minor gaps remain around paging behavior and aggregate defaults in the prose, but these are covered structurally.

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%, so all eight parameters are already richly documented in the schema, making 3 the baseline. The description contributes the AND-combination rule for region/income_level/lending_type/filter, which the schema does not state, but otherwise restates filter and source_id semantics that the schema already explains in greater depth.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("List countries") and enumerates the returned attributes (ISO codes, region, income level, lending type, capital, coordinates), so the agent knows exactly what comes back. It also flags the alternate mode triggered by source_id. It does not explicitly distinguish itself from worldbank_get_country, which is the nearest sibling for country lookups.

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

Usage Guidelines3/5

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

The description implies when to use the tool (when you want a filtered set of countries/entities) and states that the narrowing parameters combine with AND, plus that source_id switches to a dataset's own entities with a concrete example. It never states when not to use it or names a sibling alternative for single-country retrievals or source enumeration.

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.