Skip to main content
Glama

Melt value and scrap gold calculator

melt_value
Read-onlyIdempotent

Melt value of gold, silver or platinum items or scrap jewelry: weight × purity (or karat) × spot. Example: {"weight":10,"karat":14,"offer_usd":500}.

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": {
      "weight": "<weight>"
    },
    "name": "melt_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNo
karatNo
metalNogold
purityNo
weightYes
offer_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "karat": 14,
      -    "weight": 10
      -  }
      -]
    • removedInput schema / properties / karat / description
      Removed value: -"Gold karat for scrap gold or jewelry (e.g. 10, 14, 18, 22, 24 where 24k=0.999). Use instead of purity."
    • removedInput schema / properties / metal / description
      Removed value: -"Metal (defaults to gold when karat is given). Palladium is not tracked."
    • removedInput schema / properties / offer_usd / description
      Removed value: -"Optional buyer offer in USD to compare against full melt value (returns pct_of_melt)."
    • removedInput schema / properties / purity / description
      Removed value: -"Metal fineness as a fraction (0-1), e.g. 0.999, 0.9167 (22k), 0.925 (sterling), 0.90 (90% coin silver). Defaults to 1 when karat is omitted."
    • removedInput schema / properties / unit / description
      Removed value: -"Weight unit: ozt = troy ounce (default for bullion), g = gram (default when karat is given), kg = kilogram, dwt = pennyweight."
    • removedInput schema / properties / weight / description
      Removed value: -"Gross weight of the item or scrap lot."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "anyOf": [
      -    {
      -      "required": [
      -        "metal",
      -        "weight",
      -        "unit",
      -        "purity",
      -        "weight_grams",
      -        "pure_metal_ozt",
      -        "pure_metal_grams",
      -        "spot_usd_per_ozt",
      -        "melt_value_usd",
      -        "melt_per_gram_usd",
      -        "formula",
      -        "note",
      -        "attribution",
      -        "source_url",
      -        "data_as_of",
      -        "credit",
      -        "terms",
      -        "customization"
      -      ]
      -    },
      -    {
      -      "required": [
      -        "ok",
      -        "tool",
      -        "error"
      -      ]
      -    }
      -  ],
      -  "properties": {
      -    "attribution": {
      -      "type": "string"
      -    },
      -    "attribution_credit": {
      -      "type": "object"
      -    },
      -    "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"
      -      ]
      -    },
      -    "deprecated": {
      -      "type": "boolean"
      -    },
      -    "deprecation_note": {
      -      "type": "string"
      -    },
      -    "error": {
      -      "required": [
      -        "code",
      -        "message"
      -      ],
      -      "type": "object"
      -    },
      -    "formula": {
      -      "type": "string"
      -    },
      -    "freshness": {
      -      "required": [
      -        "stale"
      -      ],
      -      "type": "object"
      -    },
      -    "gold_spot_usd_per_ozt": {
      -      "type": "number"
      -    },
      -    "karat": {
      -      "type": "number"
      -    },
      -    "melt_per_gram_usd": {
      -      "type": "number"
      -    },
      -    "melt_value_usd": {
      -      "type": "number"
      -    },
      -    "metal": {
      -      "type": "string"
      -    },
      -    "note": {
      -      "type": "string"
      -    },
      -    "offer": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "offer_usd": {
      -          "type": "number"
      -        },
      -        "pct_of_melt": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "offer_usd",
      -        "pct_of_melt"
      -      ],
      -      "type": "object"
      -    },
      -    "ok": {
      -      "const": false
      -    },
      -    "pct_below_spot": {
      -      "type": "number"
      -    },
      -    "pure_gold_grams": {
      -      "type": "number"
      -    },
      -    "pure_metal_grams": {
      -      "type": "number"
      -    },
      -    "pure_metal_ozt": {
      -      "type": "number"
      -    },
      -    "purity": {
      -      "type": "number"
      -    },
      -    "source_url": {
      -      "type": "string"
      -    },
      -    "spot_asof": {
      -      "type": [
      -        "string",
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "spot_source": {
      -      "type": "string"
      -    },
      -    "spot_usd_per_ozt": {
      -      "type": "number"
      -    },
      -    "stale": {
      -      "type": "string"
      -    },
      -    "terms": {
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": "string"
      -    },
      -    "unit": {
      -      "type": "string"
      -    },
      -    "weight": {
      -      "type": "number"
      -    },
      -    "weight_grams": {
      -      "type": "number"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • addedOutput schema / properties / attribution_credit
      Added value: +{
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "karat": 14,
      +    "weight": 10
      +  }
      +]
  4. Changed6 schema fields changed
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "metal",
      +      "weight",
      +      "unit",
      +      "purity",
      +      "weight_grams",
      +      "pure_metal_ozt",
      +      "pure_metal_grams",
      +      "spot_usd_per_ozt",
      +      "melt_value_usd",
      +      "melt_per_gram_usd",
      +      "formula",
      +      "note",
      +      "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: -[
      -  "metal",
      -  "weight",
      -  "unit",
      -  "purity",
      -  "weight_grams",
      -  "pure_metal_ozt",
      -  "pure_metal_grams",
      -  "spot_usd_per_ozt",
      -  "melt_value_usd",
      -  "melt_per_gram_usd",
      -  "formula",
      -  "note",
      -  "attribution",
      -  "source_url",
      -  "data_as_of",
      -  "credit",
      -  "terms",
      -  "customization"
      -]
  5. Changed11 schema fields changed
    • addedInput schema / properties / karat
      Added value: +{
      +  "description": "Gold karat for scrap gold or jewelry (e.g. 10, 14, 18, 22, 24 where 24k=0.999). Use instead of purity.",
      +  "maximum": 24,
      +  "minimum": 1,
      +  "type": "number"
      +}
    • addedInput schema / properties / metal / default
      Added value: +"gold"
    • addedInput schema / properties / metal / description
      Added value: +"Metal (defaults to gold when karat is given). Palladium is not tracked."
    • addedInput schema / properties / offer_usd
      Added value: +{
      +  "description": "Optional buyer offer in USD to compare against full melt value (returns pct_of_melt).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • removedInput schema / properties / purity / default
      Removed value: -1
    • changedInput schema / properties / purity / description
      Previous value: -"Metal fineness as a fraction, for example 0.999, 0.9167 (22k), 0.925 (sterling), 0.90 (US 90% coins)."New value: +"Metal fineness as a fraction (0-1), e.g. 0.999, 0.9167 (22k), 0.925 (sterling), 0.90 (90% coin silver). Defaults to 1 when karat is omitted."
    • removedInput schema / properties / unit / default
      Removed value: -"ozt"
    • changedInput schema / properties / unit / description
      Previous value: -"ozt = troy ounce, g = gram, kg = kilogram, dwt = pennyweight."New value: +"Weight unit: ozt = troy ounce (default for bullion), g = gram (default when karat is given), kg = kilogram, dwt = pennyweight."
    • changedInput schema / properties / weight / description
      Previous value: -"Gross weight of the item."New value: +"Gross weight of the item or scrap lot."
    • changedInput schema / required
      Previous value: -[
      -  "metal",
      -  "weight"
      -]New value: +[
      +  "weight"
      +]
    • 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"
      +      ]
      +    },
      +    "deprecated": {
      +      "type": "boolean"
      +    },
      +    "deprecation_note": {
      +      "type": "string"
      +    },
      +    "formula": {
      +      "type": "string"
      +    },
      +    "gold_spot_usd_per_ozt": {
      +      "type": "number"
      +    },
      +    "karat": {
      +      "type": "number"
      +    },
      +    "melt_per_gram_usd": {
      +      "type": "number"
      +    },
      +    "melt_value_usd": {
      +      "type": "number"
      +    },
      +    "metal": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "offer": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "offer_usd": {
      +          "type": "number"
      +        },
      +        "pct_of_melt": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "offer_usd",
      +        "pct_of_melt"
      +      ],
      +      "type": "object"
      +    },
      +    "pct_below_spot": {
      +      "type": "number"
      +    },
      +    "pure_gold_grams": {
      +      "type": "number"
      +    },
      +    "pure_metal_grams": {
      +      "type": "number"
      +    },
      +    "pure_metal_ozt": {
      +      "type": "number"
      +    },
      +    "purity": {
      +      "type": "number"
      +    },
      +    "source_url": {
      +      "type": "string"
      +    },
      +    "spot_asof": {
      +      "type": [
      +        "string",
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "spot_source": {
      +      "type": "string"
      +    },
      +    "spot_usd_per_ozt": {
      +      "type": "number"
      +    },
      +    "stale": {
      +      "type": "string"
      +    },
      +    "terms": {
      +      "type": "string"
      +    },
      +    "unit": {
      +      "type": "string"
      +    },
      +    "weight": {
      +      "type": "number"
      +    },
      +    "weight_grams": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "metal",
      +    "weight",
      +    "unit",
      +    "purity",
      +    "weight_grams",
      +    "pure_metal_ozt",
      +    "pure_metal_grams",
      +    "spot_usd_per_ozt",
      +    "melt_value_usd",
      +    "melt_per_gram_usd",
      +    "formula",
      +    "note",
      +    "attribution",
      +    "source_url",
      +    "data_as_of",
      +    "credit",
      +    "terms",
      +    "customization"
      +  ],
      +  "type": "object"
      +}
  6. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact — the result is derived from spot price — but says nothing about which spot source/currency is used, whether an offer comparison is returned, or how karat and purity interact. It adds some value without contradicting the annotations.

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?

One front-loaded sentence states the purpose and formula, followed by a compact example payload. Nothing is padded and the most important information appears first.

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

Completeness2/5

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

With six parameters, 0% schema coverage, and no output schema, the description is too thin: return shape, unit handling, offer_usd semantics, and purity/karat precedence all remain undocumented. An agent could construct a call but could easily get the units or field interaction wrong.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, and it only partially delivers. It names weight, purity, karat, and the three metals, but never explains 'unit' (ozt/g/kg/dwt) — a unit mismatch would silently produce a wrong result — and never explains what offer_usd does (presumably an offer-vs-melt comparison). The precedence between supplying purity versus karat is also left unstated.

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 specific resource and operation: computing melt value for gold, silver, or platinum items or scrap jewelry, and even gives the formula (weight × purity/karat × spot). That is far more concrete than the title alone. It does not, however, contrast itself with nearby tools such as junk_silver_melt or dealer_scrap_intake_quote, so an agent must infer which calculator to pick.

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 is only implied by the formula and the sample call; there is no explicit statement of when to use this versus the sibling melt/quote tools, and no prerequisites or exclusions. The worked example gives a usable calling pattern, which nudges it above a pure 2, but selection guidance is absent.

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