160-tool MCP server for real-time global intelligence from free public APIs: markets, liquidity, prediction markets, SEC filings, conflict, military, aircraft-cohort early warning, migration and border flows, cyber, climate, news and more. Dated observation history, 29 research prompts, cited briefs, geofences, SSE dashboard. MIT, no paid API keys.
Python ai-toolsai-watchanthropicclaudecybersecuritydashboardgeofencinggeopoliticalgeospatialintelligencemarketsmcpmigrationmilitarymodel-context-protocolnuclearosintreal-timespace-weatherthreat-intelligence
earthquake-exposure: a city names only its nearest event
Phoenix Agent (mac-studio)3474033f987c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0b32571..98de7b3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -392,6 +392,12 @@ source here, and no proxy is substituted for any of these measures.- country-overview now says the dossier's elections section reads thesame hand-kept table: empty means not covered, and its match on part ofa name can add another country's election (RUS gets Belarus's).+- earthquake-exposure told the model to keep only the cities whose+ `event_detail` names a step-1 quake, but `intel_population_exposure`+ names only the nearest M4.5+ event per city, so a nearer aftershock+ dropped a city that a large quake had reached. The step now says so+ and to compare each city's position with every step-1 event before+ dropping it. The code is unchanged.### Added: tropical cyclone forecast tracks- `intel_cyclones` and `intel_jtwc_cyclones` take `include_forecast`diff --git a/src/world_intel_mcp/guide_prompts.py b/src/world_intel_mcp/guide_prompts.pyindex 31cb5bf..b36df82 100644--- a/src/world_intel_mcp/guide_prompts.py+++ b/src/world_intel_mcp/guide_prompts.py@@ -715,9 +715,12 @@ PROMPTS: tuple[ResearchPrompt, ...] = ("major cities within radius_km (default 200) of recent events. ""It ignores the magnitude and hours above: it fetches its own ""list of M4.5 and larger quakes from the last 48 hours, at most "- "50. Keep only the exposed_cities whose event_detail "- "(\"M<magnitude> <place>\") matches an event from step 1, and "- "check events_analyzed: 0 can mean its fetch failed",+ "50, and names only the nearest of them for each city, so a "+ "city's event_detail (\"M<magnitude> <place>\") can name a "+ "smaller aftershock while a step-1 event is also within reach. "+ "Before dropping a city, compare its lat and lon with each "+ "step-1 event and keep it if any lies within radius_km; check "+ "events_analyzed: 0 can mean its fetch failed",args=(("event_types", ["earthquake"]),),),Step(diff --git a/src/world_intel_mcp/tests/test_guide.py b/src/world_intel_mcp/tests/test_guide.pyindex df26be6..1a82fd8 100644--- a/src/world_intel_mcp/tests/test_guide.py+++ b/src/world_intel_mcp/tests/test_guide.py@@ -1931,3 +1931,22 @@ async def test_country_overview_says_the_dossier_elections_can_be_another_countrtext = " ".join(_text("country-overview", {"country": "RUS"}).split())assert "keep only entries whose iso3 is RUS" in textassert "empty means the country is not covered" in text+++def test_earthquake_exposure_says_each_city_names_only_its_nearest_event() -> None:+ """A smaller, nearer aftershock replaces the main shock in a city's+ entry, so the step must not drop a city by event_detail alone."""+ from world_intel_mcp.analysis.exposure import _find_exposed_cities++ city = {"name": "Tokyo", "country": "Japan", "lat": 35.68, "lon": 139.69, "pop": 37_000_000}+ events = [+ {"type": "earthquake", "detail": "M6.5 100 km S of Tokyo", "lat": 34.78, "lon": 139.69},+ {"type": "earthquake", "detail": "M4.7 50 km S of Tokyo", "lat": 35.23, "lon": 139.69},+ ]+ (entry,) = _find_exposed_cities(events, [city], 200.0)+ assert entry["event_detail"].startswith("M4.7")+ assert (entry["lat"], entry["lon"]) == (city["lat"], city["lon"])+ text = " ".join(_text("earthquake-exposure").split())+ assert "names only the nearest of them for each city" in text+ assert "compare its lat and lon with each step-1 event" in text+ assert "Keep only the exposed_cities whose event_detail" not in text