Skip to main content
Glama

Gold & commodities: One commodity over time

gold_getCommodityHistory
Read-onlyIdempotent

One commodity over time

One series between start and end. Daily series: at most 366 days (default: the last 30). Monthly series: YYYY-MM or YYYY-MM-DD, at most 600 months (default: the last 24).

GET /v1/gold/commodity-prices/{code} on Gold & commodities (SBX-GOLD). Costs 1 credit per call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "gold_getCommodityHistory"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoYYYY-MM-DD (monthly series: also YYYY-MM). Default: today.
codeYesA code from /gold/commodities, e.g. brent.
startNoYYYY-MM-DD (monthly series: also YYYY-MM).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the supplied readOnly/idempotent/openWorld annotations, the description discloses the credit cost (1 credit per call), the underlying endpoint, and hard request limits (at most 366 days daily, 600 months monthly) with defaults. That is meaningful operational context the annotations do not carry. What is missing is any statement about response shape or pagination.

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?

Front-loaded and dense, with limits and defaults stated compactly. The opening line "One commodity over time" largely repeats the tool title, which is a small redundancy, but every subsequent sentence carries load-bearing constraints.

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 read-only series fetch with no output schema, the key invocation facts (defaults, maximum spans, code source, credit cost) are all present. The one real gap is the return payload: with no output schema, nothing tells the agent what the series objects look like, so completeness is good but not exhaustive.

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 already 100%, so the baseline is 3, and the description earns above that by adding constraints the schema does not state: the 366-day cap for daily series, the 600-month cap for monthly, and the default windows (last 30 days / last 24 months). It also clarifies that monthly series accept YYYY-MM or YYYY-MM-DD granularity for start/end.

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 names a single specific resource (one commodity series) and pins it to a concrete endpoint, GET /v1/gold/commodity-prices/{code}, so the agent knows exactly what is fetched. It stops short of differentiating from nearby siblings such as gold_getGoldPriceHistory, whose scope overlaps; the reader must infer that this one is per-commodity and historical.

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 only implied: the phrase "One series between start and end" plus the daily/monthly limits tells the agent how to bound a call, but never states when to choose this tool over a sibling or what preconditions exist. There is no explicit when-not and no named alternative.

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