Skip to main content
Glama

sap phoenix build deposit

sap_phoenix_build_deposit

Build an unsigned USDC deposit transaction into a Phoenix trader account. Returns transactionBase64 for browser approval. Requires an ACTIVATED trader: check sap_phoenix_get_trader_state first — if state is "frozen" or depositCollateral.immediate=false, run the activation flow (sap_phoenix_build_onboard_trader → sign → sap_phoenix_submit_onboard_trader) before depositing, or this build simulates CapabilityDenied.

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

TableJSON Schema
NameRequiredDescriptionDefault
authorityYesTrader authority public key (base58)
amountUsdcYesAmount in raw USDC units (1 USDC = 1000000)
traderPdaIndexNoTrader PDA Index parameter for sap phoenix build deposit.
traderSubaccountIndexNoTrader Subaccount Index parameter for sap phoenix build deposit.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesMCP content blocks returned to the caller.
isErrorNoTrue when the tool result represents an application-level error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations, it discloses the failure mode ('build simulates CapabilityDenied'), the unsigned/local-signing boundary, the paid nature of the builder, and the expected return format. The description aligns with readOnlyHint=false, idempotentHint=false, and destructiveHint=false without contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and prerequisites, followed by clearly labeled execution guidance. The only flaw is that the 'SAP MCP execution guidance' block is duplicated nearly verbatim in the input schema description, adding redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers what the tool does, its prerequisites, the activation fallback, failure behavior, pricing/routing, signer boundary, and return value. With an output schema present, nothing essential is missing for an agent to invoke this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents authority, amountUsdc, traderPdaIndex, and traderSubaccountIndex. The description adds context about USDC deposit semantics but does not meaningfully explain parameters beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Build an unsigned USDC deposit transaction into a Phoenix trader account.' It also identifies the return value ('transactionBase64 for browser approval'), clearly distinguishing this builder from the many other sap_phoenix_build_* siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit preconditions: check sap_phoenix_get_trader_state first and run the activation flow if the trader is frozen or depositCollateral.immediate is false. It also names the paid routing alternatives (sap_estimate_tool_cost, sap_payments_call_paid_tool) and tells the agent to finalize locally when signing is required.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.