Version: 1.0.0
Purpose: Identifying dangers before they hit. How to set up monitoring and what to watch.
Threat: Hostile fleets approaching your planet or allied planets.
| Monitor | MCP Tool | Frequency |
|---|---|---|
| Planet activity | structs_query_planet_activity |
Every 5–10 min during active play |
| Fleet arrivals | Subscribe to structs.planet.{id} (NATS) |
Real-time |
| Nearby players | structs_list_players + structs_query_fleet |
When scouting |
Signals: fleet_arrive, fleet_advance events. Unknown fleet at your planet = potential raid.
Threat: Ore in bunkers or miners is stealable. Raiders target planets with high stored ore.
| Monitor | MCP Tool | Threshold |
|---|---|---|
| Stored ore | structs_query_struct (Ore Bunker, Miner) |
Any > 0 is exposure |
| Planet activity | structs_query_planet_activity |
Recent raids, attacks |
Rule: Refine immediately. Use struct-ore-refinery-complete as soon as ore is available. Zero unrefined ore = nothing to steal.
Threat: Load approaching capacity. One more struct or one struct coming online = offline = halt.
| Monitor | MCP Tool | Threshold |
|---|---|---|
| Power headroom | structs_query_player |
availablePower < 20% of total capacity |
| Pending structs | structs_list_structs |
Structs in “building” state |
Signals: Building struct completing, reactor defusion, agreement expiring. Use structs_calculate_power before any load change.
Threat: Guild wars, raids on allies, diplomatic shifts.
| Monitor | MCP Tool | What to Watch |
|---|---|---|
| Guild relations | structs_query_guild |
Hostile guilds, war status |
| Guild power | structs_query_guild |
Member count, capacity changes |
| Planet activity | structs_query_planet_activity |
Raids on guild planets |
Threat: Planet running out of ore. No ore = no mining = no Alpha Matter = stagnation.
| Monitor | MCP Tool | Threshold |
|---|---|---|
| Planet ore | structs_query_planet |
Remaining ore vs maxOre |
| Miner output | structs_query_struct (Miner) |
Production rate |
Action: Plan exploration when planet nears empty. Must empty current planet (0 ore) before exploring.
structs_query_player — Power, halted statusstructs_query_struct (Ore Bunker) — Stored ore levelSubscribe to NATS subjects:
structs.planet.{planetId} — Raids, fleet arrivals, struct healthstructs.struct.{structId} — Struct status, attacksstructs.fleet.{fleetId} — Fleet movementstructs_validate_gameplay_requirements — Pre-check build, attack, raidstructs_calculate_power — Before adding loadstructs_calculate_damage — Before attackingSee Priority Framework for full decision hierarchy.
patterns/polling-vs-streaming.md — When to poll vs stream