Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PRUN_MCP_CACHE_DIRNoDirectory for cache files (materials, buildings, recipes). Defaults to `cache` (relative to working directory).cache

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
save_base_planA

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.
get_base_planA

Retrieves a single base plan by name.

Args:
    name: Plan identifier.

Returns:
    TOON-encoded plan data or error if not found.
list_base_plansA

Lists all stored base plans.

Args:
    active: Filter by active status (optional).
            If None, returns all plans.
            If True, returns only active plans (real in-game bases).
            If False, returns only inactive plans (planning/reference).

Returns:
    TOON-encoded array of plan summaries containing:
    - name: Plan identifier
    - planet: Planet ID
    - planet_name: Human-readable name (if set)
    - active: Whether the plan is active
    - updated_at: Last update timestamp
delete_base_planB

Removes a base plan.

Args:
    name: Plan identifier.

Returns:
    Success confirmation or error if not found.
calculate_plan_ioA

Calculates daily I/O for a saved base plan.

Loads the specified plan and calculates material input/output,
workforce requirements, and daily costs using current market prices.

Args:
    name: Plan identifier.
    exchange: Exchange code for pricing (e.g., "CI1").
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.

Returns:
    TOON-encoded I/O breakdown (same format as calculate_permit_io):
    - materials: List of {ticker, in, out, delta, cis_per_day}
    - workforce: Required workers by type
    - habitation: Capacity vs required validation
    - area: Used vs limit validation
    - totals: Net CIS/day
calculate_building_costA

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.
get_building_infoA

Get information about a building by its ticker symbol.

Args:
    ticker: Building ticker symbol(s). Can be single (e.g., "PP1")
            or comma-separated (e.g., "PP1,HB1,FRM").
            Also accepts BuildingId (32-character hex string).

Returns:
    TOON-encoded building data including name, area, expertise,
    construction costs, and workforce requirements.
refresh_buildings_cacheA

Refresh the buildings cache from FIO API.

Forces a fresh download of all building data, bypassing the TTL.

Returns:
    Status message with the number of buildings cached.
search_buildingsA

Search buildings by construction materials, expertise, or workforce.

Args:
    commodity_tickers: Material tickers (e.g., ["BSE", "BBH"]).
                      Returns buildings that use ALL specified materials.
    expertise: Expertise type. Valid values: AGRICULTURE, CHEMISTRY,
               CONSTRUCTION, ELECTRONICS, FOOD_INDUSTRIES, FUEL_REFINING,
               MANUFACTURING, METALLURGY, RESOURCE_EXTRACTION.
    workforce: Workforce type. Valid values: Pioneers, Settlers,
               Technicians, Engineers, Scientists.

Returns:
    TOON-encoded list of matching buildings (Ticker and Name only).
    Use get_building_info for full details. All buildings if no filters.
calculate_cogmA

Calculate Cost of Goods Manufactured for a recipe.

Args:
    recipe: Recipe name (e.g., "1xGRN 1xBEA 1xNUT=>10xRAT")
    exchange: Exchange code for pricing (e.g., "CI1").
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.
    efficiency: Production efficiency multiplier (default: 1.0 = 100%)
    self_consume: If True, use produced output to satisfy workforce needs.

Returns:
    TOON-encoded COGM breakdown including cogm_per_unit, costs, and output.
get_exchange_pricesA

Get current market prices with full order book for material(s).

Args:
    ticker: Material ticker symbol(s). Can be single (e.g., "RAT")
            or comma-separated (e.g., "RAT,BSE,H2O").
    exchange: Exchange code(s). Can be single (e.g., "CI1")
              or comma-separated (e.g., "CI1,NC1").
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.

Returns:
    TOON-encoded price data including full order book (BuyingOrders,
    SellingOrders), bid/ask, supply/demand, and price statistics.
get_exchange_allA

Get summary prices for all materials on a specific exchange.

Args:
    exchange: Exchange code(s). Can be single (e.g., "CI1")
              or comma-separated (e.g., "CI1,NC1").
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.

Returns:
    TOON-encoded list of all material prices on the exchange(s).
get_versionA

Get prun-mcp server version.

Returns:
    Server version string.
get_cache_infoB

