Skip to main content
Glama

Weather forecast for a place

nusa_weather_forecast
Read-onlyIdempotent

Retrieve 3-day, 3-hourly BMKG weather forecasts for an Indonesian place name or Kemendagri region code; village codes are exact, while kecamatan names are approximated and flagged.

Instructions

Prakiraan cuaca (3-day, 3-hourly) from BMKG for a place name or a Kemendagri region code. BMKG forecasts exist per desa/kelurahan; a kecamatan name is approximated by one of its villages and flagged. Coordinates are not supported because the open dataset has no village centroids.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nusa_weather_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
langNoLanguage of the human-readable text block: id (Indonesian) or en (English).id
placeNoPlace name, e.g. "Purwokerto Timur" or "Tambakreja Kedungreja".
region_codeNoKemendagri code from nusa_region_search. Village (adm4) codes are exact.

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.6/5.0
Behavior5/5

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

Goes well past the annotations by disclosing forecast granularity (3-day, 3-hourly), the native resolution of the data (per desa/kelurahan), an approximation behavior with an explicit flag, and a hard input limitation with its root cause (no village centroids in the open dataset). An agent knows before calling what it will get and where precision degrades.

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?

Three sentences, each carrying distinct information: what the tool returns, how lookups resolve, and what is not supported. Front-loaded with the forecast granularity, no filler.

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?

For a read-only lookup with an output schema, the description covers inputs, resolution behavior, and limitations adequately. Minor gaps remain (how an ambiguous place name is disambiguated, forecast timezone), but nothing that would cause a mis-call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the baseline is already decent, and the description adds real meaning: place and region_code are alternative keys, village (adm4) codes are exact while names may be approximated, and the 3-hourly phrasing clarifies what the days window controls. Language of the output block is left to the schema.

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?

Names a specific resource (BMKG 3-day, 3-hourly weather forecast) and the two acceptable lookup keys (place name or Kemendagri region code), plus the data source. That is clearly distinguishable from the sibling nusa_weather_warnings and from the region/earthquake 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?

Explicitly rules out coordinates and explains why, and points to where the acceptable identifier comes from ('Kemendagri code from nusa_region_search'). It also tells the agent that a kecamatan-level query is auto-approximated and flagged, which is actionable when-to-use context, though it never explicitly contrasts with nusa_weather_warnings.

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