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) - TX...

Risk signalsAccepts file system path (filename)

Part of the Technical Analysis server.

analysis_get_file is read-only, but an agent in a loop can still rack up calls and cost. PolicyLayer caps every call before it runs. Live in minutes.

SECURE TECHNICAL ANALYSIS →

Free to start. No card required.

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.

policy.json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "analysis_get_file": {}
  }
}

See the full Technical Analysis policy for all 11 tools.

Get this rule live on your own Technical Analysis server in minutes. PolicyLayer enforces it on every call, before it runs.

ENFORCE ON MY TECHNICAL ANALYSIS →

View all 11 tools →

These attack patterns abuse exactly the kind of access analysis_get_file gives an agent. Each links to the full case and the policy that stops it:

Browse the full MCP Attack Database →

Every attack above starts with a tool call. PolicyLayer checks each one against your policy first, so analysis_get_file only ever does what you allow.

SECURE TECHNICAL ANALYSIS →

Other read tools across the catalogue. The same approach applies to each: allow, with a rate cap to control cost.

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? +

Register the Technical Analysis MCP server in PolicyLayer and add a rule for analysis_get_file: 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 Technical Analysis. Nothing to install.

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 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.

How do I block analysis_get_file completely? +

Set action: deny in the PolicyLayer 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). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every Technical Analysis tool call.

Deterministic rules across all 11 Technical Analysis tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Free to start. No card required.

4,600+ MCP servers and 31,000+ tools scanned and risk-classified.

// GET IN TOUCH

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

Message sent.

We'll get back to you soon.