Skip to main content
Glama

Search World Bank Indicators

worldbank_search_indicators
Read-onlyIdempotent

Search the World Bank indicator catalog by keyword, topic, or source for indicator IDs to pass to worldbank_get_data. Provide at least one of query, topic_id, or source_id; together they combine by AND. Exact ID or name matches rank first, then names starting with the phrase as whole words, whole-phrase matches, matches where every term is a whole word of the ID or name, other ID or name matches, and description-only matches; within each, World Development Indicators come first, then other live sources, then archives; among names starting with the phrase, one continuing it with ", total" leads its source (Population, total for population); and a series precedes its breakdowns by sex, area, or age. Each indicator ID appears once, even when two sources publish it.

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_search_indicators"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based.
queryNoKeywords, an indicator name, or an ID (e.g. "GDP per capita", "NY.GDP.MKTP.CD"); every term must match the ID, name, or full description, in any order. Punctuation is ignored, so it needs a letter or digit.
per_pageNoResults per page (default: server default); sizes above 3000 are served at that maximum, with a notice.
topic_idNoTopic ID from worldbank_list_topics (e.g. "3" for Economy & Growth).
source_idNoSource ID from worldbank_list_sources (e.g. "2" for World Development Indicators).

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoExplains an empty result (how to broaden it), a page past the end, or a reduced page size.
indicatorsNoMatching indicators on this page.
totalCountNoMatching indicators before pagination.
totalPagesNoTotal pages at perPage.
currentPageNoPage number; past totalPages when the request ran off the end.
appliedFiltersNoParameters in force for these results; a filter not applied is omitted.
effectiveQueryNoThe applied filters as one string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changed
    • 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 3000 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 3000 are served at that maximum, with a notice."
    • changedInput schema / properties / query / description
      Previous value: -"Keyword search terms — an indicator name, ID, or any words from either (e.g. \"GDP per capita\", \"NY.GDP.MKTP.CD\", \"CO2 emissions\"). Every term must match; punctuation is ignored, so the query needs at least one letter or digit. At least one of query, topic_id, or source_id must be provided."New value: +"Keywords, an indicator name, or an ID (e.g. \"GDP per capita\", \"NY.GDP.MKTP.CD\"); every term must match the ID, name, or full description, in any order. Punctuation is ignored, so it needs a letter or digit."
    • changedInput schema / properties / source_id / description
      Previous value: -"Filter by data source ID (e.g. \"2\" for World Development Indicators). Use worldbank_list_sources to browse valid IDs."New value: +"Source ID from worldbank_list_sources (e.g. \"2\" for World Development Indicators)."
    • changedInput schema / properties / topic_id / description
      Previous value: -"Filter by topic ID (e.g. \"1\" for Agriculture, \"3\" for Economy & Growth). Use worldbank_list_topics to browse valid IDs."New value: +"Topic ID from worldbank_list_topics (e.g. \"3\" for Economy & Growth)."
    • changedOutput schema / properties / appliedFilters / description
      Previous value: -"The effective search parameters, field by field — confirms which filter combination produced these results without parsing the effectiveQuery string, and the page size served."New value: +"Parameters in force for these results; a filter not applied is omitted."
    • 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 / query / description
      Previous value: -"Trimmed keyword query sent to the search, omitted when none was given."New value: +"query applied, trimmed."
    • changedOutput schema / properties / appliedFilters / properties / requestedPerPage / description
      Previous value: -"Page size asked for, requested or server default, 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 ID the results were scoped to, omitted when none was given."New value: +"source_id applied."
    • changedOutput schema / properties / appliedFilters / properties / topicId / description
      Previous value: -"Topic ID the results were scoped to, omitted when none was given."New value: +"topic_id applied."
    • changedOutput schema / properties / currentPage / description
      Previous value: -"Current page number."New value: +"Page number; past totalPages when the request ran off the end."
    • changedOutput schema / properties / effectiveQuery / description
      Previous value: -"Active filters echoed: keyword, topic ID, and/or source ID that were applied."New value: +"The applied filters as one string."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `missing_filter`: None of query, topic_id, or source_id were provided. `invalid_filter`: The topic_id or source_id does not exist upstream. `empty_query`: The query contains no letters or digits once punctuation is ignored. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `missing_filter`: No query, topic_id, or source_id. `invalid_filter`: Unknown topic_id or source_id. `empty_query`: query has no letter or digit. `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: -[
      -  "missing_filter",
      -  "invalid_filter",
      -  "empty_query"
      -]New value: +[
      +  "missing_filter",
      +  "invalid_filter",
      +  "empty_query",
      +  "upstream_timeout"
      +]
    • changedOutput schema / properties / indicators / description
      Previous value: -"Matching indicators for this page."New value: +"Matching indicators on this page."
    • changedOutput schema / properties / indicators / items / description
      Previous value: -"A matching indicator with metadata."New value: +"A matching indicator."
    • changedOutput schema / properties / indicators / items / properties / id / description
      Previous value: -"Indicator ID (e.g. NY.GDP.PCAP.CD). Use as indicator_id in worldbank_get_data."New value: +"Indicator ID (e.g. NY.GDP.PCAP.CD)."
    • changedOutput schema / properties / indicators / items / properties / sourceNote / description
      Previous value: -"Indicator description, cut to its first 150 characters and marked with … when longer. worldbank_get_indicator returns it whole."New value: +"Indicator description, cut to its first 150 characters and marked with … when longer; worldbank_get_indicator returns it whole."
    • changedOutput schema / properties / indicators / items / properties / topics / description
      Previous value: -"Thematic topics this indicator belongs to."New value: +"Topics this indicator belongs to."
    • changedOutput schema / properties / indicators / items / properties / topics / items / description
      Previous value: -"A thematic topic entry."New value: +"A topic."
    • changedOutput schema / properties / notice / description
      Previous value: -"Recovery hint for an empty page — how to broaden the search when no indicators matched, 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 (how to broaden it), a page past the end, or a reduced page size."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Total matching indicators before pagination."New value: +"Matching indicators before pagination."
    • changedOutput schema / properties / totalPages / description
      Previous value: -"Total number of pages."New value: +"Total pages at perPage."
  2. Changed7 schema fields changed
    • changedInput schema / properties / per_page / description
      Previous value: -"Results per page (default: server default, max: 100)."New value: +"Results per page (default: server default). Positive integers above 3000 are served at that maximum with the requested and served sizes echoed and a notice. totalPages uses the served size."
    • removedInput schema / properties / per_page / maximum
      Removed value: -100
    • changedOutput schema / properties / appliedFilters / description
      Previous value: -"The effective search parameters, field by field — confirms which filter combination produced these results without parsing the effectiveQuery string."New value: +"The effective search parameters, field by field — confirms which filter combination produced these results without parsing the effectiveQuery string, and the page size served."
    • addedOutput schema / properties / appliedFilters / properties / perPage
      Added value: +{
      +  "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"
      +}
    • addedOutput schema / properties / appliedFilters / properties / requestedPerPage
      Added value: +{
      +  "description": "Page size asked for, requested or server default, present only when it exceeded the page cap and perPage was reduced.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / appliedFilters / required
      Added value: +[
      +  "perPage"
      +]
    • changedOutput schema / properties / notice / description
      Previous value: -"Recovery hint for an empty page — how to broaden the search when no indicators matched, or the page range that exists when the requested page is past the end."New value: +"Recovery hint for an empty page — how to broaden the search when no indicators matched, or the page range that exists when the requested page is past the end — or for a page size reduced to the page cap."
  3. Changed2 schema fields changed
    • changedOutput schema / properties / indicators / items / properties / sourceNote / description
      Previous value: -"Brief indicator description."New value: +"Indicator description, cut to its first 150 characters and marked with … when longer. worldbank_get_indicator returns it whole."
    • changedOutput schema / properties / notice / description
      Previous value: -"Recovery hint when no indicators matched — suggests how to broaden the search."New value: +"Recovery hint for an empty page — how to broaden the search when no indicators matched, or the page range that exists when the requested page is past the end."
  4. Changed5 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Keyword search terms — an indicator name, ID, or any words from either (e.g. \"GDP per capita\", \"NY.GDP.MKTP.CD\", \"CO2 emissions\"). Every term must match; punctuation is ignored. At least one of query, topic_id, or source_id must be provided."New value: +"Keyword search terms — an indicator name, ID, or any words from either (e.g. \"GDP per capita\", \"NY.GDP.MKTP.CD\", \"CO2 emissions\"). Every term must match; punctuation is ignored, so the query needs at least one letter or digit. At least one of query, topic_id, or source_id must be provided."
    • addedInput schema / properties / source_id / pattern
      Added value: +"^\\s*\\d*\\s*$"
    • addedInput schema / properties / topic_id / pattern
      Added value: +"^\\s*\\d*\\s*$"
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `missing_filter`: None of query, topic_id, or source_id were provided. `invalid_filter`: The topic_id or source_id does not exist upstream. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `missing_filter`: None of query, topic_id, or source_id were provided. `invalid_filter`: The topic_id or source_id does not exist upstream. `empty_query`: The query contains no letters or digits once punctuation is ignored. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "missing_filter",
      -  "invalid_filter"
      -]New value: +[
      +  "missing_filter",
      +  "invalid_filter",
      +  "empty_query"
      +]
  5. 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": [
      +      "indicators",
      +      "appliedFilters",
      +      "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: `missing_filter`: None of query, topic_id, or source_id were provided. `invalid_filter`: The topic_id or source_id does not exist upstream. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "missing_filter",
      +            "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: -[
      -  "indicators",
      -  "appliedFilters",
      -  "totalCount",
      -  "currentPage",
      -  "totalPages"
      -]
  6. Changed2 schema fields changed
    • addedOutput schema / properties / appliedFilters
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The effective search parameters, field by field — confirms which filter combination produced these results without parsing the effectiveQuery string.",
      +  "properties": {
      +    "query": {
      +      "description": "Trimmed keyword query sent to the search, omitted when none was given.",
      +      "type": "string"
      +    },
      +    "sourceId": {
      +      "description": "Source ID the results were scoped to, omitted when none was given.",
      +      "type": "string"
      +    },
      +    "topicId": {
      +      "description": "Topic ID the results were scoped to, omitted when none was given.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "indicators",
      -  "totalCount",
      -  "currentPage",
      -  "totalPages"
      -]New value: +[
      +  "indicators",
      +  "appliedFilters",
      +  "totalCount",
      +  "currentPage",
      +  "totalPages"
      +]
  7. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Keyword search terms. At least one of query, topic_id, or source_id must be provided."New value: +"Keyword search terms — an indicator name, ID, or any words from either (e.g. \"GDP per capita\", \"NY.GDP.MKTP.CD\", \"CO2 emissions\"). Every term must match; punctuation is ignored. At least one of query, topic_id, or source_id must be provided."
  8. Changed10 schema fields changed
    • addedOutput schema / properties / currentPage
      Added value: +{
      +  "description": "Current page number.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / effectiveQuery
      Added value: +{
      +  "description": "Active filters echoed: keyword, topic ID, and/or source ID that were applied.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "description": "Recovery hint when no indicators matched — suggests how to broaden the search.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Recovery hint when no indicators matched — suggests how to broaden the search.",
      +  "type": "string"
      +}
    • 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 indicators before pagination.",
      -  "type": "number"
      -}
    • addedOutput schema / properties / totalCount
      Added value: +{
      +  "description": "Total matching indicators before pagination.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / totalPages
      Added value: +{
      +  "description": "Total number of pages.",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "indicators",
      -  "total",
      -  "page",
      -  "pages"
      -]New value: +[
      +  "indicators",
      +  "totalCount",
      +  "currentPage",
      +  "totalPages"
      +]
  9. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover only safety/idempotency; the description adds substantive behavior the annotations cannot: the six-tier relevance ordering, WDI-first source preference, live-over-archive preference, the ', total' aggregation tiebreak, series-before-breakdown ordering, and per-ID de-duplication across sources. These are exactly the result-shaping traits an agent needs to interpret output and trust ranking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the at-least-one constraint are front-loaded, which is good, but the result-ordering material is delivered as one very long semicolon-chained sentence that is hard to parse and is arguably output-format detail rather than selection guidance. It earns its place in content but not in execution.

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?

For a 5-parameter read-only search with a full output schema, the description covers the invocation precondition, facet combination logic, and ranking/de-duplication rules. Nothing an agent needs to call it correctly or read results sensibly is missing.

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 per-parameter meaning is already documented; the description adds the cross-parameter semantics ('provide at least one of' and AND combination) that the schema's zero required fields do not express. It does not add format detail beyond what the schema gives for query, topic_id, or source_id, so it sits just above the baseline.

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 ('Search the World Bank indicator catalog') plus the searchable facets (keyword, topic, source) and the downstream purpose ('indicator IDs to pass to worldbank_get_data'). That routing sentence alone separates it from worldbank_get_indicator and worldbank_get_data.

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?

Gives an explicit invocation constraint ('Provide at least one of query, topic_id, or source_id; together they combine by AND') and names the follow-up tool. It does not explicitly say when to prefer this over worldbank_get_indicator for a single known ID, so it stops short of full alternative routing.

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.