unsdg.data.query
Query UN SDG time-series indicator data by series code. Returns country-level or regional annual measurements for indicators like poverty rates, maternal mortality, CO2 emissions, literacy rates, and more. Filter by UN M49 geo area code (e.g. "356" for India, "840" for USA) and/or year range. Eac...
This record as markdown: /tools/io-github-whiteknightonhorse-apibase/unsdg.data.query.md
What unsdg.data.query does on Apibase
AI agents call unsdg.data.query to retrieve information from Apibase without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | — | Maximum number of records to return per page (1-200, default 50). Large series may have thousands of records across countries and years. |
end_year | integer | — | Filter data records up to and including this year (e.g. 2023). Combined with start_year to define a time range. |
start_year | integer | — | Filter data records starting from this year (e.g. 2010). Combined with end_year to define a time range. |
series_code | string | Yes | UN SDG series code to query (e.g. "SI_POV_DAY1" for poverty rate, "SH_STA_MORT" for maternal mortality, "EN_ATM_CO2" for CO2 emissions). Obtain series codes fro |
geo_area_code | string | — | UN M49 numeric geo area code to filter by country or region (e.g. "356" for India, "840" for USA, "076" for Brazil). Use unsdg.geo.countries to look up codes. |
Parameters from the server's own tool schema.
Why unsdg.data.query is rated Low
Tool queries and retrieves public UN statistical data with no modification, deletion, or execution capabilities.
From the tool's definition Query UN SDG time-series indicator data, Returns country-level measurements, Filter by geo area code and year range.
Attacks that exploit this kind of access
The rule that runs unsdg.data.query safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Apibase, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For unsdg.data.query, this is the rule to start with:
unsdg.data.query is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Apibase, apply this rule, and every unsdg.data.query call is checked against it from then on.
Questions about unsdg.data.query
Query UN SDG time-series indicator data by series code. Returns country-level or regional annual measurements for indicators like poverty rates, maternal mortality, CO2 emissions, literacy rates, and more. Filter by UN M49 geo area code (e.g. "356" for India, "840" for USA) and/or year range. Each record includes the geo area, year, value, source, and any disaggregation dimensions (age, sex, urbanization). Get series codes from unsdg.indicators.list; get geo area codes from unsdg.geo.countries. It is categorised as a Read tool in the Apibase MCP Server, which means it retrieves data without modifying state.
unsdg.data.query accepts 5 parameters: limit, end_year, start_year, series_code, geo_area_code. Required: series_code. The full parameter table on this page comes from the server's own tool schema.
Register the Apibase MCP server in PolicyLayer and add a rule for unsdg.data.query: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Apibase. Nothing to install.
unsdg.data.query is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the unsdg.data.query rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for unsdg.data.query. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
unsdg.data.query is provided by the Apibase MCP server (apibase-mcp-client). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Apibase, and thousands of servers like it.
This server
Across the catalogue