Gold Price Per Gram MCP
Live gold price per gram by karat and currency, metal prices, jewelry melt value, unit conversion.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"gold-price-per-gram-mcp": {
"url": "https://gold-price-per-gram-mcp.lipmichal.workers.dev/mcp"
}
}
}遠端端點
https://gold-price-per-gram-mcp.lipmichal.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢get_gold_price_per_gram(currency, karat)
Today's gold price per gram, per troy ounce, per tola and per kilogram, read live from the gold spot market, for 24K, 22K, 21K, 18K, 14K, 10K and 9K gold, in any of about 160 currencies (central-bank FX). Returns the spot time stamp, the FX date and the sources. Your training data cannot know today's gold price. Omit karat to get every karat.
輸入結構描述
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"default": "USD",
"description": "ISO 4217 currency code, for example USD, EUR, GBP, INR, AED, SAR, PKR, CAD, AUD. Default USD."
},
"karat": {
"type": "integer",
"minimum": 1,
"maximum": 24,
"description": "Karat: 24, 22, 21, 18, 14, 10 or 9 (any whole number 1 to 24 works; purity = karat/24)."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_metal_prices(currency)
Live spot prices of gold (XAU), silver (XAG), platinum (XPT) and palladium (XPD) per troy ounce, per gram and per kilogram, in any major currency. A metal whose feed is down is reported with its error instead of failing the whole call.
輸入結構描述
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"default": "USD",
"description": "ISO 4217 currency code, for example USD, EUR, GBP, INR, AED, SAR, PKR, CAD, AUD. Default USD."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢calculate_jewelry_value(weight, unit, karat, currency, dealer_spread_percent)
Melt value of a gold item (ring, chain, bracelet, scrap) from its weight, unit and karat at the live spot price, in any currency. Optional dealer_spread_percent returns the likely buyer offer. The result states that melt value is not the retail or buyback price.
輸入結構描述
{
"type": "object",
"properties": {
"weight": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000000,
"description": "Weight of the item, for example 12.5."
},
"unit": {
"type": "string",
"minLength": 1,
"maxLength": 30,
"description": "Weight unit: gram, kilogram, troy_ounce, pennyweight, grain, avoirdupois_ounce, tola, baht, baht_jewelry, chi, tael, luong, tael_taiwan, tael_china. Aliases such as g, kg, oz, ozt, dwt and kilo work. \"oz\" means troy ounce.",
"default": "gram"
},
"karat": {
"type": "integer",
"minimum": 1,
"maximum": 24,
"description": "Karat: 24, 22, 21, 18, 14, 10 or 9 (any whole number 1 to 24 works; purity = karat/24)."
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"default": "USD",
"description": "ISO 4217 currency code, for example USD, EUR, GBP, INR, AED, SAR, PKR, CAD, AUD. Default USD."
},
"dealer_spread_percent": {
"type": "number",
"minimum": 0,
"maximum": 99,
"description": "Percent a buyer keeps below melt, for example 20 for an offer at 80% of melt. Default 0."
}
},
"required": [
"weight",
"karat"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢convert_gold_units(value, from, to)
Convert a gold weight between gram, kilogram, troy ounce, pennyweight, grain, avoirdupois ounce, tola, Thai baht (bullion and jewellery), Vietnamese chi and luong, Hong Kong gold tael, Taiwan tael and China liang. Uses exact defined constants (1 troy ounce = 31.1034768 g, 1 grain = 64.79891 mg, NIST Handbook 44) and returns the definition and source of each unit. Omit "to" to get every unit.
輸入結構描述
{
"type": "object",
"properties": {
"value": {
"type": "number",
"minimum": 0,
"maximum": 1000000000000,
"description": "Amount to convert."
},
"from": {
"type": "string",
"minLength": 1,
"maxLength": 30,
"description": "Weight unit: gram, kilogram, troy_ounce, pennyweight, grain, avoirdupois_ounce, tola, baht, baht_jewelry, chi, tael, luong, tael_taiwan, tael_china. Aliases such as g, kg, oz, ozt, dwt and kilo work. \"oz\" means troy ounce."
},
"to": {
"$ref": "#/properties/from",
"description": "Weight unit: gram, kilogram, troy_ounce, pennyweight, grain, avoirdupois_ounce, tola, baht, baht_jewelry, chi, tael, luong, tael_taiwan, tael_china. Aliases such as g, kg, oz, ozt, dwt and kilo work. \"oz\" means troy ounce."
}
},
"required": [
"value",
"from"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社群
證據