{
  "tools": [
    {
      "name": "discard_gate_draft",
      "description": "Member only: discard one exact unsigned account draft. Active/signed records and protection are preserved; rate quotas do not reset.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "mandate",
              "review",
              "automation",
              "copy"
            ]
          },
          "draft_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "kind",
          "draft_id"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "preview_checked_order",
      "description": "Compile supported buy wording into a draft only. Unsupported conditions ask for clarification; never signs or submits.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 1000
          }
        },
        "required": [
          "text"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "draft_order_mandate",
      "description": "Create paper entry permission draft. Only an authenticated member can sign. Synthetic exits need the service running.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "permissions": {
            "type": "object",
            "properties": {
              "agents": {
                "minItems": 1,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "pattern": "^[A-Za-z0-9:_-]+$"
                }
              },
              "symbols": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Z]{1,5}(\\.[A-Z])?$"
                }
              },
              "maxQty": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              },
              "maxOrderUsd": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "maxExposureUsd": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "maxRiskUsd": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "maxDailyLossUsd": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "maxEntriesPerDay": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "maxEntriesPerSymbol": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10
              },
              "maxPriceDeviationPct": {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              "expiresAt": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "resizeDown": {
                "type": "boolean"
              },
              "minRetainedPct": {
                "type": "number",
                "minimum": 1,
                "maximum": 100
              },
              "syntheticProtectionAccepted": {
                "type": "boolean",
                "const": true
              },
              "protectionDisclosure": {
                "default": "Synthetic exits need the service, fresh quotes and a working broker; gaps can exceed planned loss.",
                "type": "string",
                "const": "Synthetic exits need the service, fresh quotes and a working broker; gaps can exceed planned loss."
              },
              "lossBasis": {
                "default": "Conservative account equity loss; recent credits cannot mask losses; ambiguous cash activity holds entries.",
                "type": "string",
                "const": "Conservative account equity loss; recent credits cannot mask losses; ambiguous cash activity holds entries."
              },
              "costAllowanceUsd": {
                "default": 1,
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "protectionSessions": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "regular",
                    "overnight",
                    "pre_market",
                    "after_hours"
                  ]
                }
              },
              "protectionExpiresInDays": {
                "default": 90,
                "type": "integer",
                "minimum": 1,
                "maximum": 365
              },
              "signalMode": {
                "default": "discretionary",
                "type": "string",
                "enum": [
                  "discretionary",
                  "signed_automation"
                ]
              },
              "maxPreflightChecksPerMinute": {
                "default": 4,
                "type": "integer",
                "minimum": 1,
                "maximum": 4
              },
              "maxPreflightChecksPerDay": {
                "default": 40,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "duplicateWindowSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 3600
              }
            },
            "required": [
              "agents",
              "symbols",
              "maxQty",
              "maxOrderUsd",
              "maxExposureUsd",
              "maxRiskUsd",
              "maxDailyLossUsd",
              "maxEntriesPerDay",
              "maxEntriesPerSymbol",
              "maxPriceDeviationPct",
              "expiresAt",
              "resizeDown",
              "minRetainedPct",
              "syntheticProtectionAccepted",
              "protectionSessions"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "permissions"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "get_order_mandate",
      "description": "Read the exact stored permission card and hash. A trusted member session receives a short-lived, actor-bound confirmation token. The host must display this server response directly before confirmation.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "mandate_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "mandate_id"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "sign_order_mandate",
      "description": "Member only: confirm the exact stored card after get_order_mandate in the same member session. Agent text, a bare hash and user_confirmed flags cannot authorize this.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "mandate_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "card_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "review_token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "mandate_id",
          "card_hash",
          "review_token"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "submit_checked_order",
      "description": "Checked paper-only whole-share entry, regular-session FOK limit, signed synthetic stop required. No arbitrary scripts, fund moves, live orders or unsupported instruments.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "order": {
            "type": "object",
            "properties": {
              "mandateId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[A-Za-z0-9:_-]+$"
              },
              "eventId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[A-Za-z0-9:_-]+$"
              },
              "symbol": {
                "type": "string",
                "pattern": "^[A-Z]{1,5}(\\.[A-Z])?$"
              },
              "qty": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              },
              "notionalUsd": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "limitPrice": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "softLine": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "stopPrice": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "floorMin": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000000
              },
              "validUntil": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "trigger": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "below",
                      "above"
                    ]
                  },
                  "threshold": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 1000000
                  }
                },
                "required": [
                  "kind",
                  "threshold"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "mandateId",
              "eventId",
              "symbol",
              "limitPrice",
              "softLine",
              "stopPrice",
              "floorMin",
              "validUntil"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "order"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "revoke_order_mandate",
      "description": "Member only: permanently end one entry permission. Later orders under it are blocked; it cannot be re-signed. Existing signed protective exits stay active.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "mandate_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "mandate_id"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "halt_entries",
      "description": "Stop new Gate entries while preserving existing signed Night Stop protective exits.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "gate_status",
      "description": "Entry mandates, actual broker lifecycle status, unknown submissions and linked Night Stop protections.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "close_owned_entry",
      "description": "Request a reduction of this agent’s confirmed Gate-owned entry, under the existing signed exit floor. Works while new entries are halted.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "client_order_id": {
            "type": "string"
          },
          "qty": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "client_order_id"
        ],
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "get_audit_log",
      "title": "Audit log",
      "description": "Append-only record of every decision, quote snapshot and order, newest last.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "rule_id": {
            "type": "string",
            "maxLength": 64
          },
          "limit": {
            "default": 100,
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    },
    {
      "name": "evaluation_control",
      "description": "Synthetic evaluation only. Member fixture controls quotes, clock, ticks and injected faults. Never contacts a broker.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "execution": {
        "taskSupport": "forbidden"
      }
    }
  ]
}
