Skip to main content
Glama

send_batch

Combine 2 to 20 Solana instructions into one atomic transaction. Supports transfers, token operations, contract calls, and approvals.

Instructions

Send multiple instructions in a single atomic transaction (Solana only, 2-20 instructions).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instructionsYesArray of instruction objects (each is a TRANSFER/TOKEN_TRANSFER/CONTRACT_CALL/APPROVE without the type field). All amount values must be in smallest units (wei/lamports). TOKEN_TRANSFER/APPROVE instructions can include an optional assetId field in the token object for CAIP-19 asset identification.
networkNoTarget network (e.g., polygon-mainnet). Required for EVM wallets; auto-resolved for Solana.
wallet_idNoTarget wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.
gas_conditionNoGas price condition for deferred execution. At least one of max_gas_price or max_priority_fee required.
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the atomic nature, Solana exclusivity, and instruction count range, but does not detail failure modes, gas behavior, or return values. This is adequate but lacks deeper behavioral context.

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

Conciseness5/5

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

The description is a single, well-structured sentence that front-loads the core action and constraints. Every word is necessary; there is no redundancy or fluff.

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

Completeness3/5

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

The tool has a nested input schema and no output schema, but the description does not mention return values or expected output. It covers key input constraints (Solana, size) but misses guidance on what the agent should expect after execution. For a tool of this complexity, this is a notable gap.

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?

Although schema coverage is 100%, the description adds value by explaining the atomic batch context, the allowed instruction types (TRANSFER/TOKEN_TRANSFER etc.), and the unit requirements (wei/lamports). This goes beyond what the schema alone provides, earning a score above baseline.

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 clearly states the tool's purpose: 'Send multiple instructions in a single atomic transaction (Solana only, 2-20 instructions).' It specifies the verb (send), resource (multiple instructions), and key constraints (atomic, Solana only, instruction count range), effectively distinguishing it from siblings like send_token or sign_transaction.

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?

The description provides clear context: it is for Solana only and handles 2-20 instructions atomically. While it does not explicitly state when not to use or suggest alternatives, the constraints are well-defined and help the agent decide when to invoke this tool vs. singe-instruction tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/minhoyoo-iotrust/WAIaaS'

If you have feedback or need assistance with the MCP directory API, please join our Discord server