Skip to main content
Glama

Johto Data Carton Dimensional Billable Weight Calculator

carton_weight
Read-only

Calculate dimensional and billable kg from caller-supplied centimetres, actual kg, divisor and optional rounding step. No carrier price lookup. Costs $0.001 USDC per call via x402. Without payment, the call returns the x402 payment requirements; retry with an X-PAYMENT or PAYMENT-SIGNATURE header, or params._meta["x402/payment"].

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": {
      "lengthCm": "<lengthCm>",
      "widthCm": "<widthCm>",
      "heightCm": "<heightCm>",
      "actualKg": "<actualKg>",
      "divisor": "<divisor>"
    },
    "name": "carton_weight"
  }
}

Input Schema

NameRequiredDescriptionDefault
divisorYesCaller-supplied dimensional divisor in cm^3/kg, positive, max 100000
widthCmYesWidth in centimetres, positive, max 10000
actualKgYesActual weight in kg, positive, max 10000
heightCmYesHeight in centimetres, positive, max 10000
lengthCmYesLength in centimetres, positive, max 10000
roundingStepKgNoOptional positive ceiling step in kg; omitted means no carrier rounding

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a safe, closed-world read, so the description correctly spends its words elsewhere: it discloses a per-call price ($0.001 USDC via x402) and, crucially, the failure mode — an unpaid call returns payment requirements rather than a result — plus three concrete remediation channels. That is real behavioural information an agent cannot get from the annotations or schema. It stops short of describing the success payload or unit/rounding semantics of the computed output.

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?

Three sentences, no filler: capability first, scope exclusion second, payment mechanics third. The payment sentence is dense with header names and a JSON pointer, but that density is load-bearing rather than decorative. Slight cost for cramming three remediation options into one clause.

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?

With no output schema, the description carries the burden of describing results, and it only covers the failure payload (x402 requirements). It never says what a successful response contains — presumably dimensional kg, actual kg, billable kg after ceiling rounding — so an agent cannot confirm the return shape. The core computation, inputs, and payment contract are otherwise complete.

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 parameters are already fully documented, including "omitted means no carrier rounding" for roundingStepKg and the positivity/max bounds. The description only adds the qualifier "caller-supplied" for the divisor (useful, since it signals the tool does not assume a carrier-standard divisor), which is a marginal value-add over the schema. Baseline 3 applies.

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?

"Calculate dimensional and billable kg" gives a specific verb and a precise output resource, and the exclusion "No carrier price lookup" fences off the adjacent pricing use case an agent might otherwise assume. An agent can tell immediately that this is a pure arithmetic/rating-normalisation helper and not a shipping-quote tool.

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?

The description implies usage (you supply cm, kg, divisor and optionally a rounding step) and gives explicit operational guidance for the payment failure path, including the header names to retry with. What it lacks is any statement of when to prefer this over an alternative, or prerequisites such as whose divisor to supply (carrier-specific vs. standard 5000/6000).

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