Get cache status for all data caches.

Returns:
    TOON-encoded cache info including validity, counts, age, and file paths.
get_market_summaryA

Get a quick market snapshot with actionable warnings.

Args:
    ticker: Material ticker symbol(s). Single (e.g., "RAT") or
            comma-separated (e.g., "RAT,COF,SF").
    exchange: Exchange code (e.g., "CI1"). Single exchange only.
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.

Returns:
    Plain text market summary with bid/ask, spread, supply/demand,
    and warnings about market conditions.
analyze_fill_costA

Calculate expected cost/proceeds for a specific quantity.

Walks the order book to account for slippage when executing a trade.

Args:
    ticker: Material ticker symbol (e.g., "RAT"). Single ticker only.
    exchange: Exchange code (e.g., "CI1").
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.
    quantity: Number of units to buy or sell.
    direction: "buy" or "sell".

Returns:
    TOON-encoded fill analysis including fills breakdown, VWAP,
    slippage, and limit price recommendations.
get_price_history_summaryA

Compare current market conditions to historical norms.

Args:
    ticker: Material ticker symbol(s). Single (e.g., "RAT") or
            comma-separated (e.g., "RAT,COF,SF").
    exchange: Exchange code (e.g., "CI1"). Single exchange only.
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.
    days: Historical lookback period in days. Valid: 1-30. Default: 7.

Returns:
    Plain text historical comparison with current vs. historical
    prices, spreads, volume, and insights.
get_order_book_depthA

Get full order book in TOON tabular format.

Args:
    ticker: Material ticker symbol(s). Single (e.g., "RAT") or
            comma-separated (e.g., "RAT,COF").
    exchange: Exchange code (e.g., "CI1"). Single exchange only.
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.
    side: "buy" (bids), "sell" (asks), or "both". Default: "both".
    levels: Maximum price levels per side. Capped to 10 for multi-ticker.
            Valid: 1-100. Default: 20.

Returns:
    TOON-encoded order book with aggregated levels and cumulative
    calculations for cost/proceeds analysis.
get_price_historyA

Get historical price data in TOON tabular format.

Args:
    ticker: Material ticker symbol(s). Single (e.g., "RAT") or
            comma-separated (e.g., "RAT,COF,SF").
    exchange: Exchange code (e.g., "CI1"). Single exchange only.
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.
    days: Historical lookback period in days. Valid: 1-30. Default: 7.

Returns:
    TOON-encoded time series with daily OHLCV data and summary
    statistics for trend analysis.
get_material_infoA

Get information about a material by its ticker symbol.

Args:
    ticker: Material ticker symbol(s). Can be single (e.g., "BSE")
            or comma-separated (e.g., "BSE,RAT,H2O").
            Also accepts MaterialId (32-character hex string).

Returns:
    TOON-encoded material data including name, category, weight, and volume.
refresh_materials_cacheA

Refresh the materials cache from FIO API.

Forces a fresh download of all materials data, bypassing the TTL.

Returns:
    Status message with the number of materials cached.
get_all_materialsB

Get all materials from the cache.

Returns:
    TOON-encoded list of all materials with their properties.
calculate_permit_ioA

Calculate daily material I/O for a base.

Args:
    production: List of production lines with recipe, count, efficiency.
    habitation: List of habitation buildings with building, count.
    exchange: Exchange code for pricing. Valid: AI1, CI1, CI2, IC1, NC1, NC2.
    permits: Number of permits for this base (default: 1).
    extraction: Optional extraction operations with building, resource, count.
    planet: Planet identifier (required if extraction is provided).

Returns:
    TOON-encoded daily I/O breakdown with materials, workforce, area.
get_planet_infoA

Get information about a planet by its identifier.

Args:
    planet: Planet identifier(s). Can be single (e.g., "Katoa")
            or comma-separated (e.g., "Katoa,Montem,Promitor").
            Accepts PlanetId, PlanetNaturalId (e.g., "XK-745b"), or PlanetName.

Returns:
    TOON-encoded planet data including resources, environment, and other details.
search_planetsA

Search planets by resource criteria.

