Skip to main content
Glama

calculate_permit_io

Calculate daily material I/O, workforce, and area for a Prosperous Universe base from production, habitation, extraction, permit, and exchange pricing data.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
planetNo
permitsNo
exchangeYes
extractionNo
habitationYes
productionYes

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?

No annotations are provided, so the description carries the full burden. It does disclose a real validation rule ('planet: required if extraction is provided') and names the return content (materials, workforce, area) plus the TOON encoding, which is useful beyond structured fields; however it says nothing about whether the call has side effects, persists anything, or how failures are reported.

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?

A single front-loaded purpose sentence followed by a compact Args/Returns block; every line carries content and nothing is padded. The docstring formatting is slightly utilitarian but not wasteful.

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 six-parameter pure computation tool with an output schema already documenting return shape, the description covers all inputs, the one conditional dependency between extraction and planet, the valid exchange codes, and the nature of the result. What remains missing is routing guidance relative to siblings, which is a usage rather than a completeness gap.

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% and the nested objects are free-form (additionalProperties: true), so the description does the heavy lifting: it names the fields of each list element (recipe/count/efficiency, building/count, building/resource/count) and enumerates the valid exchange codes AI1, CI1, CI2, IC1, NC1, NC2, which the schema does not express as an enum. It falls short of 5 because it omits value formats such as efficiency range (fraction vs percent) and identifier conventions for recipe and resource.

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 opening line gives a specific verb and resource -- 'Calculate daily material I/O for a base' -- which is concrete enough for an agent to know this is a per-base material balance computation. It does not, however, distinguish itself from siblings such as calculate_plan_io, calculate_cogm, or calculate_building_cost, so an agent still has to guess which calculator fits a given question.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no alternative tool is named despite several closely related calculators existing as siblings. The Args block implies what inputs are needed but never explains the scenario that should route an agent here rather than to calculate_plan_io.

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