milo

AI trading agents and market research: insider and congress trades, 8-K filings, Solana trading.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
97%
Integridad del esquema
94%
Calidad de los nombres
97%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (1)

  • LOWTool 'update_account_autotrade_settings' name length outside 3-30 rangeen update_account_autotrade_settings

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~11,299Tokens (definiciones de herramientas)
~1.9 KBTamaño de respuesta típico
Impacto significativo en la atención (8.83% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "milo": {
      "url": "https://partners.andmilo.com/mcp"
    }
  }
}

Puntos de conexión remotos

https://partners.andmilo.com/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (45)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
⚪prepare_signup_message(walletAddress, chainId, inviteCode)

Step 1 of signup: asks the Milo server to generate the SIWX message that the Solana wallet must sign to prove ownership. Returns the message text and all siwx data fields. The wallet owner must sign the `message` bytes (UTF-8 encoded) using their ed25519 private key and base58-encode the signature. Then call `signup` with the result.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "walletAddress": {
      "type": "string",
      "minLength": 32,
      "maxLength": 64,
      "description": "The Solana wallet address to register"
    },
    "chainId": {
      "type": "string",
      "description": "Chain ID (default: solana mainnet \"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\")"
    },
    "inviteCode": {
      "type": "string",
      "description": "Optional invite code"
    }
  },
  "required": [
    "walletAddress"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡signup(signupWallet, siwx)

Step 2 of signup: submit the signed SIWX proof to register. Returns user info, wallet IDs, and an API key. The API key is auto-configured for this MCP session only. **Save the returned apiKey and send it as the `X-API-Key` header on every MCP request** — clients that open a new session per call (most hosted connectors) lose the auto-configured key otherwise.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "signupWallet": {
      "type": "string",
      "minLength": 32,
      "maxLength": 64,
      "description": "The Solana wallet address (must match siwx.data.accountAddress)"
    },
    "siwx": {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "accountAddress": {
              "type": "string"
            },
            "chainId": {
              "type": "string"
            },
            "domain": {
              "type": "string"
            },
            "uri": {
              "type": "string"
            },
            "version": {
              "type": "string"
            },
            "nonce": {
              "type": "string"
            },
            "statement": {
              "type": "string"
            },
            "issuedAt": {
              "type": "string"
            },
            "expirationTime": {
              "type": "string"
            },
            "resources": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "requestId": {
              "type": "string"
            },
            "notBefore": {
              "type": "string"
            },
            "inviteCode": {
              "type": "string"
            }
          },
          "required": [
            "accountAddress",
            "chainId",
            "domain",
            "uri",
            "version",
            "nonce"
          ],
          "additionalProperties": false,
          "description": "The `data` object returned by prepare_signup_message"
        },
        "message": {
          "type": "string",
          "description": "The `message` string returned by prepare_signup_message"
        },
        "signature": {
          "type": "string",
          "description": "The base58-encoded ed25519 signature of the message bytes"
        }
      },
      "required": [
        "data",
        "message",
        "signature"
      ],
      "additionalProperties": false,
      "description": "SIWX proof: data + message + signature"
    }
  },
  "required": [
    "signupWallet",
    "siwx"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_me

Get the current user profile and wallets for the authenticated API key. Returns userId, walletIds, and wallet addresses — use this to discover your IDs before calling other endpoints.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_stock_research_digest(ticker)

One-call disclosure digest for a US stock over the last 90 days: SEC Form 4 insider open-market purchases, congressional (Senate/House PTR) trades and SEC 8-K material events — counts, the most notable rows and links to the source filings. Source: public SEC EDGAR and congressional disclosures ingested by Milo (8-K polled ~every 30 min, PTRs every 1-4h; PTRs lag the trade by up to 30-45 days). Insider coverage is limited to Milo's tracked US-equity universe — check `insider.tracked`. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "US stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)"
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_insider_transactions(ticker, days, limit)

SEC Form 4 insider open-market purchases for a US stock, newest filing first, with filer name/role, shares, price, USD value and an EDGAR filing link. Source: SEC EDGAR filings ingested by Milo — purchases only (transaction code P), for Milo's tracked US-equity universe (`meta.coverage.tickers` lists exactly which tickers are polled); an empty result for an untracked ticker does NOT mean no insider activity. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "US stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)"
    },
    "days": {
      "type": "integer",
      "description": "Look-back window in days (default 90, max 365)"
    },
    "limit": {
      "type": "integer",
      "description": "Max rows (default 50, max 100)"
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_recent_insider_buys(days, minValueUsd, limit)

Notable SEC Form 4 insider open-market purchases across Milo's tracked US-equity universe, newest filing first, optionally filtered by minimum USD value. Source: SEC EDGAR filings ingested by Milo (purchases only; `meta.coverage.tickers` lists the universe). Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "days": {
      "type": "integer",
      "description": "Look-back window in days (default 30, max 365)"
    },
    "minValueUsd": {
      "type": "number",
      "minimum": 0,
      "description": "Only purchases worth at least this many USD"
    },
    "limit": {
      "type": "integer",
      "description": "Max rows (default 50, max 100)"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_congress_trades(ticker, days, limit)

Congressional stock-trade disclosures (Senate eFD / House Clerk Periodic Transaction Reports) for a US stock, or market-wide when `ticker` is omitted — member, chamber, purchase/sale, disclosed amount range, transaction and disclosure dates, and the official filing link. Source: public congressional disclosures ingested by Milo, polled every 1-4h; PTRs report amount ranges (not exact amounts) and lag the trade by up to 30-45 days. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "US stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)"
    },
    "days": {
      "type": "integer",
      "description": "Look-back window in days by disclosure date (default 90, max 365)"
    },
    "limit": {
      "type": "integer",
      "description": "Max rows (default 50, max 100)"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_8k_events(ticker, days, limit)

Recent SEC 8-K material-event filings for a US stock, newest acceptance first, with 8-K item codes and their titles (e.g. 2.02 Results of Operations, 5.02 Officer/Director changes, 8.01 Other Events) plus filing links. Source: SEC 8-K filings ingested by Milo, polled ~every 30 minutes. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "US stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)"
    },
    "days": {
      "type": "integer",
      "description": "Look-back window in days by filing date (default 90, max 365)"
    },
    "limit": {
      "type": "integer",
      "description": "Max rows (default 50, max 100)"
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_perp_markets(sort, scope, limit)

Ranked Hyperliquid perpetual futures: `funding_high` = longs paying the most (crowded longs), `funding_low` = shorts paying the most (crowded shorts), `open_interest`, `volume` (24h) or `movers` (largest absolute 24h move). `scope` = `crypto` for crypto perps, `builder` for builder-deployed perps on stocks, indices, commodities, pre-IPO, FX and rates (e.g. xyz:TSLA, xyz:GOLD, io:ANTH). Each row: price, 24h change, funding (hourly rate and APR), open interest, volume, max leverage, isolated-only flag, category. Funding boards skip markets under $1M open interest and only list the matching funding sign. Source: Hyperliquid public market data, cached ~60s. Read-only: Milo does not place perp orders. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sort": {
      "type": "string",
      "enum": [
        "funding_high",
        "funding_low",
        "open_interest",
        "volume",
        "movers"
      ],
      "description": "Ranking (default open_interest)"
    },
    "scope": {
      "type": "string",
      "enum": [
        "all",
        "crypto",
        "builder"
      ],
      "description": "all (default), crypto, or builder"
    },
    "limit": {
      "type": "integer",
      "description": "Max rows (default 20, max 50)"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_perp_market(symbol, fundingDays, candleDays)

One Hyperliquid perpetual by symbol ("BTC", "ETH", "TSLA", "GOLD") or venue id ("xyz:TSLA"): mark/oracle price, 24h change, current funding (positive = longs pay shorts) plus the average and an 8h-bucketed history, open interest, 24h volume, max leverage, isolated-only flag, category and daily candles; other listings of the same symbol come back as `alternatives`. Source: Hyperliquid public market data. Read-only: Milo does not place perp orders. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "symbol": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Perp symbol or venue coin id"
    },
    "fundingDays": {
      "type": "integer",
      "description": "Funding history window (default 7, max 30)"
    },
    "candleDays": {
      "type": "integer",
      "description": "Daily candles window (default 30, max 90)"
    }
  },
  "required": [
    "symbol"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_prediction_markets(query, venue, limit)

Open prediction markets on a topic ("fed rate october", "bitcoin 100k", "nvidia earnings") from Kalshi (CFTC-regulated, the US venue) and Polymarket (international; not available to US persons), venues interleaved. Each market: event title, outcome, YES implied probability (0..1), bid/ask, 24h move, volume (Kalshi in contracts, Polymarket in USD), close time, venue link, plus the `venue` and `id` to pass to `get_prediction_market`. Only open markets are returned. Source: Kalshi and Polymarket public market data. Read-only: Milo does not place prediction-market orders. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120,
      "description": "Topic to search"
    },
    "venue": {
      "type": "string",
      "enum": [
        "kalshi",
        "polymarket"
      ],
      "description": "Limit to one venue"
    },
    "limit": {
      "type": "integer",
      "description": "Max markets (default 8, max 20)"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_prediction_market(venue, id, historyDays)

One open prediction market by `venue` and `id` (a Kalshi market ticker or a Polymarket market slug, from `search_prediction_markets`): YES implied probability with bid/ask and 24h move, odds history (t = unix seconds, p = YES 0..1), the other outcomes of the same event, resolution rules and, for Polymarket, the largest holders. Settled or closed markets return not_found. Source: Kalshi and Polymarket public market data. Read-only: Milo does not place prediction-market orders. Returns structured JSON.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "venue": {
      "type": "string",
      "enum": [
        "kalshi",
        "polymarket"
      ],
      "description": "kalshi or polymarket"
    },
    "id": {
      "type": "string",
      "minLength": 3,
      "maxLength": 200,
      "description": "Kalshi market ticker or Polymarket market slug"
    },
    "historyDays": {
      "type": "integer",
      "description": "Odds history window (default 30, max 90)"
    }
  },
  "required": [
    "venue",
    "id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_holdings(walletId)

Get the latest token holdings for a wallet, including balances and USD/SOL values

Esquema de entrada

{
  "type": "object",
  "properties": {
    "walletId": {
      "type": "string",
      "format": "uuid",
      "description": "The wallet ID to get holdings for"
    }
  },
  "required": [
    "walletId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_positions(userId, page, pageSize, status)

List investment positions (theses) with PnL data. Each position represents a trading thesis Milo is tracking — includes entry orders, linked TP/SL orders, invested amount, unrealized PnL, and current status. Milo revalidates theses every ~3 days. Wallet-backed positions include wallet order/TP/SL data; stock brokerage positions return walletId null, tradingAccountType stock_brokerage, and linked brokerage order/position-derived PnL.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "page": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Page number (default: 1, max: 100)"
    },
    "pageSize": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Items per page (default: 25, max: 100)"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "pending",
        "not_active"
      ],
      "description": "Filter by position status"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴close_position(userId, thesisId)

⚠️ Irreversible: this executes a real on-chain sell of the position's remaining holdings. Close a specific position — cancels pending orders and creates a sell order for remaining holdings

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "thesisId": {
      "type": "string",
      "format": "uuid",
      "description": "The position thesis ID to close"
    }
  },
  "required": [
    "thesisId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴close_all_positions(userId)

⚠️ Irreversible: this sells every active position for the user and cannot be undone. Close all active/pending positions for a user

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴create_order(walletId, tokenAddress, type, status, positionThesisId, ...)

⚠️ Moves funds: this places a real order that will execute a trade from the user's wallet. Create a buy or sell order on a wallet, with optional take-profit and stop-loss ladder

Esquema de entrada

{
  "type": "object",
  "properties": {
    "walletId": {
      "type": "string",
      "format": "uuid",
      "description": "The wallet ID to create the order on"
    },
    "tokenAddress": {
      "type": "string",
      "description": "Token mint address"
    },
    "type": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ],
      "description": "Order type"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "draft"
      ],
      "description": "Order status (default: active)"
    },
    "positionThesisId": {
      "anyOf": [
        {
          "anyOf": [
            {
              "not": {}
            },
            {
              "type": "string",
              "format": "uuid"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Link to a position thesis"
    },
    "payload": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "buy",
            "sell"
          ]
        },
        "amount": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "absolute_usd",
                "absolute",
                "relative"
              ]
            },
            "amount": {
              "type": "number"
            },
            "percentage": {
              "type": "number"
            }
          },
          "required": [
            "type"
          ],
          "additionalProperties": false
        },
        "trigger": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "absolute",
                "relative"
              ]
            },
            "trigger": {
              "type": "string"
            },
            "operator": {
              "type": "string"
            },
            "value": {
              "type": "number"
            }
          },
          "required": [
            "type",
            "trigger",
            "operator",
            "value"
          ],
          "additionalProperties": false
        },
        "execution": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "type",
        "amount",
        "trigger"
      ],
      "additionalProperties": false,
      "description": "Order payload with amount, trigger, and execution settings"
    },
    "takeProfits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "percentage": {
            "type": "number",
            "description": "Percent of position to sell"
          },
          "profitPercentage": {
            "type": "number",
            "description": "Profit percent to trigger this TP"
          }
        },
        "required": [
          "percentage",
          "profitPercentage"
        ],
        "additionalProperties": false
      },
      "description": "Optional take-profit ladder"
    },
    "stopLosses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "percentage": {
            "type": "number",
            "description": "Percent of position to sell"
          },
          "lossPercentage": {
            "type": "number",
            "description": "Loss percent to trigger this SL"
          }
        },
        "required": [
          "percentage",
          "lossPercentage"
        ],
        "additionalProperties": false
      },
      "description": "Optional stop-loss ladder"
    }
  },
  "required": [
    "walletId",
    "tokenAddress",
    "type",
    "payload"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_orders(userId, page, pageSize, status, type, ...)

List orders for a user with optional filters

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "page": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Page number (default: 1, max: 100)"
    },
    "pageSize": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Items per page (default: 25, max: 100)"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "error",
        "fulfilled",
        "archived",
        "draft"
      ],
      "description": "Filter by order status"
    },
    "type": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ],
      "description": "Filter by order type"
    },
    "tokenAddress": {
      "type": "string",
      "description": "Filter by token address"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_order(userId, orderId)

Get details of a specific order

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "orderId": {
      "type": "string",
      "format": "uuid",
      "description": "The order ID"
    }
  },
  "required": [
    "orderId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴pause_order(userId, orderId)

⚠️ Replaces live state: pausing an active order stops it from executing — pausing a stop-loss or take-profit leaves the position unprotected until the order is re-activated. Confirm with the user first. Pause an active order

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "orderId": {
      "type": "string",
      "format": "uuid",
      "description": "The order ID to pause"
    }
  },
  "required": [
    "orderId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴activate_order(userId, orderId)

⚠️ Moves funds: activating a draft order makes it live and able to execute a real trade. Activate a draft order

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "orderId": {
      "type": "string",
      "format": "uuid",
      "description": "The order ID to activate"
    }
  },
  "required": [
    "orderId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴delete_order(userId, orderId)

⚠️ Irreversible: this archives the order; it cannot be restored afterwards. Delete (archive) an order

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "orderId": {
      "type": "string",
      "format": "uuid",
      "description": "The order ID to delete"
    }
  },
  "required": [
    "orderId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴send_tokens(walletId, recipient, token, amount)

⚠️ Moves funds: this transfers tokens out of the user's wallet to another address and cannot be reversed. Send tokens from a wallet to a recipient address

Esquema de entrada

{
  "type": "object",
  "properties": {
    "walletId": {
      "type": "string",
      "format": "uuid",
      "description": "The wallet ID to send from"
    },
    "recipient": {
      "type": "string",
      "minLength": 32,
      "maxLength": 64,
      "description": "Recipient Solana address"
    },
    "token": {
      "type": "string",
      "minLength": 32,
      "maxLength": 64,
      "description": "Token mint address"
    },
    "amount": {
      "type": "number",
      "minimum": 0,
      "description": "Amount to send (human-readable, e.g. 1.5 SOL)"
    }
  },
  "required": [
    "walletId",
    "recipient",
    "token",
    "amount"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_trading_accounts

List trading accounts for the authenticated API key. `milo_wallet` accounts are linked to Milo wallets. `stock_brokerage` accounts have null wallet fields and sanitized brokerage broker, display, paper-mode, capability, and sync fields only.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_autotrade_settings(userId)

Get the user's default trading account autotrade configuration: isActive flag, risk tolerance (conservative/balanced/degen), risk policy, linked strategy, allocation across asset classes, custom instructions for Milo, and per-class overrides.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_account_autotrade_settings(tradingAccountId)

Get autotrade configuration for a specific trading account.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "tradingAccountId": {
      "type": "string",
      "format": "uuid",
      "description": "The trading account ID"
    }
  },
  "required": [
    "tradingAccountId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴update_autotrade_settings(userId, riskTolerance, riskPolicy, strategy, strategyId, ...)

⚠️ Moves funds: enabling autotrade lets Milo trade the user's wallet autonomously, starting with a sweep of existing holdings into USDC. Update the user's default trading account autotrade settings. Set `isActive: true` to activate Milo's autonomous trading (he will sweep holdings to USDC dry powder and begin trading within ~30 min). Change risk tolerance, strategy (VALUE INVESTOR / SWING TRADER / SCALPER / CUSTOM), allocation across asset classes (memes, promising-memes, staking, native, majors, alt-coins, stables, xStocks, stocks, rwa-stocks, rwa-etfs, rwa-metals, rwa-currencies, rwa-pre-ipo, custom; the retired `trenches` is accepted but saved as stables), or provide free-text instructions. Link a saved strategy via strategyId. `stocks` is broker-only and executes only through active, ready `stock_brokerage` trading accounts.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "riskTolerance": {
      "type": "string",
      "enum": [
        "conservative",
        "balanced",
        "degen"
      ],
      "description": "Risk profile. Updating it derives the saved riskPolicy overlay and does not rewrite linked strategy instructions."
    },
    "riskPolicy": {
      "type": "object",
      "properties": {
        "maxTicketUsd": {
          "type": "number",
          "minimum": 0
        },
        "maxDrawdownPct": {
          "type": "number",
          "minimum": 0
        },
        "maxConcurrentLosingPositions": {
          "type": "integer",
          "minimum": 0
        },
        "lossCooldownMinutes": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "maxTicketUsd",
        "maxDrawdownPct",
        "maxConcurrentLosingPositions",
        "lossCooldownMinutes"
      ],
      "additionalProperties": false,
      "description": "Structured user-level risk overlay. If omitted, riskTolerance derives the default policy."
    },
    "strategy": {
      "type": "string",
      "description": "Trading strategy: VALUE INVESTOR, SWING TRADER, SCALPER, or CUSTOM"
    },
    "strategyId": {
      "anyOf": [
        {
          "anyOf": [
            {
              "not": {}
            },
            {
              "type": "string",
              "format": "uuid"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Link to a saved strategy (takes a snapshot of its settings)"
    },
    "instructions": {
      "type": "string",
      "description": "Free-text instructions for Milo — e.g. \"focus on AI tokens, avoid memecoins, max 5% per position\""
    },
    "isActive": {
      "type": "boolean",
      "description": "Enable (true) or disable (false) autonomous trading"
    },
    "allocation": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "Target allocation by asset class, e.g. { \"majors\": 40, \"stables\": 30, \"memes\": 20, \"native\": 10 }"
    },
    "customTickers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specific token symbols for Milo to watch (e.g. [\"JUP\", \"BONK\", \"WIF\"])"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴update_account_autotrade_settings(tradingAccountId, riskTolerance, riskPolicy, strategy, strategyId, ...)

⚠️ Moves funds: enabling autotrade on an account lets Milo trade that account autonomously, starting with a sweep of existing holdings into USDC. Update autotrade settings for a specific trading account. Use this for explicit account routing.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "tradingAccountId": {
      "type": "string",
      "format": "uuid",
      "description": "The trading account ID"
    },
    "riskTolerance": {
      "type": "string",
      "enum": [
        "conservative",
        "balanced",
        "degen"
      ],
      "description": "Risk profile. Updating it derives the saved riskPolicy overlay and does not rewrite linked strategy instructions."
    },
    "riskPolicy": {
      "type": "object",
      "properties": {
        "maxTicketUsd": {
          "type": "number",
          "minimum": 0
        },
        "maxDrawdownPct": {
          "type": "number",
          "minimum": 0
        },
        "maxConcurrentLosingPositions": {
          "type": "integer",
          "minimum": 0
        },
        "lossCooldownMinutes": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "maxTicketUsd",
        "maxDrawdownPct",
        "maxConcurrentLosingPositions",
        "lossCooldownMinutes"
      ],
      "additionalProperties": false,
      "description": "Structured user-level risk overlay. If omitted, riskTolerance derives the default policy."
    },
    "strategy": {
      "type": "string",
      "description": "Trading strategy: VALUE INVESTOR, SWING TRADER, SCALPER, or CUSTOM"
    },
    "strategyId": {
      "anyOf": [
        {
          "anyOf": [
            {
              "not": {}
            },
            {
              "type": "string",
              "format": "uuid"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Link to a saved strategy (takes a snapshot of its settings)"
    },
    "instructions": {
      "type": "string",
      "description": "Free-text instructions for Milo — e.g. \"focus on AI tokens, avoid memecoins, max 5% per position\""
    },
    "isActive": {
      "type": "boolean",
      "description": "Enable (true) or disable (false) autonomous trading"
    },
    "allocation": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "Target allocation by asset class, e.g. { \"majors\": 40, \"stables\": 30, \"memes\": 20, \"native\": 10 }"
    },
    "customTickers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specific token symbols for Milo to watch (e.g. [\"JUP\", \"BONK\", \"WIF\"])"
    }
  },
  "required": [
    "tradingAccountId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_strategies(userId, page, pageSize, scope, q)

List saved autotrade strategies. Strategies are reusable presets for Milo's strategy content (allocation, instructions, custom tickers, and per-asset settings). Users can create their own or browse public strategies shared by others.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "page": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Page number (default: 1, max: 100)"
    },
    "pageSize": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Items per page (default: 25, max: 100)"
    },
    "scope": {
      "type": "string",
      "enum": [
        "all",
        "owned",
        "public"
      ],
      "description": "Filter: all, owned (user's), or public (community)"
    },
    "q": {
      "type": "string",
      "description": "Search query (matches name/description)"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_strategy(userId, strategyId)

Get details of a specific strategy

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "strategyId": {
      "type": "string",
      "format": "uuid",
      "description": "The strategy ID"
    }
  },
  "required": [
    "strategyId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡create_strategy(userId, name, description, instructions, strategy, ...)

Create a new autotrade strategy preset. After creating, link it to the user via `update_autotrade_settings` with `strategyId` to activate it. Make it public to share with the community.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Strategy name (e.g. \"DeFi Blue Chips\")"
    },
    "description": {
      "anyOf": [
        {
          "anyOf": [
            {
              "not": {}
            },
            {
              "type": "string",
              "maxLength": 2000
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Human-readable description of what this strategy does"
    },
    "instructions": {
      "type": "string",
      "maxLength": 4000,
      "description": "Free-text instructions for Milo when following this strategy"
    },
    "strategy": {
      "type": "string",
      "description": "Trading strategy type: VALUE INVESTOR, SWING TRADER, SCALPER, or CUSTOM"
    },
    "allocation": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "Target allocation by asset class"
    },
    "customTickers": {
      "anyOf": [
        {
          "anyOf": [
            {
              "not": {}
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Specific tokens to focus on"
    },
    "isPublic": {
      "type": "boolean",
      "description": "Make discoverable by other users"
    }
  },
  "required": [
    "name",
    "strategy"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴update_strategy(userId, strategyId, name, description, instructions, ...)

⚠️ Replaces live state: every field you pass overwrites the saved value (allocation, instructions, custom tickers) — there is no merge — and a strategy linked to an active trading account changes what that account trades once re-synced. Confirm with the user first. Update an existing strategy

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "strategyId": {
      "type": "string",
      "format": "uuid",
      "description": "The strategy ID"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Strategy name"
    },
    "description": {
      "anyOf": [
        {
          "anyOf": [
            {
              "not": {}
            },
            {
              "type": "string",
              "maxLength": 2000
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Strategy description"
    },
    "instructions": {
      "type": "string",
      "maxLength": 4000,
      "description": "AI instructions"
    },
    "strategy": {
      "type": "string",
      "description": "Trading strategy type"
    },
    "allocation": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "Asset class allocation"
    },
    "customTickers": {
      "anyOf": [
        {
          "anyOf": [
            {
              "not": {}
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Custom tokens"
    },
    "isPublic": {
      "type": "boolean",
      "description": "Make public"
    }
  },
  "required": [
    "strategyId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴delete_strategy(userId, strategyId)

⚠️ Irreversible: this permanently deletes the strategy preset. Delete a strategy

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "strategyId": {
      "type": "string",
      "format": "uuid",
      "description": "The strategy ID to delete"
    }
  },
  "required": [
    "strategyId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴sync_strategy(userId, strategyId)

⚠️ Replaces live state: re-applies the strategy's allocation and instructions onto the live trading account's autotrade settings, replacing the current ones while trading stays active — the account starts trading the new configuration immediately. Confirm with the user first. Re-sync autotrade settings with a linked strategy. When a strategy is updated after being linked, the settings become out of sync. Call this to re-apply the strategy's latest configuration onto the live trading account. Requires the `trade` scope when connected with OAuth (it changes what the account trades).

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "strategyId": {
      "type": "string",
      "format": "uuid",
      "description": "The strategy ID to sync"
    }
  },
  "required": [
    "strategyId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴deploy_arena_strategy(userId, strategyId, fundingAmountSol)

⚠️ Moves funds: this transfers SOL (≥1 SOL) from the owner's wallet into a new arena wallet and starts autonomous trading there. Deploy a strategy to the arena — creates an arena user and wallet, funds it from the owner's custodial wallet, and activates auto-trading. The strategy must be public and owned by the user. `fundingAmountSol` is optional, defaults to 1 SOL, and must be at least 1 SOL.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "strategyId": {
      "type": "string",
      "format": "uuid",
      "description": "The strategy ID to deploy to the arena"
    },
    "fundingAmountSol": {
      "type": "number",
      "minimum": 1,
      "description": "SOL amount to transfer into the arena wallet. Defaults to 1."
    }
  },
  "required": [
    "strategyId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴withdraw_arena_strategy(userId, strategyId)

⚠️ Moves funds: this liquidates the arena wallet and transfers all holdings back to the owner's wallet. Withdraw from the arena — transfers all holdings back to the owner's custodial wallet and deactivates the arena strategy. Only the strategy owner can withdraw.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "strategyId": {
      "type": "string",
      "format": "uuid",
      "description": "The strategy ID to withdraw from the arena"
    }
  },
  "required": [
    "strategyId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_arena_leaderboard(userId, page, pageSize, timeframe, sortKey, ...)

Get the arena leaderboard — ranked strategies with PnL, win rate, return percentage, account value, and current holdings. Supports timeframe filtering and sorting.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "page": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Page number (default: 1, max: 100)"
    },
    "pageSize": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Items per page (default: 25, max: 100)"
    },
    "timeframe": {
      "type": "string",
      "enum": [
        "1d",
        "30d",
        "90d"
      ],
      "description": "Leaderboard timeframe (default: 30d)"
    },
    "sortKey": {
      "type": "string",
      "enum": [
        "pnl",
        "winRate",
        "returnPct",
        "accountValue"
      ],
      "description": "Sort by metric (default: pnl)"
    },
    "sortDirection": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Sort direction (default: desc)"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_quests(userId, page, pageSize, unlocked, unclaimed, ...)

List quests with progress, requirements, and bones (reward points). By default returns unlocked quests (available to complete). Filter by unclaimed (completed but bones not yet claimed) or claimed (bones collected). Check regularly for unclaimed quests to collect bones.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "page": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Page number (default: 1, max: 100)"
    },
    "pageSize": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Items per page (default: 25, max: 100)"
    },
    "unlocked": {
      "type": "boolean",
      "description": "Filter for unlocked quests (default: true). Set to false to include all quests."
    },
    "unclaimed": {
      "type": "boolean",
      "description": "Filter for unclaimed quests (completed but bones not yet claimed)"
    },
    "claimed": {
      "type": "boolean",
      "description": "Filter for claimed quests (bones already collected)"
    },
    "mode": {
      "type": "string",
      "enum": [
        "completed_last"
      ],
      "description": "Sort mode: completed_last puts completed quests at the end"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢claim_quest(userId, questId)

Claim bones (reward points) for a completed quest. The quest must be completed and unclaimed. Call list_quests with unclaimed=true first to find quests ready to claim.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "questId": {
      "type": "string",
      "format": "uuid",
      "description": "The quest ID to claim"
    }
  },
  "required": [
    "questId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_bones_balance(userId)

Get the user's bones (reward points) balance. Returns claimed balance and unclaimed bones that can be collected by claiming completed quests. Check this regularly to keep the user informed about their rewards.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴create_conversation(userId, message, agentType, payment)

⚠️ May trigger trades: the agent that answers can ACT on the message, not just reply — the auto-trader agent can update autotrade settings and close positions, so a message that asks for a trading action has the same effect as calling the destructive trading tools. Confirm with the user before sending a message that requests any trading action. Start a new conversation with a Milo AI agent. Agent types: **market-analyst** (deep research — token fundamentals, technicals, sentiment, risk analysis), **auto-trader** (discuss strategy, review positions, ask Milo to adjust settings or close positions — he can update autotrade config directly). The agent responds asynchronously — poll `get_messages` and check the `processing` flag. If overage is hit, this returns 402 payment guidance. To submit payment proof, include `payment`.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "The initial message to send"
    },
    "agentType": {
      "type": "string",
      "enum": [
        "market-analyst",
        "auto-trader"
      ],
      "description": "Agent: market-analyst (research & analysis) or auto-trader (strategy/settings/positions). Default: market-analyst"
    },
    "payment": {
      "type": "object",
      "properties": {
        "recipient": {
          "type": "string",
          "minLength": 1,
          "description": "Recipient wallet for overage payment (use the value returned by 402)"
        },
        "asset": {
          "type": "string",
          "description": "Payment asset from 402 options: USDC or SOL"
        },
        "amount": {
          "type": "number",
          "exclusiveMinimum": 0,
          "description": "Payment amount from 402 options (0.25 USDC or 0.01 SOL)"
        },
        "paymentId": {
          "type": "string",
          "minLength": 1,
          "description": "Unique one-time payment ID for anti-replay"
        },
        "txSignature": {
          "type": "string",
          "minLength": 1,
          "description": "Confirmed Solana transaction signature for the payment"
        },
        "header": {
          "type": "string",
          "minLength": 1,
          "description": "Optional payment header name (default: X-PAYMENT)"
        }
      },
      "required": [
        "recipient",
        "asset",
        "amount",
        "paymentId",
        "txSignature"
      ],
      "additionalProperties": false,
      "description": "Optional x402 payment proof. Include after a 402 payment_required response."
    }
  },
  "required": [
    "message"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_conversations(userId, page, pageSize)

List conversations for a user

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "page": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Page number (default: 1, max: 100)"
    },
    "pageSize": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Items per page (default: 25, max: 100)"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_conversation(userId, conversationId)

Get details of a specific conversation

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "conversationId": {
      "type": "string",
      "description": "The conversation ID"
    }
  },
  "required": [
    "conversationId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴send_message(userId, conversationId, message, approval, payment)

⚠️ May trigger trades: the agent that answers can ACT on the message, not just reply — the auto-trader agent can update autotrade settings and close positions, so a message that asks for a trading action has the same effect as calling the destructive trading tools. Confirm with the user before sending a message that requests any trading action. Money-moving actions never run straight from a message: the agent replies with an approval request (`approvalRequest` on the message from get_messages) and the action runs only after the user approves it — send `approval: { approvalId, decision }` (preferred: with it the message text is saved but not interpreted; without it, a plain reply such as "approve" or "cancel" decides only the request carried by the latest assistant message, see docs/mcp.md for the exact phrases). Any other message cancels the request (`approvalRequest.status` becomes `superseded`); requests expire after 10 minutes. Send a message to an existing conversation. The AI agent processes in the background; poll get_messages for the response. If overage is hit, this returns 402 payment guidance. To submit payment proof, include `payment`.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "conversationId": {
      "type": "string",
      "description": "The conversation ID"
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "The message to send"
    },
    "approval": {
      "type": "object",
      "properties": {
        "approvalId": {
          "type": "string",
          "format": "uuid",
          "description": "approvalRequest.approvalId from the assistant message"
        },
        "decision": {
          "type": "string",
          "enum": [
            "approve",
            "reject"
          ]
        }
      },
      "required": [
        "approvalId",
        "decision"
      ],
      "additionalProperties": false,
      "description": "Approve or reject a pending money action. Only send 'approve' after the user explicitly approved that exact action."
    },
    "payment": {
      "type": "object",
      "properties": {
        "recipient": {
          "type": "string",
          "minLength": 1,
          "description": "Recipient wallet for overage payment (use the value returned by 402)"
        },
        "asset": {
          "type": "string",
          "description": "Payment asset from 402 options: USDC or SOL"
        },
        "amount": {
          "type": "number",
          "exclusiveMinimum": 0,
          "description": "Payment amount from 402 options (0.25 USDC or 0.01 SOL)"
        },
        "paymentId": {
          "type": "string",
          "minLength": 1,
          "description": "Unique one-time payment ID for anti-replay"
        },
        "txSignature": {
          "type": "string",
          "minLength": 1,
          "description": "Confirmed Solana transaction signature for the payment"
        },
        "header": {
          "type": "string",
          "minLength": 1,
          "description": "Optional payment header name (default: X-PAYMENT)"
        }
      },
      "required": [
        "recipient",
        "asset",
        "amount",
        "paymentId",
        "txSignature"
      ],
      "additionalProperties": false,
      "description": "Optional x402 payment proof. Include after a 402 payment_required response."
    }
  },
  "required": [
    "conversationId",
    "message"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_messages(userId, conversationId, page, pageSize)

Get messages from a conversation. Check the `processing` flag — if true, the AI agent is still generating a response.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "The user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me)."
    },
    "conversationId": {
      "type": "string",
      "description": "The conversation ID"
    },
    "page": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Page number (default: 1, max: 100)"
    },
    "pageSize": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100,
      "description": "Items per page (default: 25, max: 100)"
    }
  },
  "required": [
    "conversationId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada45 herramientas