stocks_get_chart
Gets historical price data for a stock symbol. Range: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max.
This record as markdown: /tools/com-local-mcp-local-mcp/stocks-get-chart.md
What stocks_get_chart does on Local
AI agents call stocks_get_chart to retrieve information from Local without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
range | string | — | Time range (default: 1mo) |
symbol | string | Yes | Ticker symbol, e.g. AAPL |
interval | string | — | Data interval (default: 1d). Intraday (1m–90m) needs a short range. |
Parameters from the server's own tool schema.
Why stocks_get_chart is rated Low
This tool retrieves historical stock price information without creating, modifying, deleting, or executing any actions. It is a simple data query operation with no side effects or irreversible consequences. Even though it relates to financial markets, it does not move money, commit financial obligations, or execute trades—it only reads public market data.
From the tool's definition Tool description states 'Gets historical price data for a stock symbol' with no modification, deletion, or execution capabilities mentioned. The ranges specified (1d, 5d, 1mo, etc.) are query parameters for data retrieval only.
Attacks that exploit this kind of access
The rule that runs stocks_get_chart safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Local, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For stocks_get_chart, this is the rule to start with:
stocks_get_chart is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Local, apply this rule, and every stocks_get_chart call is checked against it from then on.
Questions about stocks_get_chart
Gets historical price data for a stock symbol. Range: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max. It is categorised as a Read tool in the Local MCP Server, which means it retrieves data without modifying state.
stocks_get_chart accepts 3 parameters: range, symbol, interval. Required: symbol. The full parameter table on this page comes from the server's own tool schema.
Register the Local MCP server in PolicyLayer and add a rule for stocks_get_chart: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Local. Nothing to install.
stocks_get_chart is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the stocks_get_chart rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for stocks_get_chart. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
stocks_get_chart is provided by the Local MCP server (local-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Local, and thousands of servers like it.
This server
Across the catalogue