Drift Close Perp Position
drift_closePerpPositionClose a perpetual position on Drift by specifying wallet, market index, and optional sub account ID.
Instructions
Close a perpetual 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 |
|---|---|---|---|
| wallet | Yes | Solana public key (base58) | |
| marketIndex | Yes | Market Index parameter for Drift Close Perp Position. | |
| subAccountId | No | Sub Account ID parameter for Drift Close 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. |