Skip to main content
Glama

magicblock transfer

magicblock_transfer

Build an unsigned SPL token transfer through an Ephemeral Rollup. Use this only when private visibility or an ephemeral balance is explicitly requested. For an ordinary public base-to-base wallet transfer, use sap_build_spl_transfer instead; it detects legacy SPL versus Token-2022 from the mint on-chain. Supports delayed settlement, split transfers, and gasless mode. Then use sap_preview_transaction, sap_sign_transaction, and sap_submit_signed_transaction — or use sap_payments_finalize_transaction for 1-call preview+sign+submit (hosted mode). Builder fee applies.

SAP MCP execution guidance: Intent: local-signer write workflow. 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
toYesRecipient wallet pubkey
fromYesSender wallet pubkey
memoNoOptional memo appended to the transaction
mintYesSPL mint pubkey
splitNoPrivate only. Number of queue entries to split across (1-15, default 1)
amountYesBase-unit amount to transfer (integer, minimum 1)
legacyNoSkip lookup-table compilation, return a legacy transaction (default false)
clusterNoCluster: 'mainnet', 'devnet', or custom RPC URL
gaslessNoWhen true, uses configured sponsor as fee payer (default false)
authTokenNoBearer token from login (required for private transfers)
toBalanceYesWhere the recipient should receive funds
validatorNoOptional ER validator pubkey
maxDelayMsNoPrivate only. Latest (ms) the queued transfer may settle (<= 600000)
minDelayMsNoPrivate only. Earliest (ms) the queued transfer may settle. Default '0'
visibilityYes'public' = transparent SPL transfer, 'private' = routed through Private ER with delayed+split settlement
clientRefIdNoPrivate only. Encrypted client reference ID for payment confirmation
fromBalanceYesWhere the sender's balance is held
initIfMissingNoInitialize transfer queue if missing (default true)
initAtasIfMissingNoInitialize recipient ATA if missing (default true)
initVaultIfMissingNoInitialize vault if missing (default false). WARNING: when legacy=true, setting this to true can exceed the 1232-byte legacy transaction limit and produce TRANSACTION_TOO_LARGE errors. Prefer v0 (legacy=false) when vault init is needed.

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. Changed2 schema fields changed
    • addedInput schema / description
      Added value: +"magicblock transfer input schema. Intent: local-signer write workflow. 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. Use exact field names from this schema; do not guess aliases or include private key material."
    • changedInput schema / properties / initVaultIfMissing / description
      Previous value: -"Initialize vault if missing (default false)"New value: +"Initialize vault if missing (default false). WARNING: when legacy=true, setting this to true can exceed the 1232-byte legacy transaction limit and produce TRANSACTION_TOO_LARGE errors. Prefer v0 (legacy=false) when vault init is needed."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, so the write/non-idempotent nature is known. The description adds substantial context beyond that: it is a paid builder (builder fee applies), it produces unsigned transactions requiring local signing, and the signer boundary (hosted builders never receive keypair bytes; value-moving results must be finalized locally). This is exactly the kind of operational behavior an agent needs before calling, so it earns a 4. Minor deduction only because the SAP execution guidance block is template-like and not tool-specific.

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 core purpose, scoping, and alternative are front-loaded in the first two sentences, which are efficient. The follow-up workflow and fee note are useful, and the execution guidance block is informative despite being boilerplate. It runs long (roughly 140 words) but every sentence earns its place; a small deduction for the length of the appended SAP guidance section that applies broadly.

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

Completeness4/5

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

For a complex 20-parameter, 7-required write builder with an output schema, the description is thorough: purpose, selection criteria, named alternative, feature support, follow-up transaction pipeline, pricing, and signer boundary are all covered. The 100% schema coverage and presence of an output schema relieve the description of documenting params and return shape. Nearly complete — only tool-specific failure modes beyond initVaultIfMissing go unmentioned.

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 coverage is 100%, so the baseline is 3 — the schema already documents all 20 parameters including enum meanings for visibility/fromBalance/toBalance and the TRANSACTION_TOO_LARGE warning on initVaultIfMissing. The description adds only light value by linking features (delayed settlement, split transfers, gasless mode) to their corresponding parameters (maxDelayMs, split, gasless), but no syntax or format detail beyond the schema. Baseline 3 is correct.

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 opens with a specific verb and resource: 'Build an unsigned SPL token transfer through an Ephemeral Rollup.' It then explicitly names the sibling it is not — sap_build_spl_transfer — and the exact condition (private visibility or ephemeral balance) that selects this tool. An agent can disambiguate it without opening any schema.

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?

Gives an explicit when-to-use ('only when private visibility or an ephemeral balance is explicitly requested') and an explicit when-not-to-use with the named alternative ('For an ordinary public base-to-base wallet transfer, use sap_build_spl_transfer instead'). It also routes follow-up steps (sap_preview_transaction, sap_sign_transaction, sap_submit_signed_transaction, sap_payments_finalize_transaction). Nothing is left to inference.

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.