Skip to main content
Glama
Captain of Industry MCP

Captain of Industry MCP

by DongFengYan

coi_product_stats

Read-onlyIdempotent

Read current inventory plus production and consumption totals for specified product IDs, including per-month, yearly, and lifetime flow arrays.

Instructions

Read current inventory and production/consumption totals for product IDs. Flow arrays are [thisMonth, lastMonth, thisYear, lastYear, lifetime].

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": {
      "ids": "<ids>"
    },
    "name": "coi_product_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds something annotations cannot: the meaning and ordering of the returned flow arrays, which is the key non-obvious behavior for interpreting results. It does not mention batching limits or behavior for unknown IDs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler. Purpose comes first, then the output-array ordering convention that an agent would otherwise have to guess.

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?

With no output schema, the description carries the burden of explaining return values and does so for the flow arrays. Minor gaps remain: what the inventory totals look like, whether absent IDs error or are skipped, and the maximum batch size.

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 coverage is 0% - the schema only says 'array of strings' with a pattern. The description supplies the missing semantics: these strings are product IDs and multiple may be passed. It does not restate the 1-40 count bound, but the core meaning is conveyed.

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?

States a specific verb and resource: read current inventory plus production/consumption totals for product IDs. That distinguishes it reasonably from coi_product_history (past events) and coi_list_products (catalog listing), though it never names those alternatives explicitly.

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 only implied - 'current inventory and production/consumption totals' suggests a snapshot query rather than a history query, but there is no explicit when-to-use, when-not-to-use, or pointer to a sibling for historical or per-source data.

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