Skip to main content
Glama

save_base_plan

Creates or updates a base plan with habitation, production recipes, storage, extraction, and notes, returning the saved plan and validation warnings.

Instructions

Creates or updates a base plan.

Args:
    name: Plan identifier (unique name).
    planet: Planet ID (e.g., "KW-020c").
    habitation: Habitation buildings, each with:
               - building: Building ticker (e.g., "HB1")
               - count: Number of buildings
    production: Recipe assignments, each with:
               - recipe: Full recipe name (e.g., "1xGRN 1xALG 1xVEG=>10xRAT")
               - count: Number of buildings running this recipe
               - efficiency: Efficiency multiplier (e.g., 1.33 for 133%)
    planet_name: Human-readable planet name (optional).
    cogc_program: Active COGC program if any (optional).
    expertise: Expert counts by category using PascalCase keys (optional).
              Valid keys: Agriculture, Chemistry, Construction, Electronics,
              FoodIndustries, FuelRefining, Manufacturing, Metallurgy,
              ResourceExtraction.
    storage: Storage buildings with capacity (optional), each with:
            - building: Storage ticker (e.g., "STO")
            - count: Number of buildings
            - capacity: Storage capacity
    extraction: Resource extraction operations (optional), each with:
               - building: Extraction building ticker (EXT, RIG, COL)
               - resource: Material ticker to extract (e.g., "GAL", "FEO")
               - count: Number of buildings
               - efficiency: Efficiency multiplier (default: 1.0)
    notes: Freeform notes (optional).
    active: Whether the plan represents an active in-game base (default: False).
            Active plans represent real bases/permits; inactive plans are for
            planning or reference only.
    overwrite: Must be true to update an existing plan.

Returns:
    TOON-encoded saved plan with any validation warnings.

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": {
      "name": "<name>",
      "planet": "<planet>",
      "habitation": "<habitation>",
      "production": "<production>"
    },
    "name": "save_base_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
notesNo
activeNo
planetYes
storageNo
expertiseNo
overwriteNo
extractionNo
habitationYes
productionYes
planet_nameNo
cogc_programNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the burden alone. It usefully discloses the overwrite guard, the meaning of active, and that the response is TOON-encoded with validation warnings. It does not say whether overwrite replaces the whole plan or merges, what happens if validation warnings occur (is the plan still saved?), or any permission requirements - significant gaps for a mutation on 12 fields.

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?

Front-loaded with a one-sentence summary, then a structured Args list that earns its length given 12 parameters with nested objects. Minor waste from repeating 'optional' on each item and inconsistent indentation in the nested bullets, but nothing that impedes scanning.

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 12-parameter mutation tool, the description covers every input plus the return format, and an output schema exists so return details are not required of it. Remaining holes are overwrite merge/replace semantics and failure behavior on validation warnings, which an agent would want before calling it.

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 this description is the only documentation, and it compensates fully: it explains every parameter including the nested shapes for habitation, production, storage and extraction, gives example tickers and recipe syntax, enumerates the valid PascalCase expertise keys, and states defaults for efficiency and active.

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 opening line 'Creates or updates a base plan' gives a specific verb and resource, and the overwrite parameter clause makes the create-vs-update distinction explicit. Against siblings like get_base_plan, delete_base_plan and list_base_plans, an agent can immediately tell this is the write path.

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 a concrete usage rule - 'overwrite: Must be true to update an existing plan' - and explains what active=True versus inactive means (real bases/permits vs planning or reference). What is missing is any explicit statement of when not to use this tool or which sibling to reach for when the agent only wants to read or compute a plan.

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