Skip to main content
Glama

Product price and premium history

get_price_history
Read-onlyIdempotent

Stored hourly or daily dealer price history for one product. Example: {"product":"american-silver-eagle-1oz","days":7}.

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": {
      "product": "<product>"
    },
    "name": "get_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
productYes
resolutionNodaily

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "days": 7,
      -    "product": "american-silver-eagle-1oz"
      -  }
      -]
    • removedInput schema / properties / days / description
      Removed value: -"Lookback window in days (default 30 for daily, 7 for hourly)."
    • removedInput schema / properties / product / description
      Removed value: -"Tracked product slug from list_products (for example american-gold-eagle-1oz) or a name with its weight."
    • removedInput schema / properties / resolution / description
      Removed value: -"daily = US Eastern daily summary rows; hourly = recent hourly check snapshots; both = both series."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "anyOf": [
      -    {
      -      "required": [
      -        "product",
      -        "resolution",
      -        "requested_days",
      -        "summary",
      -        "note",
      -        "attribution",
      -        "source_url",
      -        "data_as_of",
      -        "credit",
      -        "terms",
      -        "customization"
      -      ]
      -    },
      -    {
      -      "required": [
      -        "ok",
      -        "tool",
      -        "error"
      -      ]
      -    }
      -  ],
      -  "properties": {
      -    "attribution": {
      -      "type": "string"
      -    },
      -    "attribution_credit": {
      -      "type": "object"
      -    },
      -    "canonical_tool": {
      -      "type": "string"
      -    },
      -    "credit": {
      -      "type": "string"
      -    },
      -    "customization": {
      -      "type": "string"
      -    },
      -    "daily": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "date": {
      -            "type": "string"
      -          },
      -          "dealer_median_ask_usd": {
      -            "type": "number"
      -          },
      -          "dealer_median_premium_pct": {
      -            "type": "number"
      -          },
      -          "dealers_counted": {
      -            "type": "integer"
      -          },
      -          "lowest_ask_close_usd": {
      -            "type": "number"
      -          },
      -          "lowest_ask_median_usd": {
      -            "type": "number"
      -          },
      -          "lowest_ask_min_usd": {
      -            "type": "number"
      -          },
      -          "lowest_premium_median_pct": {
      -            "type": "number"
      -          },
      -          "lowest_premium_min_pct": {
      -            "type": "number"
      -          },
      -          "melt_close_usd": {
      -            "type": "number"
      -          },
      -          "snapshots_count": {
      -            "type": "integer"
      -          },
      -          "spot_close_usd_per_ozt": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "date",
      -          "snapshots_count",
      -          "spot_close_usd_per_ozt",
      -          "melt_close_usd",
      -          "lowest_ask_min_usd",
      -          "lowest_ask_median_usd",
      -          "lowest_ask_close_usd",
      -          "lowest_premium_min_pct",
      -          "lowest_premium_median_pct",
      -          "dealer_median_ask_usd",
      -          "dealer_median_premium_pct",
      -          "dealers_counted"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "data_as_of": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "deprecated": {
      -      "type": "boolean"
      -    },
      -    "deprecation_note": {
      -      "type": "string"
      -    },
      -    "error": {
      -      "required": [
      -        "code",
      -        "message"
      -      ],
      -      "type": "object"
      -    },
      -    "freshness": {
      -      "required": [
      -        "stale"
      -      ],
      -      "type": "object"
      -    },
      -    "hourly": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "dealer_median_ask_usd": {
      -            "type": "number"
      -          },
      -          "dealer_median_premium_pct": {
      -            "type": "number"
      -          },
      -          "dealers_counted": {
      -            "type": "integer"
      -          },
      -          "lowest_ask_usd": {
      -            "type": "number"
      -          },
      -          "lowest_dealer": {
      -            "type": "string"
      -          },
      -          "lowest_dealer_label": {
      -            "type": "string"
      -          },
      -          "lowest_premium_pct": {
      -            "type": "number"
      -          },
      -          "lowest_premium_usd": {
      -            "type": "number"
      -          },
      -          "melt_value_usd": {
      -            "type": "number"
      -          },
      -          "spot_usd_per_ozt": {
      -            "type": "number"
      -          },
      -          "timestamp": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "timestamp",
      -          "spot_usd_per_ozt",
      -          "melt_value_usd",
      -          "lowest_ask_usd",
      -          "lowest_dealer",
      -          "lowest_premium_usd",
      -          "lowest_premium_pct",
      -          "dealer_median_ask_usd",
      -          "dealer_median_premium_pct",
      -          "dealers_counted"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "note": {
      -      "type": "string"
      -    },
      -    "ok": {
      -      "const": false
      -    },
      -    "product": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "metal": {
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        },
      -        "slug": {
      -          "type": "string"
      -        },
      -        "troy_oz": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "slug",
      -        "name",
      -        "metal",
      -        "troy_oz"
      -      ],
      -      "type": "object"
      -    },
      -    "requested_days": {
      -      "type": "integer"
      -    },
      -    "resolution": {
      -      "enum": [
      -        "daily",
      -        "hourly",
      -        "both"
      -      ]
      -    },
      -    "source_url": {
      -      "type": "string"
      -    },
      -    "spot_asof": {
      -      "type": [
      -        "string",
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "spot_source": {
      -      "type": "string"
      -    },
      -    "stale": {
      -      "type": "string"
      -    },
      -    "summary": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "days_returned": {
      -          "type": "integer"
      -        },
      -        "hourly_snapshots_returned": {
      -          "type": "integer"
      -        },
      -        "lowest_ask_latest_close_usd": {
      -          "type": "number"
      -        },
      -        "lowest_ask_period_max_usd": {
      -          "type": "number"
      -        },
      -        "lowest_ask_period_min_usd": {
      -          "type": "number"
      -        },
      -        "lowest_premium_pct_max": {
      -          "type": "number"
      -        },
      -        "lowest_premium_pct_median": {
      -          "type": "number"
      -        },
      -        "lowest_premium_pct_min": {
      -          "type": "number"
      -        },
      -        "period_end": {
      -          "type": "string"
      -        },
      -        "period_start": {
      -          "type": "string"
      -        },
      -        "spot_latest_close_usd_per_ozt": {
      -          "type": "number"
      -        },
      -        "spot_period_max_usd_per_ozt": {
      -          "type": "number"
      -        },
      -        "spot_period_min_usd_per_ozt": {
      -          "type": "number"
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "terms": {
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • addedOutput schema / properties / attribution_credit
      Added value: +{
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "days": 7,
      +    "product": "american-silver-eagle-1oz"
      +  }
      +]
  4. Changed6 schema fields changed
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "product",
      +      "resolution",
      +      "requested_days",
      +      "summary",
      +      "note",
      +      "attribution",
      +      "source_url",
      +      "data_as_of",
      +      "credit",
      +      "terms",
      +      "customization"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "ok",
      +      "tool",
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / freshness
      Added value: +{
      +  "required": [
      +    "stale"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / ok
      Added value: +{
      +  "const": false
      +}
    • addedOutput schema / properties / tool
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "product",
      -  "resolution",
      -  "requested_days",
      -  "summary",
      -  "note",
      -  "attribution",
      -  "source_url",
      -  "data_as_of",
      -  "credit",
      -  "terms",
      -  "customization"
      -]
  5. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds that the data is stored history (not a live quote) and that resolution can be hourly or daily, which is useful beyond the annotations. It says nothing about how far back history extends, pagination, or rate limits.

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?

Two short, front-loaded sentences with a compact example that demonstrates a realistic call. The example earns its place, though it consumes half the text without covering defaults or constraints.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no parameter descriptions, the description should explain what a history record contains — notably whether premium values are included, since the title promises 'price and premium history' but the body mentions only price. Defaults, bounds, and the 'both' resolution behavior are also undocumented.

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 0%, so the description must compensate: it touches all three parameters implicitly (product, days=7 in the example, hourly/daily resolution). However, it omits the default of 30 days, the 365-day cap, and what the 'both' enum value returns, leaving meaningful gaps.

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?

States a specific verb (retrieves stored history) and resource (dealer price history for one product), including the granularity options. It does not explicitly distinguish itself from close siblings like get_dealer_prices or premium_over_spot, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The worked example hints at how to call it, but there is no statement of when to use this versus get_dealer_prices, get_spot_prices, or premium_over_spot, and no exclusions or prerequisites. The agent must infer the choice from sibling names alone.

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