Skip to main content
Glama

MetalCharts

Live spot prices

get_spot_prices
Read-onlyIdempotent

Live spot prices for metals (XAU, XAG, XPT, XPD, HG, ALI, NI, ZN, PB, JBP, CO, LC, UXA) with 24-hour change, high, low and an indicative bid and ask. Quote in another currency, per gram/kilo/tola, or a gold karat with currency, unit and karat. Each quote states its currency and unit.

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
unitNoMass unit to quote per. toz is the troy ounce. Default: the market's own unit (toz for precious metals, lb or mt for base metals).
karatNoGold only: price this karat at purity karat/24 (24 is pure gold).
symbolsNoComma-separated metal codes, e.g. "XAU,XAG". Default: all of XAU, XAG, XPT, XPD, HG, ALI, NI, ZN, PB, JBP, CO, LC, UXA.
currencyNoISO 4217 code to quote in (default USD). One of USD, EUR, GBP, JPY, CHF, AUD, CAD, CNY, INR, SGD, HKD, NZD, SEK, NOK, DKK, MXN, BRL, ZAR, TRY, PLN, CZK, HUF, RON, ISK, ILS, KRW, IDR, MYR, PHP, THB, AED, SAR.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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 fully covered. The description adds that every quote self-reports its currency and unit, which is useful output context, but it does not address freshness guarantees, behavior outside market hours, or whether unavailable symbols are omitted or error.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is front-loaded and dense with useful detail. However, the follow-up 'Quote in another currency, per gram/kilo/tola, or a gold karat with currency, unit and karat' largely repeats schema enumerations (and lists only three of six units), and 'Each quote states its currency and unit' restates the same idea a third time, so a sentence does not fully earn its place.

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 zero-required-parameter read-only quote endpoint with a fully documented schema and no output schema, the description covers symbols, denomination options and the returned fields, which is enough to call it correctly. The remaining gap is market-hours/freshness behavior, which a pricing tool arguably should state.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents the default symbol list, the ISO currency set, unit defaults per metal, and the karat purity formula. The description only echoes the configurable dimensions (currency, gram/kilo/tola, karat) without adding syntax or constraints beyond the schema, so the baseline of 3 applies.

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 gives a specific resource ('live spot prices for metals') plus the enumerated symbol set and the returned fields (24-hour change, high, low, indicative bid/ask). It does not explicitly name a sibling such as get_price_history, so the boundary between live quotes and historical prices must be inferred from the word 'live'.

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 implied by 'Live spot prices' and the currency/unit/karat conversion options, which tell the agent this is the tool for current quotes in a custom denomination. There is no explicit when-to-use statement and no routing guidance versus get_price_history or the premium/fixing tools, so the agent must infer the boundary.

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