# get_candles

OHLCV candles for a market.

Agent View of the PolicyLayer registry record for `get_candles`. HTML page: https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-candles

## Facts

- Tool: `get_candles`
- Server: Lighter MCP (`0xdegenmo/lighter-mcp`) — https://policylayer.com/tools/0xdegenmo-lighter-mcp.md
- Homepage: https://github.com/0xDegenMo/lighter-mcp
- Risk category: Read (Low risk)
- Registry record: grade F, 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_candles",
    "arguments": {}
  }
}
```

## Why get_candles is rated Low

This tool retrieves and queries historical candlestick data for a perpetual market. It performs no write, execution, deletion, or financial operations—it only reads and returns market information. The blast radius of misuse is minimal since providing incorrect historical data does not cause direct harm or irreversible changes.

From the tool's own definition: "Tool name 'get_candles' and description 'OHLCV candles for a market' indicate data retrieval. OHLCV (Open, High, Low, Close, Volume) candles are historical market data with no side effects."

## Use case

AI agents call get_candles to retrieve information from Lighter MCP 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 Lighter MCP:

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

## Other tools on Lighter MCP (19)

- `cancel_all_orders` — Destructive — https://policylayer.com/tools/0xdegenmo-lighter-mcp/cancel-all-orders.md
- `cancel_order` — Destructive — https://policylayer.com/tools/0xdegenmo-lighter-mcp/cancel-order.md
- `close_position` — Financial — https://policylayer.com/tools/0xdegenmo-lighter-mcp/close-position.md
- `place_limit_order` — Financial — https://policylayer.com/tools/0xdegenmo-lighter-mcp/place-limit-order.md
- `place_market_order` — Financial — https://policylayer.com/tools/0xdegenmo-lighter-mcp/place-market-order.md
- `place_stop_loss` — Financial — https://policylayer.com/tools/0xdegenmo-lighter-mcp/place-stop-loss.md
- `place_take_profit` — Financial — https://policylayer.com/tools/0xdegenmo-lighter-mcp/place-take-profit.md
- `get_balance` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-balance.md
- `get_funding_rate` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-funding-rate.md
- `get_market` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-market.md
- `get_orderbook` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-orderbook.md
- `get_position` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-position.md
- `get_positions` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-positions.md
- `get_signup_info` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-signup-info.md
- `get_status` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-status.md
- `get_ticker` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-ticker.md
- `list_markets` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/list-markets.md
- `how_to_approve_integrator` — Write — https://policylayer.com/tools/0xdegenmo-lighter-mcp/how-to-approve-integrator.md
- `set_leverage` — Write — https://policylayer.com/tools/0xdegenmo-lighter-mcp/set-leverage.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=0xdegenmo-lighter-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/0xdegenmo-lighter-mcp
