Skip to main content
Glama

calculate_building_cost

Calculates complete material requirements and cost to build a specified building on a planet, including environment-based infrastructure needs and optional exchange pricing.

Instructions

Calculate total cost to build a building on a planet.

Calculates the complete material requirements including base building
costs and infrastructure materials based on planetary environment
(surface type, pressure, gravity, temperature).

Args:
    building_ticker: Building ticker (e.g., "FP", "HB1", "FRM").
    planet: Planet identifier (name, natural ID, or planet ID).
    exchange: Optional exchange code for cost calculation (e.g., "CI1").
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.

Returns:
    TOON-encoded breakdown of materials including base costs
    and infrastructure requirements based on planet environment.
    If exchange is provided, includes price and cost per material.

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": {
      "building_ticker": "<building_ticker>",
      "planet": "<planet>"
    },
    "name": "calculate_building_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
planetYes
exchangeNo
building_tickerYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses useful behavior — output is TOON-encoded, environment (surface type, pressure, gravity, temperature) changes the material set, and prices appear only when an exchange is supplied. It omits whether the tool is purely computational/offline, how errors on an unknown ticker or planet surface, and whether results are cached.

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 purpose sentence is front-loaded and the Args/Returns structure is easy to scan. There is mild redundancy in restating the return shape when an output schema exists, but nothing is wasted or padded.

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 three-parameter calculation tool with an output schema already covering return shape, the definition supplies what the structured fields do not: parameter formats, valid exchange codes, and the environmental dependency. Only error behavior and determinism are left unaddressed.

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: building_ticker gets concrete examples ('FP', 'HB1', 'FRM'), planet accepts name, natural ID, or planet ID, and exchange is documented with an explicit valid set (AI1, CI1, CI2, IC1, NC1, NC2) plus its effect on the result. This is meaningfully more than the bare schema provides.

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?

States a specific verb and resource — 'Calculate total cost to build a building on a planet' — and then narrows the scope to base costs plus infrastructure materials derived from planetary environment. This is clearly distinct from siblings like calculate_cogm or analyze_fill_cost, and an agent can identify the operation 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 Guidelines3/5

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

Usage is implied rather than stated: the description explains that supplying an exchange adds pricing, which hints at when to include it, but never says when to prefer this tool over related calculators such as analyze_fill_cost or calculate_permit_io, and gives no prerequisites or failure conditions.

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