Skip to main content
Glama

Active weather warnings (nowcast)

nusa_weather_warnings
Read-onlyIdempotent

Fetches BMKG early weather warnings (nowcast, CAP), optionally filtered by province or Kemendagri region code, matching below-province alerts by kecamatan names.

Instructions

Peringatan dini cuaca (nowcast, CAP) from BMKG, optionally filtered by province or a Kemendagri region code. Matching below province level is by kecamatan name found in the alert text.

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_warnings"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the human-readable text block: id (Indonesian) or en (English).id
limitNo
provinceNoProvince name or alias, e.g. "Jateng".
region_codeNo

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.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the data is CAP-format nowcast alerts, and sub-province matching is approximate, based on kecamatan names appearing in free alert text rather than a true geographic join — a caveat an agent would otherwise get wrong.

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, front-loaded with the resource, source and format, then the filtering and matching caveat. Nothing redundant and 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?

With an output schema present, return values need no explanation, and the filtering/matching behaviour is covered. The remaining gap is modest: the meaning and effect of limit (and what an unfiltered call returns) is left implicit.

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 50%: lang and province carry descriptions, while limit and region_code do not. The description covers province and the region_code semantics including the kecamatan-name matching caveat, but says nothing about limit (default 8, capped at 15), leaving that parameter's meaning to the schema alone.

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?

States a specific resource (active weather warnings/nowcast, CAP format) with its source (BMKG), which lets an agent distinguish it from nusa_weather_forecast on the forecast-vs-warning axis. It stops short of explicitly naming the sibling or stating that this returns only currently active alerts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'optionally filtered by province or a Kemendagri region code' implies that calling with no arguments returns everything and that the two filters are alternatives. There is no explicit when-to-use vs. the forecast tool, no statement about result completeness, and no exclusion guidance.

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