Skip to main content
Glama

ABC Inventory Classes

abc_inventory_classes
Read-onlyIdempotent

Classify inventory items (SKUs) into A, B and C classes by their share of total annual value (ABC analysis, Pareto). Send up to 200 SKUs, each with its annual value, or its annual units and unit cost (annual value = units x cost). The default split is 80/15/5: class A is the top-ranked items up to and including the one that reaches 80% of annual value, class B the items after that up to the one that reaches 95%, class C the rest; send a_percent and b_percent to change it. Get back every SKU ranked by annual value with its share, cumulative share and class; per class the item count, share of items, value and share of value; and the cutoffs: the lowest annual value and the last rank in each class. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/abc-inventory). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

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": {
      "items": "<items>"
    },
    "name": "abc_inventory_classes"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesInventory items (up to 200). Each: sku, and either annual_value, or annual_units and unit_cost.
labelNoOptional label for the list (your own text, echoed back; not a person).
a_percentNoShare of total annual value that class A covers, in percent (default 80).
b_percentNoShare of total annual value that class B covers after A, in percent (default 15). Class C is the rest: 100 - a_percent - b_percent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, yet the description adds substantial context beyond them: it is free, uses no model or network, stores nothing sent, signs every answer with a verifiable key at a stated URL, refuses emails/URLs/long digit runs in labels, and reports errors as ok=false with reasons including an hourly limit. That is exactly the behavioral layer annotations cannot express.

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 purpose and the input contract are front-loaded, and nearly every clause carries information (limits, split defaults, answer fields, error modes, provenance). It is a dense single block of semicolon-chained sentences, though, which hurts scanability; a few lines of structure would make it stronger.

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?

There is no output schema, so the description must carry the return contract — and it does, listing the per-SKU ranking, share, cumulative share and class, the per-class counts and value shares, and the cutoff values and ranks, plus the answer envelope fields. For a stateless 4-parameter calculation tool this leaves nothing an agent needs missing.

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 100%, so the schema already documents all four parameters; the description still adds meaning by defining annual value as units x cost, stating the default 80/15/5 split, and explaining that class C is the remainder (100 - a_percent - b_percent). That goes beyond the field-level descriptions rather than merely repeating them.

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?

Starts with a specific verb and resource: 'Classify inventory items (SKUs) into A, B and C classes by their share of total annual value', and names the method (ABC analysis, Pareto). An agent knows exactly what computation this performs without opening the schema.

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 the input contract clearly — send up to 200 SKUs, each with annual value OR annual units plus unit cost — and tells the caller to send a_percent and b_percent to change the default split. What is missing is any explicit when-to-use/when-not-to-use framing against other inventory or reporting tools; the context is clear but no exclusions are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources