Skip to main content
Glama

Bullion Premium Index

get_premium_index
Read-onlyIdempotent

Bullion Premium Index (CC BY 4.0): lowest and median premiums over spot, plus 7-day low and median. Example: {"metal":"silver"}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_premium_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
metalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "metal": "silver"
      -  }
      -]
    • removedInput schema / properties / metal / description
      Removed value: -"Metal for the premium index: gold, silver or platinum."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "anyOf": [
      -    {
      -      "required": [
      -        "index_generated",
      -        "products",
      -        "definitions",
      -        "palladium_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"
      -    },
      -    "data_as_of": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "definitions": {
      -      "additionalProperties": true,
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "deprecated": {
      -      "type": "boolean"
      -    },
      -    "deprecation_note": {
      -      "type": "string"
      -    },
      -    "error": {
      -      "required": [
      -        "code",
      -        "message"
      -      ],
      -      "type": "object"
      -    },
      -    "freshness": {
      -      "required": [
      -        "stale"
      -      ],
      -      "type": "object"
      -    },
      -    "index_generated": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "ok": {
      -      "const": false
      -    },
      -    "palladium_note": {
      -      "type": "string"
      -    },
      -    "products": {
      -      "items": {
      -        "additionalProperties": true,
      -        "properties": {
      -          "dealer_median_pct": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "dealers": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "low_dealer": {
      -            "type": "string"
      -          },
      -          "low_dealer_label": {
      -            "type": "string"
      -          },
      -          "low_pct": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "low_pct_7d_basis": {
      -            "description": "Present only when the index row lacked any of its 7-day fields. Then the median, minimum and count all come from the stored hourly price history (last 168 points, spot and prices stored to the cent) instead of the index snapshot log, never a mix of the two. Same window and melt band, but a different series, so values can differ slightly from the index's own figures.",
      -            "enum": [
      -              "hourly_history_fallback"
      -            ],
      -            "type": "string"
      -          },
      -          "low_pct_7d_median": {
      -            "description": "Median of snapshot lowest premiums over the 7 days ending at the index timestamp.",
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "low_pct_7d_min": {
      -            "description": "Minimum snapshot lowest premium over the same 7-day window.",
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "metal": {
      -            "type": "string"
      -          },
      -          "product": {
      -            "type": "string"
      -          },
      -          "slug": {
      -            "type": "string"
      -          },
      -          "snapshots_7d": {
      -            "description": "Number of snapshots in that 7-day window.",
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "source_url": {
      -      "type": "string"
      -    },
      -    "spot_asof": {
      -      "type": [
      -        "string",
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "spot_source": {
      -      "type": "string"
      -    },
      -    "stale": {
      -      "type": "string"
      -    },
      -    "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
    • addedOutput schema / properties / products / items / properties
      Added value: +{
      +  "dealer_median_pct": {
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "dealers": {
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "low_dealer": {
      +    "type": "string"
      +  },
      +  "low_dealer_label": {
      +    "type": "string"
      +  },
      +  "low_pct": {
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "low_pct_7d_basis": {
      +    "description": "Present only when the index row lacked any of its 7-day fields. Then the median, minimum and count all come from the stored hourly price history (last 168 points, spot and prices stored to the cent) instead of the index snapshot log, never a mix of the two. Same window and melt band, but a different series, so values can differ slightly from the index's own figures.",
      +    "enum": [
      +      "hourly_history_fallback"
      +    ],
      +    "type": "string"
      +  },
      +  "low_pct_7d_median": {
      +    "description": "Median of snapshot lowest premiums over the 7 days ending at the index timestamp.",
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "low_pct_7d_min": {
      +    "description": "Minimum snapshot lowest premium over the same 7-day window.",
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "metal": {
      +    "type": "string"
      +  },
      +  "product": {
      +    "type": "string"
      +  },
      +  "slug": {
      +    "type": "string"
      +  },
      +  "snapshots_7d": {
      +    "description": "Number of snapshots in that 7-day window.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  }
      +}
  4. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "metal": "silver"
      +  }
      +]
    • addedInput schema / properties / metal / description
      Added value: +"Metal for the premium index: gold, silver or platinum."
  5. Changed6 schema fields changed
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "index_generated",
      +      "products",
      +      "definitions",
      +      "palladium_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: -[
      -  "index_generated",
      -  "products",
      -  "definitions",
      -  "palladium_note",
      -  "attribution",
      -  "source_url",
      -  "data_as_of",
      -  "credit",
      -  "terms",
      -  "customization"
      -]
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    },
      +    "canonical_tool": {
      +      "type": "string"
      +    },
      +    "credit": {
      +      "type": "string"
      +    },
      +    "customization": {
      +      "type": "string"
      +    },
      +    "data_as_of": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "definitions": {
      +      "additionalProperties": true,
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "deprecated": {
      +      "type": "boolean"
      +    },
      +    "deprecation_note": {
      +      "type": "string"
      +    },
      +    "index_generated": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "palladium_note": {
      +      "type": "string"
      +    },
      +    "products": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "source_url": {
      +      "type": "string"
      +    },
      +    "spot_asof": {
      +      "type": [
      +        "string",
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "spot_source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": "string"
      +    },
      +    "terms": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "index_generated",
      +    "products",
      +    "definitions",
      +    "palladium_note",
      +    "attribution",
      +    "source_url",
      +    "data_as_of",
      +    "credit",
      +    "terms",
      +    "customization"
      +  ],
      +  "type": "object"
      +}
  7. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds real value beyond them by enumerating the four returned metrics and the CC BY 4.0 license, which matters because no output schema exists; it still omits units (percent vs. absolute), refresh cadence, and the default when metal is omitted.

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?

It is a single front-loaded sentence plus a compact example, with no filler. The license parenthetical is arguably boilerplate but is short and does convey reuse terms.

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?

For a one-optional-parameter, read-only lookup with no output schema and rich annotations, the definition is close to sufficient. However, an agent still cannot tell the default metal, the units of the returned premiums, or how this differs from the nearby premium_over_spot tool.

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 0%, so the description must compensate, and it does so only partially by showing {"metal":"silver"} to demonstrate the parameter's name and accepted value shape. It does not explain what happens when the single optional parameter is omitted, which is the main semantic gap given zero required parameters.

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 specific resource (Bullion Premium Index) and enumerates exactly what it reports: lowest and median premiums over spot plus 7-day low and median. The verb is implicit (a retrieval tool), and it does not differentiate itself from similarly named siblings such as premium_over_spot or get_spot_prices, so it stops 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?

There is no statement of when to use this index versus premium_over_spot, get_spot_prices, or bullion_trends_snapshot, and no exclusions or prerequisites. The only operational hint is an example argument, which shows invocation syntax rather than situational guidance.

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