Drift Open Perp Position
drift_openPerpPositionOpen a perpetual futures position on Drift by specifying market index, direction, size, leverage, and order type. Supports reduce-only and sub-account parameters.
Instructions
Open a perpetual futures position on Drift. SAP MCP context: This Synapse AgentKit tool is served beside the sap_* SDK tools. Use sap_agent_identity_plan, sap_payments_register_agent, sap_payments_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. |