# get_historical

Return daily OHLCV bar history for a symbol. History depth is set automatically by your API key's plan — do NOT pass a tier argument (there is none): Free sees the last 30 days; Basic sees the last year; Pro unlocks full history back to 1996 (XAU/USD). Dates must be ISO 8601 (YYYY-MM-DD). Returns bars in date-descending order. volume is null for spot instruments (XAU/USD, XAG/USD); real for futures (GC, SI, HG) and ETFs (GLD).

Agent View of the PolicyLayer registry record for `get_historical`. HTML page: https://policylayer.com/tools/dev-goldprice-mcp/get-historical

## Facts

- Tool: `get_historical`
- Server: Goldprice Dev (`https://api.goldprice.dev/v1/mcp/`) — https://policylayer.com/tools/dev-goldprice-mcp.md
- Homepage: https://github.com/https://api.goldprice.dev/v1/mcp/
- Risk category: Read (Low risk)
- Registry record: grade C, identity unverified
- Server auth posture: open
- Server rate-limited: yes
- Parameters: 4 (3 required)
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | no |  |
| `symbol` | string | yes |  |
| `to_date` | string | yes |  |
| `from_date` | string | yes |  |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_historical",
    "arguments": {
      "symbol": "<symbol>",
      "to_date": "<to_date>",
      "from_date": "<from_date>"
    }
  }
}
```

## Why get_historical is rated Low

This is a pure data retrieval function that queries historical pricing information. It retrieves time-series data for gold, silver, copper commodities with no ability to modify data, execute code, or perform financial transactions. The tool is read-only with minimal blast radius if misused—an AI might retrieve unwanted historical data but cannot cause harm beyond information disclosure.

From the tool's own definition: "Tool returns historical OHLCV bar data; description states 'Return daily OHLCV bar history' with no modification, deletion, or execution capabilities. Parameters are read-only (symbol, dates in ISO 8601 format). No side effects or state changes."

## Use case

AI agents call get_historical to retrieve information from Goldprice Dev without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Goldprice Dev:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "get_historical": {}
  }
}
```

## Other tools on Goldprice Dev (7)

- `get_carat` — Read — https://policylayer.com/tools/dev-goldprice-mcp/get-carat.md
- `get_forward_view` — Read — https://policylayer.com/tools/dev-goldprice-mcp/get-forward-view.md
- `get_metadata` — Read — https://policylayer.com/tools/dev-goldprice-mcp/get-metadata.md
- `get_physical_price` — Read — https://policylayer.com/tools/dev-goldprice-mcp/get-physical-price.md
- `get_spot_price` — Read — https://policylayer.com/tools/dev-goldprice-mcp/get-spot-price.md
- `list_commodities` — Read — https://policylayer.com/tools/dev-goldprice-mcp/list-commodities.md
- `search_docs` — Read — https://policylayer.com/tools/dev-goldprice-mcp/search-docs.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dev-goldprice-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-goldprice-mcp
