Skip to main content
Glama

weather_malaysia_alerts

Read-only

Malaysia weather warnings (MET Malaysia) — Active official MET Malaysia weather warnings: continuous rain (alert/severe/danger), thunderstorms, strong winds and rough seas (1st-3rd category) and more, with issue time, validity window (Malaysia time, UTC+8), level, full English warning text unaltered and the Malay heading, plus the current tropical cyclone advisory. state= optional filter by any state, district or waters name in the warning text (e.g. Sabah, Kelantan, Johor); omit it for all active warnings nationwide. Expired items dropped. Source data.gov.my Weather API, CC BY 4.0, cached with a last-good copy (stale flag). Price: $0.003 USDC (Base, via x402).

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": {
      "state": "<state>"
    },
    "name": "weather_malaysia_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesSabah

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that expired items are dropped, that responses are cached with a last-good fallback exposed via a stale flag, that times are Malaysia time (UTC+8), and that warning text is unaltered English plus the Malay heading. It also names upstream source, license, and price, which an agent needs before paying.

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?

Front-loaded with purpose, then filtering behavior, then data provenance and price; each block earns its place. It is a single dense run-on paragraph, so the pricing/provenance footer is easy to miss, but no sentence is truly wasted.

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 no output schema, the description usefully enumerates returned fields (issue time, validity window, level, warning text, Malay heading, cyclone advisory), which covers the return-value gap. However, the schema marks "state" as required while the description says to omit it for nationwide results — an agent cannot tell which contract to follow.

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?

The schema's only parameter description is the bare example "Sabah", so the description carries real weight: it clarifies that any state, district, or waters name appearing in the warning text works, gives three examples, and states the omit-for-nationwide behavior. It loses a point for not flagging the required/optional conflict with 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?

States a specific verb+resource combination ("Active official MET Malaysia weather warnings") and enumerates the covered hazard types (continuous rain with alert/severe/danger levels, thunderstorms, strong winds, rough seas, cyclone advisory). Because the tool is country-specific, its scope is unambiguous against the many sibling country alert 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 explains the filter behavior: pass a state/district/waters name to narrow, or "omit it for all active warnings nationwide" — clear context for both modes. It stops short of naming alternatives (e.g. weather_alerts for non-Malaysian or historical queries), so routing against siblings is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources