purchase_item
Buy a unit or building in a city instantly using gold or faith, skipping production time. Specify city, item type, and name to spend currency now.
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
Costs gold/faith immediately. Use get_city_production to see what's available.
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": {
"city_id": "<city_id>",
"item_type": "<item_type>",
"item_name": "<item_name>"
},
"name": "purchase_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city_id | Yes | ||
| item_name | Yes | ||
| item_type | Yes | ||
| yield_type | No | YIELD_GOLD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |