Skip to main content
Glama
ty-meador

civ-v-llm-harness

by ty-meador

unit_home_options

Returns valid home-city or home-port choices for a trade unit or Great Admiral standing in one of your cities; outside a city, it reports no options, so apply one via unit_mission.

Instructions

Where a trade unit or a Great Admiral could re-home (the Change Home City / Change Port chooser). Both need the unit to be standing in one of my cities; outside one there is no button, and the answer says so. cities is the engine's own candidate list -- apply one with unit_mission(unit_id, mission, x, y) using the mission in the reply. Re-homing a caravan nearer a richer partner is how a 6-gold route becomes a 12-gold one; see available_trade_routes after.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unit_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.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 burden and does well: it discloses the city-standing precondition, the failure behavior ('there is no button, and the answer says so'), and that the reply contains an engine-computed `cities` candidate list plus a `mission` value to feed back into unit_mission. It does not discuss any cost, cooldown, or whether re-homing is reversible.

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?

The key mechanic (candidate re-home cities) is front-loaded, followed by the precondition and the apply-with-unit_mission instruction. The caravan/6-gold-to-12-gold aside is motivational detail that earns some of its space by explaining why an agent would call this, but it is the most expendable sentence.

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

Completeness4/5

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

For a single-parameter query tool with no output schema and no annotations, the description covers the precondition, the failure case, the shape of the reply (`cities`, `mission`), and how to act on it. Only a fuller account of the returned list's contents or the absence of side effects would push it higher.

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

Parameters4/5

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

Schema coverage is 0%, but there is only one trivial integer parameter (unit_id). The description supplies its meaning implicitly — 'the unit to be standing in one of my cities' — which is sufficient for a single obvious identifier, though it never names unit_id directly.

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

Purpose5/5

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

The description names a specific verb and resource — where a trade unit or Great Admiral 'could re-home' — and identifies the exact in-game UI it mirrors (the Change Home City / Change Port chooser). An agent can distinguish it from sibling query tools like available_unit_actions or available_trade_routes without opening the schema.

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?

It states the precondition clearly (the unit must be standing in one of my cities) and what happens outside that condition (no button, the answer says so). It also routes the follow-up action to unit_mission with the returned mission. It stops short of naming an explicit alternative tool for the same decision, which keeps it from a 5.

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