Skip to main content
Glama

Get spot prices and gold-silver ratio

get_spot_prices
Read-onlyIdempotent

Current USD gold, silver and platinum spot (checked hourly) and the gold-silver ratio. Use for a spot quote. Example: {}. Optional include (trade, cftc, digest, or all) adds market context.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_spot_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
metalNo
includeNo
directionNogold_to_silver
amount_oztNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "amount_ozt": 1
      -  }
      -]
    • removedInput schema / properties / amount_ozt / description
      Removed value: -"Optional troy ounces to convert between gold and silver at the latest spot."
    • removedInput schema / properties / direction / description
      Removed value: -"Conversion direction when amount_ozt is given."
    • addedInput schema / properties / include
      Added value: +{
      +  "oneOf": [
      +    {
      +      "enum": [
      +        "trade",
      +        "cftc",
      +        "digest",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "enum": [
      +          "trade",
      +          "cftc",
      +          "digest",
      +          "all"
      +        ],
      +        "type": "string"
      +      },
      +      "maxItems": 4,
      +      "type": "array",
      +      "uniqueItems": true
      +    }
      +  ]
      +}
    • removedInput schema / properties / metal / description
      Removed value: -"Optional metal filter or inquiry (gold, silver, platinum). Note: palladium is not tracked."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "anyOf": [
      -    {
      -      "required": [
      -        "spot",
      -        "gold_silver_ratio",
      -        "spot_source",
      -        "palladium_note",
      -        "attribution",
      -        "source_url",
      -        "data_as_of",
      -        "credit",
      -        "terms",
      -        "customization"
      -      ]
      -    },
      -    {
      -      "required": [
      -        "ok",
      -        "tool",
      -        "error"
      -      ]
      -    }
      -  ],
      -  "properties": {
      -    "attribution": {
      -      "type": "string"
      -    },
      -    "attribution_credit": {
      -      "type": "object"
      -    },
      -    "canonical_tool": {
      -      "type": "string"
      -    },
      -    "conversion": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "gold_ozt": {
      -          "type": "number"
      -        },
      -        "silver_ozt": {
      -          "type": "number"
      -        },
      -        "value_usd": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "gold_ozt",
      -        "silver_ozt",
      -        "value_usd"
      -      ],
      -      "type": "object"
      -    },
      -    "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"
      -    },
      -    "freshness": {
      -      "required": [
      -        "stale"
      -      ],
      -      "type": "object"
      -    },
      -    "gold_silver_ratio": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "gold_usd_per_ozt": {
      -      "type": "number"
      -    },
      -    "note": {
      -      "type": "string"
      -    },
      -    "ok": {
      -      "const": false
      -    },
      -    "palladium_note": {
      -      "type": "string"
      -    },
      -    "silver_usd_per_ozt": {
      -      "type": "number"
      -    },
      -    "source_url": {
      -      "type": "string"
      -    },
      -    "spot": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "gold": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "updated": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "usd_per_gram": {
      -              "type": "number"
      -            },
      -            "usd_per_ozt": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "usd_per_ozt",
      -            "usd_per_gram",
      -            "updated"
      -          ],
      -          "type": "object"
      -        },
      -        "platinum": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "updated": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "usd_per_gram": {
      -              "type": "number"
      -            },
      -            "usd_per_ozt": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "usd_per_ozt",
      -            "usd_per_gram",
      -            "updated"
      -          ],
      -          "type": "object"
      -        },
      -        "silver": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "updated": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "usd_per_gram": {
      -              "type": "number"
      -            },
      -            "usd_per_ozt": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "usd_per_ozt",
      -            "usd_per_gram",
      -            "updated"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "spot_asof": {
      -      "type": [
      -        "string",
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "spot_source": {
      -      "type": "string"
      -    },
      -    "stale": {
      -      "type": "string"
      -    },
      -    "terms": {
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": "string"
      -    },
      -    "trade_context": {
      -      "type": "object"
      -    },
      -    "weekly_digest": {
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed2 schema fields changed
    • addedOutput schema / properties / trade_context
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / weekly_digest
      Added value: +{
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / attribution_credit
      Added value: +{
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / amount_ozt / description
      Previous value: -"Optional troy ounces to convert between gold and silver at live spot."New value: +"Optional troy ounces to convert between gold and silver at the latest spot."
  5. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "amount_ozt": 1
      +  }
      +]
  6. Changed6 schema fields changed
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "spot",
      +      "gold_silver_ratio",
      +      "spot_source",
      +      "palladium_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: -[
      -  "spot",
      -  "gold_silver_ratio",
      -  "spot_source",
      -  "palladium_note",
      -  "attribution",
      -  "source_url",
      -  "data_as_of",
      -  "credit",
      -  "terms",
      -  "customization"
      -]
  7. Changed4 schema fields changed
    • addedInput schema / properties / amount_ozt
      Added value: +{
      +  "description": "Optional troy ounces to convert between gold and silver at live spot.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / direction
      Added value: +{
      +  "default": "gold_to_silver",
      +  "description": "Conversion direction when amount_ozt is given.",
      +  "enum": [
      +    "gold_to_silver",
      +    "silver_to_gold"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / metal
      Added value: +{
      +  "description": "Optional metal filter or inquiry (gold, silver, platinum). Note: palladium is not tracked.",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    },
      +    "canonical_tool": {
      +      "type": "string"
      +    },
      +    "conversion": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "gold_ozt": {
      +          "type": "number"
      +        },
      +        "silver_ozt": {
      +          "type": "number"
      +        },
      +        "value_usd": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "gold_ozt",
      +        "silver_ozt",
      +        "value_usd"
      +      ],
      +      "type": "object"
      +    },
      +    "credit": {
      +      "type": "string"
      +    },
      +    "customization": {
      +      "type": "string"
      +    },
      +    "data_as_of": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "deprecated": {
      +      "type": "boolean"
      +    },
      +    "deprecation_note": {
      +      "type": "string"
      +    },
      +    "gold_silver_ratio": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gold_usd_per_ozt": {
      +      "type": "number"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "palladium_note": {
      +      "type": "string"
      +    },
      +    "silver_usd_per_ozt": {
      +      "type": "number"
      +    },
      +    "source_url": {
      +      "type": "string"
      +    },
      +    "spot": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "gold": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "updated": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "usd_per_gram": {
      +              "type": "number"
      +            },
      +            "usd_per_ozt": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "usd_per_ozt",
      +            "usd_per_gram",
      +            "updated"
      +          ],
      +          "type": "object"
      +        },
      +        "platinum": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "updated": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "usd_per_gram": {
      +              "type": "number"
      +            },
      +            "usd_per_ozt": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "usd_per_ozt",
      +            "usd_per_gram",
      +            "updated"
      +          ],
      +          "type": "object"
      +        },
      +        "silver": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "updated": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "usd_per_gram": {
      +              "type": "number"
      +            },
      +            "usd_per_ozt": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "usd_per_ozt",
      +            "usd_per_gram",
      +            "updated"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "spot_asof": {
      +      "type": [
      +        "string",
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "spot_source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": "string"
      +    },
      +    "terms": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "spot",
      +    "gold_silver_ratio",
      +    "spot_source",
      +    "palladium_note",
      +    "attribution",
      +    "source_url",
      +    "data_as_of",
      +    "credit",
      +    "terms",
      +    "customization"
      +  ],
      +  "type": "object"
      +}
  8. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds genuinely new behavior — prices are USD and refreshed hourly — but says nothing about how the ratio is derived or what the include add-ons return.

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 the resource, currency, and cadence front-loaded. 'Example: {}' is slightly odd filler but harmless and the whole definition reads in seconds.

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 four parameters at 0% schema coverage and no output schema, the definition is thinner than ideal: it never explains what metal strings are accepted, what direction/amount_ozt do for the ratio, or the shape of the returned quote. The hourly freshness note and include explanation partially compensate.

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 0%, so the description must carry the full burden. It enumerates the include values but those are already in the schema enum, while metal, direction, and amount_ozt are entirely unexplained in both places — a significant gap for a four-parameter tool.

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 names a specific verb and resource — current USD spot prices for gold, silver and platinum plus the gold-silver ratio — and states the currency and refresh cadence. It does not distinguish itself from close siblings like quote, get_dealer_prices, or premium_over_spot, so an agent must still infer which one 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?

'Use for a spot quote' gives one clear usage cue, but there is no when-not guidance and no named alternative for dealer-level or historical pricing. The guidance is implied rather than explicit routing.

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