Skip to main content
Glama
Commodity-Price-API

CommodityPriceAPI MCP Server

Official

Get historical commodity rates

get_historical_rates

Retrieve historical open, high, low, and close rates for commodity symbols on any past date since 1990. If no data exists for the exact date, the nearest available date is returned.

Instructions

Returns open/high/low/close rates for one or more symbols on a specific past date (available back to 1990-01-01). If no rate exists for that exact date, the API returns the nearest available date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate in YYYY-MM-DD format.
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?

No annotations are provided, so the description carries the full burden. It adds valuable behavioral context by disclosing the data availability start date (1990-01-01) and the fallback to the nearest date when the exact date has no rate. This goes beyond a simple 'returns rates' disclosure, though it does not detail response format or error handling.

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?

Two sentences with no fluff. Front-loaded with the core action ('Returns open/high/low/close rates'), then adds two key behavioral notes. Every sentence earns its place.

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?

For a simple two-parameter tool with no output schema, the description covers the essential aspects: what it returns, which symbols/date, data availability, and the fallback behavior. The schema fills in parameter details, making this a complete description for the tool's complexity.

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 baseline is 3, but the description enriches the date parameter by explaining the date range and fallback behavior, adding meaning beyond the format-only schema. The symbols parameter is mentioned as 'one or more symbols' in the description, though the schema already covers comma-separated format.

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 clearly states the tool returns OHLC rates for symbols on a specific historical date, which is a specific verb+resource+scope. It distinguishes itself from siblings like get_latest_rates and get_time_series by emphasizing 'past date' and 'nearest available date' fallback.

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 description provides clear context for when to use this tool (historical lookups on a specific date) and implicitly contrasts with "past date" vs. likely "latest" or "time series" siblings. However, it does not explicitly name alternatives or state when not to use it, which would earn a 5.

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