Skip to main content
Glama

WritersLogic business agents

pack-size

Pack sizes, MOQ, order increments, overbuy cap and price breakpoints: what to actually order — Finds the cheapest valid order quantity for a requested number of units across up to 50 supplier options, for an agent buying parts or consumables sold in packs. Each option has a pack size (units per pack or notation such as "6x100", "case of 12", "12/case", "case of 6 inners"), an optional minimum order quantity, an order increment and price breakpoints; the order is rounded up to a multiple of

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": {
      "requested": "<requested>",
      "options": "<options>"
    },
    "name": "pack-size"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsYes
requestedYesUnits needed.
overbuyCapPercentNoReject orders exceeding the request by more than this percent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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 burden. It usefully discloses that the result is the cheapest valid order, that up to 50 options are compared, and that orders are rounded up to a multiple — but the rounding sentence is cut off mid-phrase ('rounded up to a multiple of '), so the core constraint is left dangling. It also says nothing about failure behavior (e.g., when no option satisfies the request) or cost/tie-breaking rules.

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

Conciseness3/5

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

The lead clause front-loads the key concepts and the em-dash framing is efficient, but the text is dense with enumeration and, critically, ends as an unfinished sentence fragment. That truncation is wasted space where the single most important behavioral rule should have been stated.

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

Completeness2/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 should say what comes back — the chosen option id, order quantity, cost, or rejections — and it does not. Combined with the truncated rounding rule and the absence of annotations, an agent knows the intent but not the return shape or failure semantics needed to invoke it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the schema itself already documents packNotation examples, breakpoint precedence ('the highest breakpoint reached applies'), and unitsPerPack disambiguation. The description largely restates those same option fields, adding only the 'up to 50 options' bound; it adds no meaning for requested or overbuyCapPercent beyond what the schema says.

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?

States a specific verb and outcome — 'Finds the cheapest valid order quantity for a requested number of units across up to 50 supplier options' — plus the domain ('parts or consumables sold in packs'). An agent can immediately tell this is an order-quantity optimizer rather than a fit/packaging tool.

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?

The description gives a use context ('for an agent buying parts or consumables sold in packs') and implicitly frames the task as choosing what to actually order. It offers no when-not conditions, no prerequisites, and no pointer to any alternative tool for related tasks like carton fit or pack notation parsing.

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