Skip to main content
Glama

SiteCheck Shop & Social

Latest precious-metal prices from MetalpriceAPI: USD per

commodities_metalprices_com
Read-only

Latest precious-metal prices from MetalpriceAPI (gold XAU, silver XAG, palladium XPD, platinum XPT): USD per troy ounce, plus the raw rate (ounces per 1 USD) and the time the price is from (end of day on the free plan). Not a retail price list. 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_metalprices_com"
  }
}

Input Schema

NameRequiredDescriptionDefault
currenciesNoComma list of codes from XAU, XAG, XPD, XPT (default all four)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly and openWorld; the description goes well beyond by disclosing the paid-call model ($0.002 per successful call, charged via x402 in USDC on Base, Solana and 10+ networks) and that failed calls are free. That cost/payment behavior and the end-of-day data staleness are exactly the operational facts an agent needs before calling.

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?

One front-loaded sentence establishes what the tool returns and in what units, followed by the exclusion and the pricing/model notes; there is little waste. The clause describing the raw rate and timestamp partially duplicates the output schema, which is the only slack.

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?

With an output schema present, the description needn't explain return values, and it still flags units and timestamps qualitatively. Combined with annotations, a single optional parameter, and disclosed cost and freshness, an agent has everything needed to decide and call correctly.

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 coverage is 100%, so the baseline is 3, but the description adds meaning by mapping the four codes to metal names (gold XAU, silver XAG, palladium XPD, platinum XPT), which the schema does not do since it has no enums. It still doesn't restate the comma-list format or the all-four default, leaving that to the schema.

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 (latest precious-metal prices from MetalpriceAPI) and enumerates exactly which metals (XAU, XAG, XPD, XPT), the unit (USD per troy ounce), and the extra fields (raw rate, price timestamp). An agent can tell instantly this is a spot metal price lookup, not a retail catalog or a crypto feed.

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?

The clause "Not a retail price list" is an explicit exclusion that steers the agent away from consumer price use cases, and the freshness note (end of day on the free plan) sets expectations about timing. It does not name a concrete alternative tool or state prerequisites for obtaining the price, so it falls short of full when/when-not 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