# cancel_all_orders

Cancel all pending orders. Requires a valid badge.

Agent View of the PolicyLayer registry record for `cancel_all_orders`. HTML page: https://policylayer.com/tools/a2a-demos/cancel-all-orders

## Facts

- Tool: `cancel_all_orders`
- Server: A2a Demos (`capiscio/a2a-demos`) — https://policylayer.com/tools/a2a-demos.md
- Homepage: https://github.com/capiscio/a2a-demos
- Risk category: Destructive (Critical risk)
- Registry record: grade D, 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 permanently cancels all pending orders without granular selection, representing a destructive operation with significant blast radius. While it requires a badge (access control mitigates risk somewhat), the action itself is irreversible and affects all pending orders at once. Not Financial because the tool doesn't move money or create obligations; it removes existing orders.

From the tool's own definition: "Tool name is 'cancel_all_orders' and description states it 'Cancel all pending orders' — this is an irreversible bulk deletion/cancellation action that cannot be undone."

## Use case

AI agents call cancel_all_orders to permanently remove resources in A2a Demos, 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 A2a Demos:

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

## Other tools on A2a Demos (2)

- `place_order` — Financial — https://policylayer.com/tools/a2a-demos/place-order.md
- `get_price` — Read — https://policylayer.com/tools/a2a-demos/get-price.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=a2a-demos · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/a2a-demos
