Skip to main content
Glama

cpu_demolish

Demolish a building on a land cell you own to clear the plot for a new building. Burns a fraction of build cost in $CPU and consumes materials; the plot is locked until the demolish cooldown ends.

Instructions

Remove the building from a Land cell you own, clearing it for a different building. Requires a session — call cpu_authenticate first. Not free: it burns a fraction of the building’s build cost in $CPU (auto-approved) and consumes some of its build materials from the cell’s warehouse (no refund) — see each building's demolishCost in cpu_get_game_config for the exact amounts. The cell must have no active mining or craft process — a craft frees its slot once fully claimed, but a mining run only ends when its deposit is exhausted, so a mining extractor cannot be demolished mid-run; a hub can only be demolished when it is not mid-route or anchoring open trade lots. Deposits and other warehouse balances are preserved. Afterward the plot is locked from rebuilding until its demolish cooldown ends (its demolishFinishAt); cpu_get_cell/cpu_get_attention surface the cooldown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenIdYesThe tokenId of a cell you own whose building to remove.

Schema Changelog

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

  1. Changed1 schema field changedv0.10.0
    • changedInput schema / properties / tokenId / maximum
      Previous value: -48990New value: +29150
  2. First observedv0.8.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full disclosure burden and meets it thoroughly: costs CPU and consumes materials with no refund, preserves deposits and warehouse balances, locks the plot during a cooldown, and details mining/craft/hub edge cases. It even points to cpu_get_game_config for exact demolishCost figures.

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 core purpose is front-loaded in the first sentence, and each subsequent sentence earns its place covering costs, restrictions, preserved state, and cooldown. The length is fully justified by the number of behavioral constraints a caller must know before invoking a destructive operation.

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 destructive tool with no annotations and no output schema, the description covers every major concern: authentication prerequisite, exact cost sources, failure-condition edge cases, post-demolition cooldown, and where to verify it (cpu_get_cell/cpu_get_attention). The only omission is the return payload, which is minor for a side-effect-driven action.

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 100% for the single tokenId parameter, so the baseline is 3. The description adds genuine meaning beyond the schema by defining which tokenIds are valid targets — cells with no active mining/craft processes, hubs in a non-busy state — and by noting the rebuild cooldown that follows on the same cell.

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 first sentence states a specific action — 'Remove the building from a Land cell you own' — with a clear outcome ('clearing it for a different building'). This unambiguously distinguishes it from building-related siblings like cpu_build and cpu_upgrade.

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 gives strong when-to-use context ('clearing it for a different building') and a hard prerequisite ('call cpu_authenticate first'). It enumerates explicit exclusion conditions — no active mining or craft process, hub not mid-route or anchoring open trade lots — but never names or contrasts an alternative tool for comparison.

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