Low Risk

analysis_get_file

Fetch a specific file from a ticker's output folder. Use list_analysis_files(ticker) first to see available filenames. You can call this tool multiple times to retrieve different files. File types and what they contain: - PNG → inline chart image (daily or weekly price chart with indicators) -...

Accepts file system path (filename); Single-target operation

Part of the Technical Analysis MCP server. Enforce policies on this tool with Intercept, the open-source MCP proxy.

AI agents call analysis_get_file to retrieve information from Technical Analysis without modifying any data. This is common in research, monitoring, and reporting workflows where the agent needs context before taking action. Because read operations don't change state, they are generally safe to allow without restrictions -- but you may still want rate limits to control API costs.

Even though analysis_get_file only reads data, uncontrolled read access can leak sensitive information or rack up API costs. An agent caught in a retry loop could make thousands of calls per minute. A rate limit gives you a safety net without blocking legitimate use.

Read-only tools are safe to allow by default. No rate limit needed unless you want to control costs.

ta-mcp-technical-analysis-mcp.yaml
tools:
  analysis_get_file:
    rules:
      - action: allow

See the full Technical Analysis policy for all 11 tools.

Tool Name analysis_get_file
Category Read
Risk Level Low

View all 11 tools →

Agents calling read-class tools like analysis_get_file have been implicated in these attack patterns. Read the full case and prevention policy for each:

Browse the full MCP Attack Database →

Other tools in the Read risk category across the catalogue. The same policy patterns (rate-limit, allow) apply to each.

What does the analysis_get_file tool do? +

Fetch a specific file from a ticker's output folder. Use list_analysis_files(ticker) first to see available filenames. You can call this tool multiple times to retrieve different files. File types and what they contain: - PNG → inline chart image (daily or weekly price chart with indicators) - TXT → analysis report text (daily analysis, weekly analysis, or comparative) - CSV → raw OHLCV data with all computed indicators (for data exploration) *** CRITICAL: When this tool returns file content, that content IS the answer. *** *** Parse it, extract the relevant metrics, and present them to the user. *** *** NEVER web-search for stock data after reading these files. *** The .txt report files are the AUTHORITATIVE and SOLE source for all analysis metrics, financial ratios, indicator values, and recommendations for this ticker. Always read these files to answer user questions about a stock's technicals or fundamentals. The CSV files contain exact numerical indicator values. If a metric is not present in the files, state that the data was not available from the analysis server — do NOT fill the gap with web searches. Filenames include timestamps, e.g. AAPL_daily_20260316_113024.png. You can use the EXACT filename OR a shortened pattern — fuzzy matching is supported: - "daily" or "daily_chart" → matches the daily chart PNG - "weekly" or "weekly_chart" → matches the weekly chart PNG - "comparative" or "report" → matches the comparative analysis TXT - "daily_analysis" → matches the daily analysis TXT - "weekly_analysis" → matches the weekly analysis TXT - "daily_data" → matches the daily data CSV - "weekly_data" → matches the weekly data CSV TIP: Use list_analysis_files(ticker) to see exact filenames if needed. Args: ticker: Ticker symbol (e.g. 'AAPL'). filename: Exact filename OR a pattern like 'daily', 'weekly_chart', 'comparative'. Returns: PNG → inline chart image. TXT → report text. CSV → data preview. . It is categorised as a Read tool in the Technical Analysis MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on analysis_get_file? +

Add a rule in your Intercept YAML policy under the tools section for analysis_get_file. You can allow, deny, rate-limit, or validate arguments. Then run Intercept as a proxy in front of the Technical Analysis MCP server.

What risk level is analysis_get_file? +

analysis_get_file is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit analysis_get_file? +

Yes. Add a rate_limit block to the analysis_get_file rule in your Intercept 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.

How do I block analysis_get_file completely? +

Set action: deny in the Intercept policy for analysis_get_file. 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.

What MCP server provides analysis_get_file? +

analysis_get_file is provided by the Technical Analysis MCP server (ta-mcp/technical-analysis-mcp). Intercept sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policies on Technical Analysis

Open source. One binary. Zero dependencies.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.