Skip to main content
Glama

Live spot price of gold or silver in USD per troy ounce

commodities_precious_metals_spot_fix
Read-only

Live spot price of gold (XAU) or silver (XAG) in USD per troy ounce from gold-api.com (aggregated free spot feed, no key). This is a spot quote with a timestamp, not the LBMA London AM/PM fixing and not vault holdings; the route name is kept for the owner. Related tools on this server, for a different need: commodities_ammonia_fertilizer_spot when you need monthly US producer price indexes for ammonia and nitrogen; commodities_cme_agri_spot_futures when you need monthly world reference prices for corn, wheat and soybeans. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "commodities_precious_metals_spot_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
metalNoXAU (gold) or XAG (silver); default XAU

Output Schema

NameRequiredDescriptionDefault
nameNo
unitNo
metalNo
sourceNo
priceUsdNo
checkedAtNo
quoteUpdatedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the data source (gold-api.com aggregated free feed, no key), the output nature (spot quote with a timestamp, not a fixing), and a non-obvious cost model — $0.002 per successful call via x402 and no charge on failure. The cost and settlement detail is exactly the kind of context an agent cannot get from structured fields.

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

Conciseness4/5

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

Purpose and scope are front-loaded in the first sentence, followed by the fixing/holdings disclaimer, then siblings, then cost — a sensible order. It runs long with three distinct blocks, though each block carries real information, so the length is defensible rather than padded.

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

Completeness5/5

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

The tool is simple (one optional param, output schema present so return values need no explanation), and the description still covers source, freshness/timestamp semantics, unit (USD per troy ounce), cost, and sibling boundaries. Nothing an agent needs in order to call it correctly is missing.

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 coverage is 100% and the single parameter already documents 'XAU (gold) or XAG (silver); default XAU'. The description restates the XAU/XAG mapping in prose but adds no new syntax, casing rules, or fallback behavior beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — live spot price of gold (XAU) or silver (XAG) in USD per troy ounce — and immediately disambiguates it from the LBMA London AM/PM fixing and from vault holdings. An agent can distinguish this from commodities_lme_metal_cash_settled or the agri/fertilizer siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes away from two neighbors with conditions attached ('when you need monthly US producer price indexes', 'when you need monthly world reference prices'), and clarifies the negative case (not a fixing, not holdings). It does not state positive selection criteria against other metal-price tools on the list, so it stops short of full when/when-not coverage.

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