sap adrena build open commodity long
sap_adrena_build_open_commodity_longBuild an unsigned transaction to open a long position on a synthetic commodity (XAU, XAG, WTI) on Adrena only after policy, balance, oracle-readiness, and simulation checks pass. Uses the commodities pool with USDC collateral. Returns transactionBase64 only when safeToApprove=true and approvalBlocked=false; if blocked diagnostics are returned, do not show approval or call finalize.
SAP MCP execution guidance: Intent: hosted unsigned transaction builder. Pricing: paid builder; estimate first, then pay/build and finalize unsigned transactions locally when returned. Routing: paid hosted call; call sap_estimate_tool_cost first, then use sap_payments_call_paid_tool if the runtime cannot handle x402 natively. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Position owner wallet public key (base58). | |
| leverage | Yes | Leverage multiplier. | |
| priceUsd | No | Optional limit price in USD. | |
| principalToken | Yes | Commodity to trade. | |
| collateralAmount | Yes | USDC collateral amount in human-readable units. |
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. |