Drift Open Perp Position
drift_openPerpPositionOpens a perpetual futures position on Drift with specified market, direction, size, and optional leverage, limit price, or reduce-only flag.
Instructions
Open a perpetual futures position on Drift. SAP MCP context: This Synapse AgentKit tool is served beside the sap_* SDK tools. Use sap_register_agent, sap_update_agent, and sap_publish_tool_by_name when the capability should become part of an on-chain SAP agent profile or tool registry entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Position size in base token units | |
| price | No | Limit price (required for limit orders) | |
| wallet | Yes | Solana public key (base58) | |
| leverage | No | Leverage multiplier (max 20x) | |
| direction | Yes | Direction parameter for Drift Open Perp Position. | |
| orderType | No | Order Type parameter for Drift Open Perp Position. | |
| reduceOnly | No | Reduce Only parameter for Drift Open Perp Position. | |
| marketIndex | Yes | Drift perp market index (0=SOL-PERP, 1=BTC-PERP, etc.) | |
| subAccountId | No | Sub Account ID parameter for Drift Open Perp Position. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |