# swap

A financial tool on the 1inch Cross-Chain Swap MCP Server MCP server.

Agent View of the PolicyLayer registry record for `swap`. HTML page: https://policylayer.com/tools/vaibhavgeek-one-inch-mcp/swap

## Facts

- Tool: `swap`
- Server: 1inch Cross-Chain Swap MCP Server (`vaibhavgeek/one_inch_mcp`) — https://policylayer.com/tools/vaibhavgeek-one-inch-mcp.md
- Homepage: https://github.com/vaibhavgeek/one_inch_mcp
- Risk category: Financial (Critical risk)
- Registry record: grade A, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Approval-gated

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

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

## Why swap is rated Critical

Despite the empty description, the tool name 'swap' combined with the server's explicit purpose of cross-chain token swapping strongly implies this tool initiates financial transactions moving tokens between blockchains. Swapping tokens is a financial operation that commits real assets. Misuse could result in irreversible loss of funds across chains, warranting critical severity.

From the tool's own definition: "Tool name 'swap' on a server described as enabling 'cross-chain token swapping between different blockchains using 1inch Fusion+ API'"

## Use case

AI agents use swap to commit financial operations through 1inch Cross-Chain Swap MCP Server, usually the final step of a payment, billing, or trading workflow. A call moves real money.

## Recommended policy (PolicyLayer)

Verdict: **Approval-gated**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches 1inch Cross-Chain Swap MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "swap": {
      "deny_if": [
        {
          "conditions": [],
          "on_deny": "Requires human approval."
        }
      ]
    }
  }
}
```

## Other tools on 1inch Cross-Chain Swap MCP Server (5)

- `portfolio-general-value` — Read — https://policylayer.com/tools/vaibhavgeek-one-inch-mcp/portfolio-general-value.md
- `portfolio-protocols-value` — Read — https://policylayer.com/tools/vaibhavgeek-one-inch-mcp/portfolio-protocols-value.md
- `portfolio-tokens-details` — Read — https://policylayer.com/tools/vaibhavgeek-one-inch-mcp/portfolio-tokens-details.md
- `portfolio-value-chart` — Read — https://policylayer.com/tools/vaibhavgeek-one-inch-mcp/portfolio-value-chart.md
- `swap-status` — Read — https://policylayer.com/tools/vaibhavgeek-one-inch-mcp/swap-status.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=vaibhavgeek-one-inch-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/vaibhavgeek-one-inch-mcp
