Skip to main content
Glama

Dimensional Weight and Billable Weight

dimensional_weight
Read-onlyIdempotent

Work out a parcel's dimensional (volumetric) weight and its billable weight. Send the box length, width and height in inches or centimetres, the dimensional divisor from your carrier rate sheet or contract (cubic inches per pound for inches, cubic centimetres per kilogram for cm; for example 139 or 166 for inches, 5000 or 6000 for cm), and the actual weight if you have it. Get back the measurements after the carrier-style rounding you choose, the cubic size, the dimensional weight before and after rounding, the actual weight after rounding, the billable weight (the greater of the two) and which one bills. Optional: a cubic-size threshold below which dimensional weight is not used (some services apply it only to larger parcels). 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/dimensional-weight). 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": {
      "length": "<length>",
      "width": "<width>",
      "height": "<height>",
      "unit": "<unit>",
      "divisor": "<divisor>"
    },
    "name": "dimensional_weight"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitYesin (weights in pounds) or cm (weights in kilograms).
labelNoOptional label for the parcel (your own text, echoed back; not a person).
widthYesBox width, same unit.
heightYesBox height, same unit.
lengthYesBox length (longest side), in the unit you choose, up to 2 decimals.
divisorYesDimensional divisor from your carrier rate sheet or contract: cubic inches per pound when unit is in (for example 139 or 166), cubic centimetres per kilogram when unit is cm (for example 5000 or 6000).
actual_weightNoOptional: actual scale weight, in pounds for in or kilograms for cm.
weight_roundingNoHow the dimensional and actual weights are rounded: up_to_whole (default; next whole pound or kilogram), up_to_half (next 0.5), or none.up_to_whole
dimension_roundingNoHow each measurement is rounded before multiplying: nearest_whole (default; .5 rounds up), up_to_whole, or none.nearest_whole
dim_applies_above_volumeNoOptional: dimensional weight is used only when the cubic size (after rounding the measurements) is ABOVE this, in cubic inches or cubic centimetres (for example 1728 = one cubic foot).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the read-only/idempotent annotations: discloses that the call is free, uses no model or network, stores nothing, returns signed answers with a verification URL, rejects labels containing emails/URLs/long digit runs, and reports failures as ok=false with reasons including an hourly rate limit. That is exactly the operational context an agent needs before calling.

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?

Front-loads purpose, then inputs, then outputs, then errors and provenance – a logical order with no filler sentences. It is dense but mostly earns its length; the bare list of answer field names is the weakest part since a few are uninformative without explanation.

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?

For a 10-parameter tool with no output schema, the description compensates by enumerating the response fields, both rounding stages, the billable-weight rule, the threshold behavior, and the error modes. An agent could invoke and interpret this tool correctly without further documentation.

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 description coverage is 100%, so the divisor examples, rounding enums, and threshold units are already documented in the schema. The description explains the purpose of the optional threshold ('dimensional weight is not used below this') in prose, but adds little meaning that the schema does not already carry.

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 two named outputs ('work out a parcel's dimensional (volumetric) weight and its billable weight'), then names the inputs and the return values. Nothing about the tool's identity is ambiguous, and it is clearly distinct from the unrelated sibling names.

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?

Explains the calling context well: send box dimensions, the divisor from the carrier rate sheet, and actual weight 'if you have it'. It also notes when the optional volume threshold matters ('some services apply it only to larger parcels'). No explicit alternatives or exclusions are named, but none are obvious in this catalog.

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