Skip to main content
Glama

commerce_pack_plan

Read-only

Choose the lowest-cost whole-pack combination for a required count with exact prices and explicit pack limits; up to 20 interchangeable offers. FREE during validation. No key, credits, wallet or preparation needed. Supply your task in input. Existing source and input limits apply.

Input Schema

NameRequiredDescriptionDefault
inputYes

Output Schema

NameRequiredDescriptionDefault
linesYes
scopeYes
currencyYes
feasibleYes
packCountYes
totalUnitsYes
excessUnitsYes
itemSubtotalYes
requiredUnitsYes
minorUnitDigitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / maxPriceMicroUsd
      Removed value: -{
      -  "description": "Optional legacy field; ignored in free mode.",
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedInput schema / properties / requestId
      Removed value: -{
      -  "description": "Optional legacy field; ignored in free mode.",
      -  "type": "string"
      -}
  2. Changed5 schema fields changed
    • changedInput schema / properties / maxPriceMicroUsd / description
      Previous value: -"Explicit maximum new debit; 0 means recovery only."New value: +"Optional legacy field; ignored in free mode."
    • removedInput schema / properties / maxPriceMicroUsd / maximum
      Removed value: -999999999999
    • changedInput schema / properties / requestId / description
      Previous value: -"Persist the ID returned by agent_utilities_prepare. Reuse after uncertainty."New value: +"Optional legacy field; ignored in free mode."
    • removedInput schema / properties / requestId / pattern
      Removed value: -"^\\d{13}_[A-Za-z0-9_-]{16,80}$"
    • changedInput schema / required
      Previous value: -[
      -  "input",
      -  "requestId",
      -  "maxPriceMicroUsd"
      -]New value: +[
      +  "input"
      +]
  3. First observed

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful operational context beyond annotations: it is free during validation, requires no key/credits/wallet/preparation, and says existing source and input limits apply. It does not contradict any annotation.

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 is front-loaded and the description is brief with no obvious padding. However, the fragmented credential/payment sentences ('FREE during validation. No key, credits, wallet or preparation needed.') and the vague 'Supply your task in input' are less useful than tighter schema-oriented guidance.

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 tool has a nested input schema with no property descriptions and an output schema. The description conveys the high-level optimization task and some limits, but it leaves important input semantics unexplained, so an agent would need to inspect the schema closely to build a valid call.

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

Parameters2/5

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

Schema description coverage is 0% and the single 'input' parameter is a complex nested object, so the description must carry the burden. It partially maps to the schema by mentioning required count, exact prices, explicit pack limits, and up to 20 interchangeable offers, but it does not explain currency, minorUnitDigits, or the nested offer structure. 'Supply your task in input' adds almost no usable parameter guidance.

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 description uses a specific verb phrase ('Choose the lowest-cost whole-pack combination') and states the optimization target, inputs ('required count', 'exact prices', 'explicit pack limits'), and a key constraint ('up to 20 interchangeable offers'). It does not differentiate itself from sibling tools such as commerce_pack_size_normalize or agent_utilities_pack_preview, so an agent cannot route between pack-related siblings from this text alone.

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?

The description gives operational context ('FREE during validation', no credentials needed) but no explicit when-to-use or when-not-to-use guidance. It never names alternatives, prerequisites, or conditions under which another sibling tool should be selected instead.

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