Skip to main content
Glama

mechacut

ship_dimweight

What a parcel is actually BILLED, step by step: dimensions -> ceil each BEFORE volume -> volume ÷ divisor -> max(actual, dimensional) -> ceil to the weight palier -> cap. Two published calculators disagree on the SAME inches (20x20x12: rollo 35 lb, amzprep 34.5 — the exact value is 4800/139 = 34.5323741007, one of them skipped the final ceil). Carrier tables are ARGUMENTS, never embedded — they rot (USPS moved 166 -> 139 ON 2026-07-12); divisor carries its own unit (in3_lb|cm3_kg), which kills the published mm-into-139 trap (x16.4). USPS-style gates: >1 cubic foot, 70 lb cap, as named steps. All Fractions exact; free.

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": {
      "dims": "<dims>",
      "actual_weight": "<actual_weight>",
      "rules": "<rules>"
    },
    "name": "ship_dimweight"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimsYes
as_ofNoYYYY-MM-DD date the carrier table was read
rulesYes
actual_weightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations and no output schema, the description carries the full burden and does disclose a lot: exact Fraction arithmetic, order of operations, rounding chaining, cap enforcement, USPS-style volume/weight gates, and that it is free/pure. However, it never describes what the call returns (billed weight only, or the per-step trace?), which is a material gap for an agent invoking it.

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 algorithm is correctly front-loaded, but the second sentence's calculator-disagreement anecdote, including a ten-digit decimal (34.5323741007) and a dated USPS divisor change, spends a lot of tokens on narrative. The content is informative but not tightly economical.

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 nested-object tool with no annotations and no output schema, the definition explains inputs and the computation well but leaves the return value and error behavior undescribed. An agent knows how to compute but not what it will get back.

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 only 25%, so the description must compensate. It usefully explains divisor with its embedded unit (in3_lb|cm3_kg), the mm-into-139 conversion trap, weight_step as the 'palier' ceil step, cap, and the cubic-foot gate, which maps to min_volume. It says nothing about as_of, leaving the caller to rely on the terse schema note.

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 states a concrete computation ('What a parcel is actually BILLED') and spells out the exact pipeline: dims -> ceil -> volume ÷ divisor -> max(actual, dimensional) -> ceil to weight_step -> cap. An agent can tell this is a dimensional-weight/billing calculator. It stops short of a clean verb+resource opening, but the purpose is unambiguous.

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?

There is no explicit when-to-use or when-not guidance, and no named alternative to route against. The carrier-table-as-argument rationale implies the tool should be used with caller-supplied tables rather than hardcoded rates, but the agent gets no instruction on prerequisites or exclusions.

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.