# get_last_n_trading_days

Return the last N trading dates.

Agent View of the PolicyLayer registry record for `get_last_n_trading_days`. HTML page: https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-last-n-trading-days

## Facts

- Tool: `get_last_n_trading_days`
- Server: A-Share MCP Server (`24mlight/a-share-mcp-is-just-i-need`) — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need.md
- Homepage: https://github.com/24mlight/a-share-mcp-is-just-i-need
- Risk category: Read (Low risk)
- Registry record: grade A, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

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

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

## Why get_last_n_trading_days is rated Low

This tool retrieves historical trading dates from the A-share market database. It performs a simple query to fetch informational data without creating, modifying, deleting, or executing any operations. The blast radius of misuse is minimal—returning incorrect or manipulated dates might affect downstream analysis but causes no direct harm to systems or data integrity.

From the tool's own definition: "Tool name 'get_last_n_trading_days' and description 'Return the last N trading dates' indicate pure data retrieval with no side effects."

## Use case

AI agents call get_last_n_trading_days to retrieve information from A-Share MCP Server 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 A-Share MCP Server:

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

## Other tools on A-Share MCP Server (40)

- `get_adjust_factor_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-adjust-factor-data.md
- `get_all_stock` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-all-stock.md
- `get_balance_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-balance-data.md
- `get_cash_flow_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-cash-flow-data.md
- `get_deposit_rate_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-deposit-rate-data.md
- `get_dividend_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-dividend-data.md
- `get_dupont_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-dupont-data.md
- `get_fina_indicator` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-fina-indicator.md
- `get_forecast_report` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-forecast-report.md
- `get_growth_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-growth-data.md
- `get_historical_k_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-historical-k-data.md
- `get_hs300_stocks` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-hs300-stocks.md
- `get_index_constituents` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-index-constituents.md
- `get_industry_members` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-industry-members.md
- `get_latest_trading_date` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-latest-trading-date.md
- `get_loan_rate_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-loan-rate-data.md
- `get_market_analysis_timeframe` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-market-analysis-timeframe.md
- `get_money_supply_data_month` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-money-supply-data-month.md
- `get_money_supply_data_year` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-money-supply-data-year.md
- `get_month_end_trading_dates` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-month-end-trading-dates.md
- `get_operation_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-operation-data.md
- `get_performance_express_report` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-performance-express-report.md
- `get_profit_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-profit-data.md
- `get_recent_trading_range` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-recent-trading-range.md
- `get_required_reserve_ratio_data` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-required-reserve-ratio-data.md
- `get_stock_analysis` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-stock-analysis.md
- `get_stock_basic_info` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-stock-basic-info.md
- `get_stock_industry` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-stock-industry.md
- `get_suspensions` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-suspensions.md
- `get_sz50_stocks` — Read — https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need/get-sz50-stocks.md
- …and 10 more: https://policylayer.com/tools/24mlight-a-share-mcp-is-just-i-need.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=24mlight-a-share-mcp-is-just-i-need · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/24mlight-a-share-mcp-is-just-i-need
