Skip to main content
Glama

HDX HAPI Food Security (IPC)

hdx-hapi.food.security_ipc
Read-onlyIdempotent

Get IPC (Integrated Food Security Phase Classification) data — population counts by food-insecurity phase (1=minimal to 5=catastrophe), current and projected. Filter by location_code (ISO3), ipc_phase, 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)
offsetNoNumber of rows to skip, for pagination (default 0)
ipc_phaseNoIPC phase classification: 1=minimal, 2=stressed, 3=crisis, 4=emergency, 5=catastrophe, 3+=crisis or worse, all=all phases
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.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, and non-destructive behavior. The description adds useful operational context beyond that: data provenance, CC BY 4.0 licensing, and 'no auth required', plus the current-and-projected time dimension. It does not discuss rate limits or pagination behavior, but those are less critical given the annotations and schema.

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 with no filler: the first states purpose, content, time scope, and key filters; the second covers provenance, license, and auth. Every sentence earns its place.

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 read-only lookup tool with fully described parameters, rich annotations, and an output schema, the description is complete. It supplies the selection-relevant facts an agent needs—what the data measures, that it is current/projected, and that no auth is required.

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 the schema already documents all parameters including enum values, ISO3 constraints, and pagination defaults. The description only restates a subset of filter names and the phase scale, adding no material semantic value beyond the schema.

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 ('Get') and resource ('IPC data'), then clarifies the content: population counts by food-insecurity phase, current and projected. It is clearly not a generic dataset search, though it does not explicitly differentiate itself from neighboring tools like hdx-hapi.coordination.humanitarian_needs or faostat.agriculture.food_security.

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 for when this tool applies: retrieving IPC classification data with phase, country, admin, and projection scope. It does not explicitly state when not to use it or name alternatives, but the stated scope is enough for an agent to route IPC-specific requests here.

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.