Skip to main content
Glama

calculate_plan_io

Calculates daily material I/O, workforce needs, and operating costs for a saved base plan at current exchange prices, so you can validate production balance and plan viability.

Instructions

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

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>",
      "exchange": "<exchange>"
    },
    "name": "calculate_plan_io"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
exchangeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/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 behavioral burden. It discloses that the tool loads a plan, uses current market prices, and returns a categorized breakdown, but it does not state whether the operation is read-only, what permissions are needed, or how errors are handled.

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 description is front-loaded with the core purpose and then structured into Args and Returns. The Returns section is somewhat detailed given that an output schema exists, but it still helps by naming the categories and cross-referencing calculate_permit_io.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema means return values need not be fully restated, and parameter meanings are adequately covered. However, the lack of annotations means the description should do more to explain read-only behavior, failure modes, and explicit alternatives, leaving meaningful gaps for a calculation tool.

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 description coverage is 0%, so the description must compensate. It defines 'name' as a plan identifier and explains 'exchange' as a pricing code with an example and a list of valid values, which is substantial added meaning. The 'name' parameter could be slightly more specific about whether it is a plan name or ID.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource: calculates daily I/O for a saved base plan. It also lists the computed outputs, so the agent understands the scope. It does not explicitly distinguish this from calculate_permit_io except by the phrase 'saved base plan' and the format cross-reference.

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 by 'saved base plan' and the mention that the return format matches calculate_permit_io, but there is no explicit when-to-use or when-not-to-use guidance. The agent must infer that this is for saved base plans rather than permits.

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