Args:
    include_resources: Comma-separated material tickers that must be present
                      (e.g., "FEO,LST"). Maximum 4 materials.
    exclude_resources: Comma-separated material tickers to exclude
                      (e.g., "H2O,O"). Client-side filtering.
    limit: Maximum planets to return (default 20).
    top_resources: Number of top resources to show per planet (default 3).

Returns:
    TOON-encoded list of planets with name, id, gravity, temperature,
    fertility, and top resources by factor.
get_recipe_infoA

Get recipes that produce a specific material.

Args:
    ticker: Material ticker symbol(s). Can be single (e.g., "BSE")
            or comma-separated (e.g., "BSE,RAT,H2O").

Returns:
    TOON-encoded recipe data including building, inputs, outputs, and duration.
search_recipesA

Search recipes by building, input materials, or output materials.

Args:
    building: Building ticker to filter by (e.g., "PP1", "FP").
    input_tickers: Input material tickers (e.g., ["GRN", "BEA"]).
                   Returns recipes that use ALL specified materials.
    output_tickers: Output material tickers (e.g., ["RAT"]).
                    Returns recipes that produce ALL specified materials.

Returns:
    TOON-encoded list of matching recipes.
refresh_recipes_cacheA

Refresh the recipes cache from FIO API.

Forces a fresh download of all recipe data, bypassing the TTL.

Returns:
    Status message with the number of recipes cached.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_workforce_typesList all workforce types in tier order (lowest to highest). Returns: Newline-separated list of workforce types.
get_habitation_capacityList all habitation buildings with workforce capacities. Returns: Human-readable table of habitation buildings showing building ticker and workforce capacity by type.
get_efficiency_overviewOverview of building efficiency mechanics and formula.
get_efficiency_workforceWorkforce satisfaction impact on building efficiency.
get_efficiency_expertsExpert bonus system for building efficiency.
get_efficiency_cogcCoGC program bonuses for building efficiency.
get_efficiency_conditionBuilding condition impact on efficiency.
list_exchangesList all commodity exchanges with codes and names. Returns: Human-readable table of exchanges showing code and name. Use codes (e.g., CI1) in exchange tools.
list_mechanicsList available game mechanics documentation topics. Returns: List of available pct-mechanics:// resource URIs.
arc_mechanicsARC (Adversity Response Challenge) level formula. Returns: Markdown documentation of ARC mechanics.
building_degradation_mechanicsBuilding condition and repair cost formulas. Returns: Markdown documentation of building degradation mechanics.
hq_mechanicsHQ upgrade costs and efficiency multiplier formulas. Returns: Markdown documentation of HQ mechanics.
planet_mechanicsPlanet resource extraction formulas. Returns: Markdown documentation of planet extraction mechanics.
population_infrastructure_mechanicsPopulation needs, happiness, and growth formulas. Returns: Markdown documentation of population infrastructure mechanics.
ship_blueprints_mechanicsShip construction formulas and component volumes. Returns: Markdown documentation of ship blueprint mechanics.
workforce_mechanicsWorkforce efficiency formulas for all worker types. Returns: Markdown documentation of workforce mechanics.

TDQS

A3.6/5.0

Scored across 28 tools

Disambiguation4/5

Most tools target clearly distinct resources or actions across base plans, buildings, recipes, planets, materials, and market data. However, several market/analysis pairs overlap in surface purpose—get_exchange_prices vs get_order_book_depth, get_price_history vs get_price_history_summary, and calculate_plan_io vs calculate_permit_io—so agents must read descriptions to choose the right granularity/format.

Naming Consistency5/5

Tool names consistently use snake_case and start with clear action verbs such as get_, list_, search_, calculate_, refresh_, save_, and delete_. The few compound names and the calculate_cogm acronym still fit the overall pattern and remain readable.

Tool Count3/5

At 28 tools, the server is above the typical sweet spot and includes multiple market-analysis variants that could plausibly be consolidated. Still, it covers several substantive domains—base planning, recipes, buildings, planets, materials, and market data—so the count is heavy rather than wildly excessive.

Completeness4/5

Base plans have full create/read/update/delete plus IO calculation, and recipes, buildings, materials, planets, and market data have solid lookup/search coverage. Minor gaps exist, such as no broader planet environment search or production-chain solver, but the core workflows are covered.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues