wapimaji-mcp

v0.1.21
io.github.gabrielmahia/wapimaji-mcp Checked 2 days ago Published 23 days ago

Kenya drought-response toolkit: simulated drought phases, confirmed SMS alerts, coordination events

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_drought_status Get Drought Status

SIMULATED drought phase for a Kenyan county: the values are generated from the county name, are NOT NDMA data and not an observation, and every answer says synthetic true. Use only to build and test flows, never for decisions. An unknown county returns an error; in live mode it returns an explicit not-implemented error because no data source is integrated. Returns county, phase, phase label, rainfall deficit percent, population affected, synthetic true, the source and a note. Read-only.

ParameterTypeDescription
county *stringKenyan county name such as Turkana, Marsabit or Garissa.

get_drought_alerts Get Drought Alerts

List SIMULATED county drought alerts at or above a minimum phase (1 minimal, 2 stressed, 3 crisis, 4 emergency, 5 famine; default 3). Use only to build and test flows: this is sandbox data, not NDMA observation, and production returns an explicit not-implemented error. Returns the counties at that phase with population affected, the count, the phase queried and its label, sandbox true and the source. Read-only.

ParameterTypeDescription
min_phaseintegerMinimum phase: 1 minimal, 2 stressed, 3 crisis, 4 emergency, 5 famine (default 3).

sms_drought_alert Sms Drought Alert

Send a drought alert SMS through Africa's Talking. Use only when the user has explicitly approved this exact message and recipient list. SENDS TO REAL PEOPLE: real messages go out only when SANDBOX=false, confirm_send=true and every recipient is on the operator's WAPIMAJI_SMS_ALLOWLIST (empty by default, so live sending is off; at most 20 recipients per call); otherwise it simulates and reports the recipient count without contacting the provider. Returns sent, count and the provider response, or an error. Messages are limited to 160 characters. Sending cannot be undone.

ParameterTypeDescription
message *stringSMS text, at most 160 characters.
phone_numbers *arrayList of recipient numbers in E.164 format such as ['+254712345678'].
confirm_sendbooleanSet true only after the user explicitly approves this exact send; required for live sending.
sender_idstringRegistered Africa's Talking sender ID (default WAPIMAJI).

river_discharge_forecast River Discharge Forecast

Get the forecast daily river flow (discharge, cubic metres per second) at a point on a river, from the Copernicus Global Flood Awareness System (GloFAS) via the free Open-Meteo flood service. Use when someone is watching a river for flood risk, planning a crossing or water abstraction, or comparing this week's flow with the days ahead, for example on the Tana, Athi, Nzoia or Nyando. Returns one row per day, the peak day, the source, its attribution and the retrieval time; on a network or service failure it returns an error instead of numbers. Read-only; contacts an external service.

ParameterTypeDescription
latitude *numberLatitude of a point on the river, in decimal degrees; between -90 and 90. Choose a point on the main channel.
longitude *numberLongitude of the point, in decimal degrees; between -180 and 180.
daysintegerHow many days ahead to forecast, between 1 and 30.

rainfall_forecast Rainfall Forecast

Get the daily rainfall forecast for a location in Kenya (or anywhere) for up to 16 days, from the free Open-Meteo weather service: expected millimetres and the chance of rain each day. Use when someone is planning planting, irrigation, water storage, travel or flood preparation and needs the rain outlook for a place. Returns one row per day with rain in mm and the maximum chance of rain in percent, the total, the source, its attribution and the retrieval time; on a network or service failure it returns an error instead of a forecast. Read-only; contacts an external service.

ParameterTypeDescription
latitude *numberLatitude in decimal degrees, for example -1.29 for Nairobi or -0.09 for Kisumu; between -90 and 90.
longitude *numberLongitude in decimal degrees, for example 36.82 for Nairobi; between -180 and 180.
daysintegerHow many days ahead to forecast, between 1 and 16.

publish_drought_coordination Publish Drought Coordination

Publish a drought coordination event to africa-coord-bus so other servers can react (insurance evaluation, advisories, malnutrition watch, county alerts). Use when coordinating a drought response across servers. Phases 2 stressed, 3 crisis and 4 emergency trigger coordination; phase 0 takes the phase and deficit from get_drought_status, which is SIMULATED data. Returns published false with a reason if africa-coord-bus is not installed. Side effect: emits an event to the bus.

ParameterTypeDescription
county *stringKenyan county name.
phaseintegerDrought phase 1-5; 0 (default) takes it from get_drought_status.
rainfall_deficit_pctnumberRainfall deficit in percent; used when phase is given (default 0).