Skip to main content
Glama

Shipping carton mix and pre-label quote check

optimize_cartons

Read-only

Minimize fixed all-in carton costs for 1–500 identical units from one origin. Supply 1–16 pre-approved carton types, available counts, timing and baseline counts. Requires confirmed physical fit and additive per-carton rates. Excludes mixed items, multi-origin shipments, dimensional fit testing and shipment-level discounts. Use before buying shipping labels, after rating the shipment and confirming the delivery deadline. Skip this check when the plan is committed or your shipping system already optimized the same stock, costs and deadline. Price USD 0.00 per call. No authentication. Planning only. Expected sample result: https://dispatch-preflight.yhu9625.chatgpt.site/v1/example/pack/result

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": {
      "asOf": "<asOf>",
      "deadline": "<deadline>",
      "currency": "<currency>",
      "sameServiceRequirementsConfirmed": "<sameServiceRequirementsConfirmed>",
      "allInCostsConfirmed": "<allInCostsConfirmed>",
      "quantity": "<quantity>",
      "cartonFitConfirmed": "<cartonFitConfirmed>",
      "baselineCounts": "<baselineCounts>",
      "cartonTypes": "<cartonTypes>"
    },
    "name": "optimize_cartons"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfYes
currencyYes
deadlineYes
quantityYes
cartonTypesYes
baselineCountsYes
cartonFitConfirmedYes
allInCostsConfirmedYes
sameServiceRequirementsConfirmedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context: planning-only scope, no authentication, zero price per call, required confirmations, and a sample result URL. It still does not describe error behavior or validation outcomes, which keeps it from a 5.

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 description is front-loaded with purpose and scope, then moves through requirements, exclusions, usage conditions, cost/auth notes, and an example. It is dense but largely earns its space; the sample URL is useful, though the paragraph could be slightly more structured for scanning.

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?

For a complex 9-parameter tool with no output schema and no schema parameter descriptions, the definition covers usage, exclusions, and preconditions well. However, it does not adequately explain the required input fields, leaving an agent to infer the meaning of several parameters before calling the tool.

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% across 9 required parameters, so the description must compensate heavily. It mentions carton types, available counts, timing, baseline counts, and confirmed fit, but leaves major parameters such as asOf, deadline, currency, sameServiceRequirementsConfirmed, and allInCostsConfirmed unexplained.

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?

The description states a specific verb and resource: 'Minimize fixed all-in carton costs for 1–500 identical units from one origin.' It also scopes the operation tightly and distinguishes it from a quote-comparison workflow through exclusions and constraints.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance ('Use before buying shipping labels, after rating the shipment and confirming the delivery deadline') and clear when-not-to-use conditions ('Skip this check when the plan is committed or your shipping system already optimized the same stock, costs and deadline'). It also lists concrete exclusions such as mixed items, multi-origin shipments, dimensional fit testing, and shipment-level discounts.

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