Skip to main content
Glama

sap perpspad build escrow launch

sap_perpspad_build_escrow_launch

Build an escrow-backed PerpsPad launch (creator-split Option B): derives the trustless escrow PDA from the NEW token mint, swaps the launch creatorAddress to that PDA, and returns the unsigned config + pool + initialize_escrow transactions. The hourly creator_payout then lands on the escrow PDA, which hard-splits 70% to the agent wallet / 30% to the OOBE treasury on-chain — non-custodial, permissionless. The mint keypair is generated by the CALLER (agent flow) and passed as mintKeypairSecret (64-byte array); the config tx materializes that exact mint. Agent wallet (70% destination) is stored immutably. Sign and send: initialize_escrow FIRST (agent wallet signs), then config, then pool. BUILDER tier.

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
legsNoOptional 2-leg basket instead of single underlying.
nameYesCoin display name
quoteNoPairing token: SOL (default), USDC, or CUSTOM
devBuyYesDev-buy in quote units (SOL 0.1-5, USDC 5-5000)
tickerYesCoin ticker, A-Z 0-9 only (e.g. MOON)
imageUrlNoOptional coin image URL
leverageNoLeverage of the backing perp (1..market cap)
directionNoSide of the backing perp
quoteMintNoCUSTOM only: the SPL mint to pair against
twitterUrlNoOptional X/Twitter URL
underlyingNoSingle-perp market backing the coin (e.g. SOL, BTC, OIL). Provide underlying+leverage+direction OR legs.
websiteUrlNoOptional website URL
agentWalletYesAgent wallet that receives the 70% share (stored immutably as the escrow's distribute destination)
payerWalletNoWallet that signs the transactions and pays rent + dev-buy. Usually the same as agentWallet.
quoteDecimalsNoCUSTOM only: decimals hint
mintKeypairSecretYes64-byte secret key of the NEW mint keypair (generated client-side, never persisted server-side). The escrow PDA derives from this mint.

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.4/5.0
Behavior4/5

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

Adds substantial behavior beyond annotations: derives the escrow PDA from the mint, swaps creatorAddress, hard-splits 70/30 on-chain, stores agentWallet immutably, never custodies funds, and specifies the signing order. However, there is internal ambiguity: the tool receives mintKeypairSecret, a 64-byte secret key, while also claiming hosted builders 'never receive keypair bytes.' This is not an annotation contradiction but is confusing.

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 purpose and critical operational constraints are front-loaded, then practical execution guidance follows. It is dense but justified given the tool's complexity; the SAP MCP execution guidance is partly repeated in the schema, but it is relevant enough to keep.

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?

For a 16-parameter paid builder with a transaction-ordering requirement, this description is complete: intent, pricing, routing, signer boundary, split mechanics, keypair handling, and exact signing sequence are all present. The output schema covers the return shape, so no additional return-format explanation is needed.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents every parameter. The description adds valuable semantics for key parameters: mintKeypairSecret is a caller-generated 64-byte keypair used for PDA derivation, and agentWallet is the immutable 70% distribution destination. It does not need to repeat the remaining schema-documented fields.

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?

Uses a specific verb ('Build') plus a specific resource ('escrow-backed PerpsPad launch'), and adds concrete mechanics: deriving the escrow PDA, swapping creatorAddress, and returning three unsigned transactions. This clearly differentiates it from the plain sap_perpspad_build_launch sibling.

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

Usage Guidelines4/5

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

Clear context: paid hosted builder, estimate with sap_estimate_tool_cost first, use sap_payments_call_paid_tool if x402 is unavailable, finalize locally when signing is required. It does not explicitly say 'use this instead of sap_perpspad_build_launch when escrow/70-30 split is wanted,' but the Option B and escrow framing makes the intended use reasonably explicit.

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.