Skip to main content
Glama
Commodity-Price-API

CommodityPriceAPI MCP Server

Official

Get latest commodity rates

get_latest_rates

Retrieve current rates for commodity symbols such as gold, silver, or crude oil. Optionally use the quote parameter to convert to a different currency.

Instructions

Returns the latest rates for one or more commodity symbols (e.g. gold, silver, crude oil). Rates may lag up to 10 minutes depending on plan. Use 'quote' to convert to a specific currency (Premium/Plus plans only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteNoTarget quote currency code (e.g. 'USD', 'EUR'). Premium/Plus plans only; omit to use each symbol's default currency.
symbolsYesComma-separated commodity symbols, e.g. 'XAU,XAG,BRENTOIL-SPOT'. See the list_symbols tool for valid values. Invalid symbols in a multi-symbol request are silently omitted from the response, not errored.
Behavior4/5

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

Without annotations, the description carries the burden of behavioral disclosure. It reveals that rates may lag up to 10 minutes depending on plan, which is a key behavioral trait. It also notes the Premium/Plus-only restriction for quote conversion. It does not describe error handling or response format, but the disclosed lag and plan restrictions add meaningful transparency.

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

Conciseness5/5

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

The description is two sentences, front-loading the primary purpose and then adding relevant caveats (lag, quote usage). Every sentence provides value and there is no redundancy or filler.

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?

The description covers the core function, data freshness caveat, and plan-based restriction, while also pointing to the sibling list_symbols tool for valid inputs. It does not describe the return format or error handling, but given the tool's simplicity and the explicit reference to related tools, this is reasonably complete.

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%, so the baseline is 3. The description's mention of 'gold, silver, crude oil' provides real-world context but the schema already includes concrete example symbols. The quote parameter's plan restriction is already in the schema description, so the description adds minimal additional semantic value beyond what the schema provides.

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?

The description uses a specific verb+resource construction: 'Returns the latest rates for one or more commodity symbols.' It clearly identifies the tool's scope (latest rates, multiple symbols) and provides examples (gold, silver, crude oil), making it easy to distinguish from siblings like get_historical_rates and get_fluctuation.

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?

The description references the list_symbols tool for valid values and mentions the quote parameter's plan restriction, but it does not explicitly state when to prefer this tool over alternatives like get_gold_price or get_time_series. Usage context is implied by 'latest rates' but no when-not-to-use guidance is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Commodity-Price-API/commoditypriceapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server