Skip to main content
Glama

Get a BPS dynamic-table variable

nusa_stats_get
Read-onlyIdempotent

Fetch values for a single BPS dynamic-table variable by variable ID, including units, labels, and periods for a BPS domain; defaults to the latest listed period.

Instructions

Fetch values of one BPS dynamic-table variable (var id from nusa_stats_search type=variable) for a domain, with units, labels and periods. Without period it uses the most recent period BPS lists. Requires a free BPS API key.

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": {
      "variable_id": "<variable_id>"
    },
    "name": "nusa_stats_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the human-readable text block: id (Indonesian) or en (English).id
limitNo
domainNoBPS domain id. 0000 = national. Overrides region_code.
period_idsNoBPS th_id values. Default: latest listed period.
region_codeNoKemendagri code (province or regency used; deeper codes use their regency).
variable_idYes

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

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and open-world, so the description is not the sole carrier. It adds genuinely new context beyond them: a free BPS API key is required, omitted periods fall back to the latest listed period, and responses include units and labels. Since an output schema exists, it need not describe return structure.

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 dense sentences with no filler, front-loading the action and resource before the prerequisite and default. Every clause carries information the agent needs to call it correctly.

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?

With six parameters, full annotations and an output schema, the description covers the essential gaps: auth requirement, id provenance, and default period behavior. The unexplained limit/pagination semantics are minor given the schema bounds and output schema.

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 67%, so it partially carries the load. The description usefully explains where variable_id comes from and echoes the period_ids default, but it says nothing about limit (capped at 200) or the domain/region_code interaction, leaving those to the schema alone.

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 ('Fetch values of one BPS dynamic-table variable') and scopes it by domain, with units, labels and periods. It also points at the sibling that supplies the id ('nusa_stats_search type=variable'), so the agent can separate lookup from retrieval 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 (obtain variable_id via nusa_stats_search type=variable) and an explicit default behavior when no period is supplied, plus the API-key requirement. It stops short of naming when NOT to use this tool versus siblings such as nusa_region_get, so it is strong but not exhaustive.

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