Skip to main content
Glama

Get World Bank Indicator

worldbank_get_indicator
Read-onlyIdempotent

Fetch metadata for one World Bank indicator: name, description, unit, source dataset, source organization, and topics. Find IDs with worldbank_search_indicators.

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": {
      "indicator_id": "<indicator_id>"
    },
    "name": "worldbank_get_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
indicator_idYesOne indicator ID (NY.GDP.PCAP.CD); not "all" or a list.

Output Schema

NameRequiredDescriptionDefault
idNoIndicator ID.
nameNoIndicator name.
unitNoUnit; empty when unspecified.
errorNoPresent when the call failed. Absent on success.
topicsNoThematic topics of the indicator.
sourceIdNoSource dataset ID.
sourceNameNoSource dataset name.
sourceNoteNoThe source's description of the indicator.
sourceOrganizationNoOrganization that collects or publishes the data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / indicator_id / description
      Previous value: -"One indicator code (e.g. NY.GDP.PCAP.CD, SP.POP.TOTL) — not \"all\" or a list of codes. Use worldbank_search_indicators to find valid IDs."New value: +"One indicator ID (NY.GDP.PCAP.CD); not \"all\" or a list."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `indicator_not_found`: The indicator ID does not exist in the World Bank API. `multiple_indicators`: The ID is \"all\", or another selector the World Bank resolves to more than one indicator. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `indicator_not_found`: No indicator has this ID. `multiple_indicators`: The ID selects more than one indicator, as \"all\" does. `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: -[
      -  "indicator_not_found",
      -  "multiple_indicators"
      -]New value: +[
      +  "indicator_not_found",
      +  "multiple_indicators",
      +  "upstream_timeout"
      +]
    • changedOutput schema / properties / sourceNote / description
      Previous value: -"Detailed indicator description from the source."New value: +"The source's description of the indicator."
    • changedOutput schema / properties / sourceOrganization / description
      Previous value: -"Organization that collects or publishes this data."New value: +"Organization that collects or publishes the data."
    • changedOutput schema / properties / topics / description
      Previous value: -"Thematic topics this indicator belongs to."New value: +"Thematic topics of the indicator."
    • changedOutput schema / properties / topics / items / description
      Previous value: -"A thematic topic entry."New value: +"A topic."
    • changedOutput schema / properties / unit / description
      Previous value: -"Unit of measurement (empty when not specified)."New value: +"Unit; empty when unspecified."
  2. Changed5 schema fields changed
    • changedInput schema / properties / indicator_id / description
      Previous value: -"Indicator code (e.g. NY.GDP.PCAP.CD, SP.POP.TOTL). Use worldbank_search_indicators to find valid IDs."New value: +"One indicator code (e.g. NY.GDP.PCAP.CD, SP.POP.TOTL) — not \"all\" or a list of codes. Use worldbank_search_indicators to find valid IDs."
    • removedInput schema / properties / indicator_id / minLength
      Removed value: -1
    • addedInput schema / properties / indicator_id / pattern
      Added value: +"^[A-Za-z0-9._-]+$"
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `indicator_not_found`: The indicator ID does not exist in the World Bank API. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `indicator_not_found`: The indicator ID does not exist in the World Bank API. `multiple_indicators`: The ID is \"all\", or another selector the World Bank resolves to more than one indicator. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "indicator_not_found"
      -]New value: +[
      +  "indicator_not_found",
      +  "multiple_indicators"
      +]
  3. 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": [
      +      "id",
      +      "name",
      +      "unit",
      +      "sourceId",
      +      "sourceName",
      +      "sourceNote",
      +      "sourceOrganization",
      +      "topics"
      +    ]
      +  },
      +  {
      +    "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: `indicator_not_found`: The indicator ID does not exist in the World Bank API. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "indicator_not_found"
      +          ],
      +          "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: -[
      -  "id",
      -  "name",
      -  "unit",
      -  "sourceId",
      -  "sourceName",
      -  "sourceNote",
      -  "sourceOrganization",
      -  "topics"
      -]
  4. First observed

TDQS

A4.3/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 the safety and idempotency profile is covered. The description adds that the payload is metadata rather than observations, but says nothing about error behavior for unknown IDs, rate limits, or response shape beyond the field list. Reasonable but not rich for a tool with annotations carrying the safety profile.

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?

Two sentences, zero filler. The returned-field enumeration comes first and the ID-discovery routing is placed last as an actionable next step, which is the right order for an agent.

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?

An output schema exists, so return-value documentation is not the description's burden, and the single required parameter is fully specified in the schema. With annotations covering safety and idempotency, nothing an agent needs in order to invoke this correctly 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% and the schema itself forbids 'all' or lists, so the baseline is already high. The description adds value by telling the agent where to obtain a valid ID (worldbank_search_indicators), which is provenance the schema cannot express.

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 (fetch) and resource (metadata for one World Bank indicator) and enumerates the returned fields: name, description, unit, source dataset, source organization, topics. The 'one' scope and the metadata focus distinguish it from worldbank_get_data and worldbank_search_indicators 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 Guidelines4/5

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

Explicitly routes ID discovery to worldbank_search_indicators, which is the only real prerequisite for calling this tool. It does not explicitly contrast metadata retrieval with worldbank_get_data (values) or say when not to use it, so it falls just short of full when/when-not coverage.

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.