# cancel_all_orders

Cancel ALL open orders across all markets in this sub-account.

Agent View of the PolicyLayer registry record for `cancel_all_orders`. HTML page: https://policylayer.com/tools/0xdegenmo-lighter-mcp/cancel-all-orders

## Facts

- Tool: `cancel_all_orders`
- Server: Lighter MCP (`0xdegenmo/lighter-mcp`) — https://policylayer.com/tools/0xdegenmo-lighter-mcp.md
- Homepage: https://github.com/0xDegenMo/lighter-mcp
- Risk category: Destructive (Critical risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Hidden

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

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

## Why cancel_all_orders is rated Critical

This tool performs an irreversible action (order cancellation) at scale across all markets simultaneously. While cancellation is technically reversible in the sense that new orders can be placed, the immediate and automatic cancellation of all existing orders constitutes a destructive operation that cannot be undone and has significant financial consequences (positions left unhedged, trading strategies disrupted,…

From the tool's own definition: "'Cancel ALL open orders across all markets in this sub-account.' The tool irreversibly cancels all open orders with a single action affecting an entire sub-account."

## Use case

AI agents call cancel_all_orders to permanently remove resources in Lighter MCP, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

## Recommended policy (PolicyLayer)

Verdict: **Hidden**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Lighter MCP:

```json
{
  "version": "1",
  "default": "deny",
  "hide": [
    "cancel_all_orders"
  ]
}
```

## Other tools on Lighter MCP (19)

- `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_candles` — Read — https://policylayer.com/tools/0xdegenmo-lighter-mcp/get-candles.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
