Docs / Agents

Agents

More money is now managed by AI agents. Floor lets an agent buy protection for the person it works for.

How an agent uses Floor

FIG. 10 / HOW AN AGENT USES FLOOR

Your agent

Any MCP client

  • Claude, ChatGPT, OpenClaw
  • its own wallet signs

Floor MCP server

Streamable HTTP

  • quote_protection
  • build_create_position_tx
  • get_status, backtest

b402

Binance payment rail

  • verifies the signed payment
  • settles on BSC
  • gas sponsored

Keeper

EOA; Agentic Wallet optional

  • rebalance(swap)
  • cannot withdraw
  • cannot set prices

Floor vault

One contract per position

  • holds user funds
  • CPPI, m = 4
  • owner can always exit

PancakeSwap

BSC tokenized-stock liquidity

  • spot swaps only
  • stock for USDT and back

User funds stay in the vault contract, never in the keeper wallet. b402 payments cover Floor API calls. It does not pay for LLM inference.

Keeper EOA primary

An automated keeper triggers rebalances. An EOA keeper is the primary one; a Binance Agentic Wallet is supported as an optional second keeper. Neither can move your funds. Your funds stay in your own vault contract. Your own Agentic Wallet can sign deposits and pay b402. Roles are described on Contracts.

Note

The Agentic Wallet keeper runs through Developer Mode. A plain wallet is the main keeper, so rebalances never depend on it.

MCP server live

Floor exposes its actions as MCP tools: quote_protection, build_create_position_tx, build_exit_tx, get_status, backtest. Any MCP-capable agent can use them. Tools that change state return an unsigned transaction. Floor never signs.

The full tool list, inputs, prices, connection examples and a sample keeper log are on the agent reference page.

An MCP callExample
// Example request to the hosted MCP server (Streamable HTTP).
POST https://floor-server-tfc6.onrender.com/mcp
{
  "method": "tools/call",
  "params": {
    "name": "quote_protection",
    "arguments": {
      "assets": [{ "symbol": "NVDAB", "weightBps": 10000 }],
      "depositUsd": 10000,
      "floorPct": 90,
      "termDays": 365
    }
  }
}
// First reply: HTTP 402 with the price.
// Sign it with your wallet, retry, get the quote.

Pay per call with b402 live

quote_protection, backtest and simulate_gap each cost 0.01 USD per call, paid in USD1 or U on BSC. The free tools stay free. Buyers need no account. Paid MCP tools settle over b402, Binance's x402-compatible payment rail on BSC: the agent signs an EIP-3009 authorization, our server verifies and settles it through b402, and Binance sponsors the gas.

Our server calls b402 with a Binance Web3 API key that has the B402 Payments permission. Payments cover calls to Floor's API, not LLM inference. More on the reference page.

A paid call over b402Example

Agent skill in the repo

A Floor skill so a user's own agent can deposit and withdraw with the user's own wallet. It tells the agent to read the factory address from get_floor_info and check every unsigned transaction against it before signing.

With Binance Agentic Wallet supported

An AI agent can use Floor by calling the MCP tools build_create_position_tx and build_exit_tx, which return unsigned transactions, and executing them with Binance Agentic Wallet Developer Mode:

baw contract-call preview --binanceChainId 56 --from <agent wallet> --to <to> --value <wei> --inputData <data> --json
baw contract-call execute --requestId <id> --json

Developer Mode is enabled in the Binance app and has its own daily limit and expiry. Contract calls and deposits are signed in Developer Mode; paid Floor tools are paid with an EIP-3009 signature over b402. A browser page cannot connect an Agentic Wallet, so the agent runs this flow from its own environment. It follows Binance's Developer Mode guideInstall the Binance skill with npx skills add binance/binance-skills-hub/skills/binance-web3/binance-agentic-wallet. See also Binance.

Next: Contracts.