Skip to main content
Glama

set_city_production

Set a Civilization VI city's production to a specified unit, building, district, or project, with optional district placement coordinates and override controls.

Instructions

Set what a city should produce.

Args:
    city_id: City ID (from get_cities output)
    item_type: UNIT, BUILDING, DISTRICT, or PROJECT
    item_name: e.g. UNIT_WARRIOR, BUILDING_MONUMENT, DISTRICT_CAMPUS, PROJECT_LAUNCH_EARTH_SATELLITE
    target_x: X coordinate for district/wonder placement (required for districts — use get_district_advisor to find best tile)
    target_y: Y coordinate for district/wonder placement
    force: Override a RED-alert block on civilian production. Only use
        after reading the block's explanation — it fires when producing
        a settler/builder while hostiles are at the gates.
    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.

Tip: call get_cities first to see your cities and their IDs.

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": "set_city_production"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
city_idYes
target_xNo
target_yNo
item_nameYes
item_typeYes
force_reasonNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full load and does well: it explains the RED-alert gate (settler/builder while hostiles are near), that force overrides it, and that force_reason is persisted to data/force_log.jsonl for post-game review. It omits what happens to the city's existing production item and any cost/turn implications of switching.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in one line and the Args block is scannable. The force_reason guidance is slightly editorial ('write it even when in a hurry') but that redundancy reinforces a genuinely error-prone parameter rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-param mutation tool with no annotations, the description covers the risky path thoroughly, and an output schema exists so return values need no explanation. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and it does: every one of the 7 params is explained, item_type's four allowed values are enumerated (the schema has no enum), item_name gets concrete examples, target_x/target_y are scoped to districts/wonders, and force vs force_reason roles are separated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line gives a specific verb and resource ('Set what a city should produce'), and the Args list makes the item_type scope (UNIT/BUILDING/DISTRICT/PROJECT) concrete. It does not, however, distinguish itself from close siblings like set_production_queue or fill_idle_production, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear prerequisites are stated: call get_cities first for IDs, use get_district_advisor to pick a tile when item_type is DISTRICT, and only pass force after reading the RED-alert explanation. It lacks any explicit statement of when to prefer this over set_production_queue, so it stops short of full alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools