Skip to main content
Glama

Primary Source Commodities

Price History

price.history
Read-onlyIdempotent

Return historical observations for an instrument code (up to 500 points). Use after price.latest when you need a short time series for the same code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesInstrument code from catalog.list. Example: CL, GC, ZC.
limitNoNumber of historical points to return. Max 500, default 60.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesHistorical observations, newest first or as stored
countYesNumber of points returned
series_idYesUnderlying series id
instrumentYesInstrument code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, making the safety profile clear. Description adds the 500-point limit as behavioral info, but otherwise does not disclose additional behavior (e.g., ordering, time range).

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, front-loaded with purpose, then usage guidance. Every word contributes meaning, no redundancy.

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?

Simple tool with output schema; description covers core purpose and usage context. Lacks explanation of return format or error conditions, but output schema likely fills that gap.

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 description coverage is 100% with both parameters described in detail. Description repeats the limit info but does not add new semantics beyond the schema. Baseline of 3 is appropriate.

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?

Description clearly states 'Return historical observations for an instrument code (up to 500 points).' Verb is 'return', resource is 'historical observations', and scope is specified. Differentiates from sibling tools like 'price.latest' which returns a single point.

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 says 'Use after price.latest when you need a short time series for the same code.' Provides sequential context and a condition for use. Lacks explicit 'when not to use' but inference is clear from the sibling reference.

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