Skip to main content
Glama

HDX HAPI Baseline Population

hdx-hapi.geography.baseline_population
Read-onlyIdempotent

Get baseline population demographics broken down by gender and age range for a country or subnational admin area. Filter by location_code (ISO3), gender, age_range, admin1_name, and admin_level. Data: HDX Humanitarian API (hapi.humdata.org), run by UN OCHA Centre for Humanitarian Data, CC BY 4.0, no auth required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum rows to return (1-1000, default 100)
genderNoGender code: f=female, m=male, x=non-binary, u=unknown, o=other, all=all
offsetNoNumber of rows to skip, for pagination (default 0)
age_rangeNoAge range as "[start]-[end]" (e.g. "0-4", "18-59"), or "all" for all ages
admin1_nameNo1st-level subnational admin area name to filter results, e.g. "Kayes"
admin_levelNoAdmin granularity of returned rows: 0=national, 1=admin1, 2=admin2
location_codeNoISO3 country code to filter results, e.g. "MLI", "AFG", "SOM"
location_nameNoCountry name to filter results (alternative to location_code), e.g. "Mali"

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, so the description does not need to repeat those. It adds useful context beyond the annotations by stating that no authentication is required, and it cites the data source (HDX HAPI, UN OCHA) and license (CC BY 4.0). These are valuable behavioral disclosures not present in the structured metadata.

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?

The description is two sentences long and front-loads the core purpose, then states the filters and data provenance. Every sentence serves a purpose with no redundant or fluffy wording. It is appropriately compact for a tool of this complexity.

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?

Given the tool has an output schema, annotations, and a well-covered parameter schema, the description is nearly complete. It covers the what, the filters, the data source, and auth. The only missing piece is explicit guidance on when to choose this over other population tools, but that is arguably covered under usage guidelines. The description provides enough for an agent to call the tool correctly.

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?

The input schema provides 100% coverage with descriptions for all 8 parameters, including enums for gender and admin_level. The description merely lists some of the filter parameters without adding new semantic meaning beyond what the schema already documents. It does not explain any parameter interactions or format expectations that the schema lacks, so it stays at the baseline of 3.

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?

The description clearly states the tool retrieves baseline population demographics broken down by gender and age range, and specifies it applies to countries or subnational admin areas. It names the resource and the verb 'Get', making the purpose unmistakable even among many population-related siblings. It also lists the key filter parameters, which distinguishes it from other HDX tools.

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?

The description gives clear context: it is a read-only query for baseline population data from the HDX HAPI, and it enumerates the filter dimensions. However, it does not explicitly state when to prefer this tool over other population data sources (e.g., census.data.population or abs.demographics.population), nor does it mention exclusions. The implied usage is clear but not explicitly differentiated from alternatives.

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.