Skip to main content
Glama

cpu_upgrade

Upgrade a building on a Land cell you own to a target type from the current catalog. Requires an active session; pays the full configured $CPU build cost and starts a new construction timer.

Instructions

Upgrade the building on a Land cell you own to a dynamically configured target type — needs a session (cpu_authenticate first). Pick targetBuildingType from the current catalog (cpu_get_game_config): only upgraded entries (those with a predecessor) are valid targets — a base building belongs to cpu_build. Costs the target's full configured $CPU build cost (auto-approved once); reuses the same on-chain placement as cpu_build, so it installs the target immediately and starts a new construction timer. The contract is the final authority on whether the target is a valid direct successor, on active processes, demolition cooldown, materials, and storage capacity — this tool does not pre-check any of them locally, so a stale local view never blocks a transaction the chain would accept. Deposits, liquid warehouse balances, and the selected mode survive the upgrade. Production and Hub functionality are unavailable until construction finishes; inspect progress with cpu_get_cell.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenIdYesThe tokenId of a revealed cell you own whose current building to upgrade.
targetBuildingTypeYesThe exact catalog `type` of the upgrade target, resolved dynamically against the current building catalog (see cpu_get_game_config) — not a static list. Must have a predecessor: a base building with no predecessor belongs to cpu_build instead.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.10.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and succeeds: it discloses the full $CPU cost with auto-approval, immediate install plus a fresh construction timer, the contract's authority over successor validity, active processes, cooldowns, and storage, and post-upgrade state (deposits, balances, mode persist; production and Hub unavailable until done). This level of side-effect disclosure is well beyond typical mutation-tool descriptions.

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?

About 150 words, with every sentence carrying operational content: purpose, prerequisite, target-selection rule, cost, execution semantics, chain authority, persistence, and follow-up. It is front-loaded with the action and organized from prerequisites to side effects to verification, though the density makes it longer than typical tool blurbs.

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 2-parameter tool with no annotations and no output schema, the description is thorough: it covers prerequisites, cost, timing, persistence, availability consequences, and the verification path via cpu_get_cell. The one gap is the return value or response shape, which is not stated — partially mitigated by the explicit inspection suggestion.

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

Parameters3/5

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

Schema description coverage is 100% and both parameter descriptions are already detailed, establishing a baseline of 3. The tool description restates the predecessor rule and dynamic-catalog resolution but adds little beyond the schema, only reinforcing tokenId as a Land cell — so it does not push meaningfully past the baseline.

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?

Names a specific action ('Upgrade') on a specific resource ('the building on a Land cell you own to a dynamically configured target type'). Explicitly routes predecessor-less base buildings to cpu_build, differentiating this tool from its closest sibling without requiring schema inspection.

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

Usage Guidelines5/5

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

Gives concrete selection rules: authenticate with cpu_authenticate first, pull valid targets from cpu_get_game_config, and use cpu_build for base types with no predecessor. Also sets expectations that the tool performs no local validity pre-checks, so a stale local view should not deter a call, and directs the agent to cpu_get_cell to inspect the resulting construction.

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

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/projectcpu/project-cpu-mcp'

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