sap adrena build modify position
sap_adrena_build_modify_positionBuild an unsigned transaction to modify an existing Adrena position by adding collateral. Uses openOrIncreasePosition which atomically adds collateral to an existing position. The leverage parameter can be changed to adjust the position risk. Returns transactionBase64 only after policy, oracle-readiness, balance, and builder-side RPC simulation pass. Show approval only when safeToApprove=true and approvalBlocked=false; otherwise do not 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 |
|---|---|---|---|
| side | Yes | Position side. | |
| owner | Yes | Position owner wallet public key (base58). | |
| leverage | Yes | New leverage multiplier. Pass the same value to keep current leverage, or a different value to change it. | |
| principalToken | Yes | Asset of the position. | |
| collateralToken | Yes | Collateral token. | |
| collateralAmount | Yes | Additional collateral amount in human-readable units to add to the 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. |