purchase_item
Buy a city unit or building instantly with gold or faith, with an upkeep gate that blocks purchases pushing military spending past 60% of gross income.
Instructions
Purchase a unit or building instantly with gold or faith.
Args:
city_id: City ID (from get_cities output)
item_type: UNIT or BUILDING
item_name: e.g. UNIT_WARRIOR, BUILDING_MONUMENT
yield_type: YIELD_GOLD (default) or YIELD_FAITH
force: Override the upkeep gate (UPKEEP_CEILING). Buying a unit is
force_reason: One sentence on WHY you are overriding. Recorded to
data/force_log.jsonl. Without it a post-game review cannot tell
a wrong gate from a wrong call — write it even when in a hurry.
blocked when it would push military upkeep past 60% of gross
income — the purchase feels free, the bill arrives next turn.
Costs gold/faith immediately. Use get_city_production to see what's available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| city_id | Yes | ||
| item_name | Yes | ||
| item_type | Yes | ||
| yield_type | No | YIELD_GOLD | |
| force_reason | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |