Critical Risk →

set_margin_type

set_margin_type

How to control set_margin_type ↓

What set_margin_type does on Mcp Binance Futures

AI agents use set_margin_type to commit financial operations through Mcp Binance Futures — usually the final step of a payment, billing, or trading workflow. A call moves real money.

Critical Risk

Why set_margin_type needs a policy

Changing margin type (cross vs isolated) on a futures account directly affects how losses are calculated and can impact the entire account balance (cross margin) vs a single position (isolated margin). This is a financial configuration change with potentially severe consequences — cross margin mode exposes the full account balance to liquidation risk.

From the tool's definition Tool name 'set_margin_type' on a Binance USDT-M Futures trading server that exposes tools for 'position/margin control'

Documented attack patterns abuse exactly the kind of access set_margin_type gives an agent:

How to control set_margin_type

PolicyLayer is an MCP gateway — it sits between your AI agents and Mcp Binance Futures, and nothing reaches the server without passing your rules. This is the rule we recommend for set_margin_type:

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

Any call to set_margin_type is blocked until a human approves it. The rest of the server keeps working.

  1. Create a free account and register Mcp Binance Futures — nothing to install.
  2. Add this policy — paste it, or build it visually.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
GATE THIS TOOL →

Free to start. No card required.

Related tools and policies

Go deeper

Questions about set_margin_type

What does the set_margin_type tool do? +

set_margin_type. It is categorised as a Financial tool in the Mcp Binance Futures MCP Server, which means it involves financial transactions. Block by default and require explicit approval.

How do I enforce a policy on set_margin_type? +

Register the Mcp Binance Futures MCP server in PolicyLayer and add a rule for set_margin_type: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mcp Binance Futures. Nothing to install.

What risk level is set_margin_type? +

set_margin_type is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit set_margin_type? +

Yes. Add a rate_limit block to the set_margin_type rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block set_margin_type completely? +

Set action: deny in the PolicyLayer policy for set_margin_type. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides set_margin_type? +

set_margin_type is provided by the Mcp Binance Futures MCP server (muvon/mcp-binance-futures). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every Mcp Binance Futures tool call.

Start from Mcp Binance Futures, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.

Free to start. No card required.

23 Mcp Binance Futures tools catalogued and risk-classified — across an index of 43,000+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.