Skip to main content
Glama

Search BPS statistics

nusa_stats_search
Read-onlyIdempotent

Search official BPS statistics by keyword for indicators, variables, tables, publications, and press releases; use returned variable IDs to fetch detailed data. Requires a BPS API key.

Instructions

Find official BPS (Badan Pusat Statistik) statistics: strategic indicators (inflasi, kemiskinan...), dynamic-table variables, static tables, publications and press releases. Requires a free BPS API key configured by the user. Use the returned variable id with nusa_stats_get.

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": {
      "query": "<query>"
    },
    "name": "nusa_stats_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the human-readable text block: id (Indonesian) or en (English).id
pageNo
typeNoindicator
queryYesKeywords, e.g. "inflasi" or "kemiskinan".
domainNoBPS domain id. 0000 = national. Overrides region_code.
subject_idNoBPS subject id (type=variable only).
region_codeNoKemendagri code (province or regency used; deeper codes use their regency).

Output Schema

NameRequiredDescriptionDefault
dataYes
cacheYesnone = not cached (local data).
sourceYesSource id, e.g. bmkg, bps, region.
derivedNoTrue when computed locally from source data.
dataAsOfNoISO 8601 time the source says the data is current as of.
warningsYes
sourceUrlYesCanonical URL of the data source.
termsNoteYesShort terms caveat for this source.
attributionYesAttribution wording the provider requires. Show it to users.
retrievedAtYesISO 8601 time with offset when data was fetched by this server.
cacheAgeSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-rc.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context beyond them: the external API-key dependency and the fact that variable results are meant to be fed into another tool. It says nothing about pagination limits or result ordering, which the `page` parameter (max 1000) implies are relevant.

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

Conciseness4/5

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

Three tight sentences: capability first, prerequisite second, handoff last. Every clause earns its place, though the parenthetical abbreviation expansion is marginal and the long category list slightly buries the key routing sentence.

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?

An output schema exists, so return values need no explanation, and annotations cover safety. For a 7-parameter search tool the description supplies the auth requirement and the downstream workflow, but leaves geographic scoping (domain vs region_code) unexplained, which is the main thing an agent could get wrong.

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 coverage is 71%, so the schema carries most of the weight, and the baseline is 3. The description's category list loosely explains the `type` values, but it adds no meaning for `domain`, `region_code`, `subject_id` or `page` beyond what the schema already documents.

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 ('Find official BPS statistics') and enumerates the five result categories (indicators, dynamic-table variables, static tables, publications, press releases), which maps directly to the `type` enum. It also names the sibling it hands off to ('Use the returned variable id with nusa_stats_get'), so an agent can distinguish it from the getter without opening either 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?

Gives a clear precondition ('Requires a free BPS API key configured by the user') and an explicit follow-up path into nusa_stats_get. It does not state when *not* to use it or how it relates to other search siblings, but the search-then-get workflow is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.