Skip to main content
Glama

purchase_item

Purchase a unit or building instantly using gold or faith, based on city and item selection.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
city_idYes
item_nameYes
item_typeYes
yield_typeNoYIELD_GOLD

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool 'costs gold/faith immediately,' indicating a resource cost and immediate effect. However, it does not mention potential errors (e.g., insufficient funds) or whether the action 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.

Conciseness5/5

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

The description is very concise, using a single sentence for the main purpose followed by a bulleted list of parameters. Every sentence is necessary, and the structure is front-loaded with the core functionality. No wasted words.

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?

Given the output schema exists (context signals indicate true), the description does not need to explain return values. It covers the tool's action, parameters, and a useful prerequisite. It lacks error handling or success feedback, but for a straightforward purchase tool, this is adequate.

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?

The description explains all four parameters with clear meanings, data sources (e.g., 'from get_cities output'), and examples. This significantly adds value beyond the schema, which has no descriptions and 0% coverage. The parameter documentation is thorough and actionable.

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 states 'Purchase a unit or building instantly with gold or faith,' which is a specific verb+resource combination. It clearly distinguishes the tool's purpose from siblings by focusing on instant purchase, and mentions a related tool (get_city_production) for prerequisites.

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?

The description provides guidance on when to use by directing users to get_city_production to see available items. It implies a prerequisite but does not explicitly exclude alternatives like city_action, which could also handle purchases indirectly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wrislin1/civ6-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server