Gold & Silver Price
gold-priceReturns the current spot price in one of 32 currencies, converted to troy ounce, gram and tola, plus a per-karat breakdown for gold (24K down to 10K) using exact purity constants. Quotes are cached briefly; if the upstream feed is unavailable the last good value is returned with stale set to true rather than failing. Costs 1 credit per call.
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": "gold-price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metal | No | gold or silver. Defaults to gold. | gold |
| currency | No | USD, GBP, EUR, CAD, AUD, JPY, CNY, PKR, INR, AED, SAR, TRY, BDT, NGN, ZAR, CHF, SGD, HKD, MYR, THB, IDR, EGP, PHP, KRW, MXN, BRL, NZD, SEK, NOK, DKK, PLN or CZK. Defaults to USD. | USD |