# close_deal

Close the active deal on a bot at market price. Works for both SPOT and FUTURES bots.

Agent View of the PolicyLayer registry record for `close_deal`. HTML page: https://policylayer.com/tools/gt-protocol-mcp/close-deal

## Facts

- Tool: `close_deal`
- Server: :GT Protocol MCP Server (`gt-protocol/mcp`) — https://policylayer.com/tools/gt-protocol-mcp.md
- Homepage: https://github.com/gt-protocol/mcp
- Risk category: Financial (Critical risk)
- Registry record: grade F, 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": "close_deal",
    "arguments": {}
  }
}
```

## Why close_deal is rated Critical

Closing a deal at market price constitutes a financial transaction: it liquidates an open trading position, realizing gains or losses. This is irreversible once executed and directly moves funds, making it Financial and critical severity since misuse by an AI agent could cause significant unintended financial loss.

From the tool's own definition: "'Close the active deal on a bot at market price' — immediately executes a market-order trade closing on live exchange accounts (Binance, Hyperliquid)"

## Use case

AI agents use close_deal to commit financial operations through :GT Protocol 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 :GT Protocol MCP Server:

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

## Other tools on :GT Protocol MCP Server (18)

- `delete_bot` — Destructive — https://policylayer.com/tools/gt-protocol-mcp/delete-bot.md
- `run_backtest` — Execute — https://policylayer.com/tools/gt-protocol-mcp/run-backtest.md
- `start_bot` — Execute — https://policylayer.com/tools/gt-protocol-mcp/start-bot.md
- `stop_bot` — Execute — https://policylayer.com/tools/gt-protocol-mcp/stop-bot.md
- `start_deal` — Financial — https://policylayer.com/tools/gt-protocol-mcp/start-deal.md
- `authenticate` — Read — https://policylayer.com/tools/gt-protocol-mcp/authenticate.md
- `get_active_deals` — Read — https://policylayer.com/tools/gt-protocol-mcp/get-active-deals.md
- `get_balance` — Read — https://policylayer.com/tools/gt-protocol-mcp/get-balance.md
- `get_bot` — Read — https://policylayer.com/tools/gt-protocol-mcp/get-bot.md
- `get_deal_history` — Read — https://policylayer.com/tools/gt-protocol-mcp/get-deal-history.md
- `get_exchanges` — Read — https://policylayer.com/tools/gt-protocol-mcp/get-exchanges.md
- `get_profile` — Read — https://policylayer.com/tools/gt-protocol-mcp/get-profile.md
- `list_bots` — Read — https://policylayer.com/tools/gt-protocol-mcp/list-bots.md
- `list_deals` — Read — https://policylayer.com/tools/gt-protocol-mcp/list-deals.md
- `list_portfolios` — Read — https://policylayer.com/tools/gt-protocol-mcp/list-portfolios.md
- `create_bot` — Write — https://policylayer.com/tools/gt-protocol-mcp/create-bot.md
- `paper_clone` — Write — https://policylayer.com/tools/gt-protocol-mcp/paper-clone.md
- `update_bot` — Write — https://policylayer.com/tools/gt-protocol-mcp/update-bot.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=gt-protocol-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/gt-protocol-mcp
