Skip to main content
Glama

True cost calculator

true_cost
Read-onlyIdempotent

All-in delivered cost of a bullion order. Mode 1 (your_quote): give price, quantity, shipping, and payment fee to total your own quote (with below-spot warning if under melt). Mode 2 (dealer_ranking): give a tracked product and quantity to rank US dealers by delivered total using published shipping and payment fees, with per-dealer unavailability reasons and a stale-shipping warning when fee rules are >7 days old. Standard tool free; for a version fine-tuned or customized to your business, email for pricing via https://bullionpricecheck.com/contact/.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "product": "american-silver-eagle-1oz",
      "quantity": 20
    },
    "name": "true_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceNoMode 1: price per item in USD.
paymentNoMode 2: pay by check/ACH/wire (bank) or credit card.bank
productNoTracked product slug or name with its weight (see list_products). Mode 2 when price is not given; in mode 1 it adds per-ounce cost and premium.
quantityNoNumber of units to buy (1-10000). Default 1.
shippingNoMode 1: shipping charge for the whole order in USD.
payment_fee_pctNoMode 1: payment method fee as a percent of the item total (for example 3.5 for a card surcharge).
payment_fee_usdNoMode 1: flat payment fee in USD (for example a wire fee).

Output Schema

NameRequiredDescriptionDefault
okNo
modeNo
noteNo
toolNo
errorNo
staleNo
termsNo
creditNo
rankedNo
paymentNo
productNo
quantityNo
freshnessNo
items_usdNo
spot_asofNo
below_spotNo
data_as_ofNo
deprecatedNo
not_rankedNo
source_urlNo
attributionNo
spot_sourceNo
shipping_usdNo
customizationNo
canonical_toolNo
melt_value_usdNo
pct_below_spotNo
payment_fee_usdNo
deprecation_noteNo
below_spot_warningNo
price_per_item_usdNo
shipping_fees_readNo
dealers_unavailableNo
delivered_total_usdNo
shipping_fees_staleNo
delivered_per_ozt_usdNo
delivered_premium_pctNo
delivered_per_item_usdNo
shipping_fees_age_daysNo
shipping_stale_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "product": "american-silver-eagle-1oz",
      +    "quantity": 20
      +  }
      +]
    • addedInput schema / properties / quantity / description
      Added value: +"Number of units to buy (1-10000). Default 1."
  2. Changed6 schema fields changed
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "mode",
      +      "quantity",
      +      "attribution",
      +      "source_url",
      +      "data_as_of",
      +      "credit",
      +      "terms",
      +      "customization"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "ok",
      +      "tool",
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / freshness
      Added value: +{
      +  "required": [
      +    "stale"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / ok
      Added value: +{
      +  "const": false
      +}
    • addedOutput schema / properties / tool
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "mode",
      -  "quantity",
      -  "attribution",
      -  "source_url",
      -  "data_as_of",
      -  "credit",
      -  "terms",
      -  "customization"
      -]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    },
      +    "below_spot": {
      +      "type": "boolean"
      +    },
      +    "below_spot_warning": {
      +      "type": "string"
      +    },
      +    "canonical_tool": {
      +      "type": "string"
      +    },
      +    "credit": {
      +      "type": "string"
      +    },
      +    "customization": {
      +      "type": "string"
      +    },
      +    "data_as_of": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "dealers_unavailable": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "checked": {
      +            "type": "string"
      +          },
      +          "dealer": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "status_detail": {
      +            "type": "string"
      +          },
      +          "stock_status": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "dealer",
      +          "stock_status",
      +          "status_detail",
      +          "checked"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "delivered_per_item_usd": {
      +      "type": "number"
      +    },
      +    "delivered_per_ozt_usd": {
      +      "type": "number"
      +    },
      +    "delivered_premium_pct": {
      +      "type": "number"
      +    },
      +    "delivered_total_usd": {
      +      "type": "number"
      +    },
      +    "deprecated": {
      +      "type": "boolean"
      +    },
      +    "deprecation_note": {
      +      "type": "string"
      +    },
      +    "items_usd": {
      +      "type": "number"
      +    },
      +    "melt_value_usd": {
      +      "type": "number"
      +    },
      +    "mode": {
      +      "enum": [
      +        "your_quote",
      +        "dealer_ranking"
      +      ]
      +    },
      +    "not_ranked": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "payment": {
      +      "type": "string"
      +    },
      +    "payment_fee_usd": {
      +      "type": "number"
      +    },
      +    "pct_below_spot": {
      +      "type": "number"
      +    },
      +    "price_per_item_usd": {
      +      "type": "number"
      +    },
      +    "product": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "quantity": {
      +      "type": "integer"
      +    },
      +    "ranked": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "shipping_fees_age_days": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "shipping_fees_read": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "shipping_fees_stale": {
      +      "type": "boolean"
      +    },
      +    "shipping_stale_warning": {
      +      "type": "string"
      +    },
      +    "shipping_usd": {
      +      "type": "number"
      +    },
      +    "source_url": {
      +      "type": "string"
      +    },
      +    "spot_asof": {
      +      "type": [
      +        "string",
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "spot_source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": "string"
      +    },
      +    "terms": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "mode",
      +    "quantity",
      +    "attribution",
      +    "source_url",
      +    "data_as_of",
      +    "credit",
      +    "terms",
      +    "customization"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / product / description
      Previous value: -"Tracked product slug or name. Mode 2 when price is not given; in mode 1 it adds per-ounce cost and premium."New value: +"Tracked product slug or name with its weight (see list_products). Mode 2 when price is not given; in mode 1 it adds per-ounce cost and premium."
  5. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive, closed-world), so the bar is lower. The description still adds genuine behavior: a below-spot warning when the price is under melt, per-dealer unavailability reasons, and a stale-shipping warning when fee rules are over 7 days old. The free-vs-paid customization note is commercial rather than operational, so it does not raise the score further.

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 two modes are front-loaded and skimmable, each anchored by a parenthetical mode name that matches the schema's conditional logic. The closing sentence about emailing for a customized version is promotional filler that does not help an agent select or invoke the tool.

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?

For a seven-parameter, zero-required, mode-conditional tool with an output schema, the description covers the essential missing piece: what each mode needs. Minor gaps remain, such as what happens if neither price nor product is supplied, or what the ranking output ordering guarantees — though the output schema likely carries the return shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the per-parameter baseline is 3. The description earns above that by grouping the seven parameters into disjoint per-mode sets, clarifying which inputs belong together, and noting that product in mode 1 adds per-ounce cost and premium — mode partitioning that the flat schema cannot express.

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 opening line names the exact quantity computed (all-in delivered cost of a bullion order) and then splits it into two named modes with their own inputs. An agent can distinguish this from melt_value or premium_over_spot, which compute spot/melt-relative figures rather than a delivered total.

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?

It states the input signature that selects each mode ('give price, quantity, shipping, and payment fee' vs 'give a tracked product and quantity'), which is the real decision rule. It also points to list_products for product slugs. It stops short of naming a sibling and saying when to prefer it over this tool.

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