Skip to main content
Glama

api_commerce_shipping_volume

Read-onlyIdempotent

Calculate dimensional volumetric weight and billable shipping weight in kg from dimensions, divisor and actual weight. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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_cm": "<length_cm>",
      "width_cm": "<width_cm>",
      "height_cm": "<height_cm>",
      "actual_weight_kg": "<actual_weight_kg>"
    },
    "name": "api_commerce_shipping_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
width_cmYeswidth cm; see operation description for units and format
height_cmYesheight cm; see operation description for units and format
length_cmYeslength cm; see operation description for units and format
actual_weight_kgYesactual weight kg; see operation description for units and format
divisor_cm3_per_kgNodivisor cm3 per kg; see operation description for units and format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description goes beyond them with two genuinely useful operational facts: a per-call cost of 0.01 USDC payable via Base x402, and the X-Provider-Key header for customer-owned credentials — the kind of billing/auth detail an agent must know before calling. It stops short of saying what is returned when the divisor is omitted or how errors/payment failures surface.

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

Conciseness5/5

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

Two tight sentences with zero filler: the formula/inputs come first, then the cost and auth constraints. Every clause carries operational information an agent would otherwise have to guess.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must convey the return value, and it does indicate volumetric and billable weight in kg. Annotations and full schema coverage handle safety and units. The remaining gap is the divisor default and whether the response includes both weights or only the billable one, which is a real but minor omission for a single-formula calculator.

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 baseline is 3. The description adds mild meaning by tying the parameters to the volumetric-weight formula (dims x divisor vs actual weight), but it never explains the optional divisor_cm3_per_kg — notably, no default divisor value is given, which materially changes the computed billable weight.

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 names a specific verb ('Calculate') and two specific outputs ('dimensional volumetric weight and billable shipping weight in kg'), plus the three input classes used. No sibling in the list performs volumetric/billable weight calculation, so an agent can select it unambiguously without opening the schema.

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?

Usage context is implied by the shipping/logistics framing (you have carton dimensions and an actual weight and need a billable weight), but there is no explicit when-to-use or when-not-to-use statement and no named alternative. For a narrow calculator with no close siblings this is adequate, though an agent must infer the trigger condition.

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