Skip to main content
Glama
@cryptoapis-io/mcp-prepare-transactions

@cryptoapis-io/mcp-prepare-transactions

Official

Prepare unsigned Tezos transaction

prepare_transactions_tezos
Read-onlyIdempotent

Build unsigned Tezos transfers for native XTZ, FA1.2, or FA2 tokens, returning forged operation bytes and fee details so you can sign locally and then broadcast the signed transaction.

Instructions

Build unsigned Tezos operations ready for signing. Returns the forged (unsigned) operation bytes and fee details. After preparing, sign locally and broadcast via broadcast_signed_transaction.

Actions: • native-coins: Build an unsigned native XTZ transfer • fa1-2-tokens: Build an unsigned FA1.2 token transfer • fa2-tokens: Build an unsigned FA2 token transfer

Credits by action (source: OpenAPI): • fa1-2-tokens: 104 • fa2-tokens: 104 • native-coins: 78

Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "network": "<network>"
    },
    "name": "prepare_transactions_tezos"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
amountNoAmount to send, in mutez for native-coins, or in the token's base units for fa1-2-tokens/fa2-tokens (required for all actions)
contextNoOptional context for the request - echoed back in response
networkYesNetwork name
tokenIdNoFA2 token ID - required for fa2-tokens
toAddressNoRecipient's Tezos address (required for all actions)
feePriorityNoFee priority tier - defaults to standard if omitted
fromAddressNoSender's Tezos address (required for all actions)
fromPublicKeyNoSender's public key - required only when the source account is unrevealed
contractAddressNoFA1.2/FA2 token contract address (KT1...) - required for fa1-2-tokens, fa2-tokens

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety burden is partly lifted; the description nonetheless adds real value by disclosing the return payload (forged unsigned bytes plus fee details) and per-action credit costs, with the caveat that actual spend appears in response headers. That cost disclosure is behavior an agent cannot infer from annotations. It does not mention auth/API-key requirements or that unsigned bytes depend on the account counter, which is a minor gap rather than a contradiction of readOnly.

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 and the follow-up step are front-loaded in the first two sentences, before the action list and the cost table. The credits section is somewhat long for indicative-only numbers, but each line (action name plus credit count) carries distinct information an agent may use for cost-aware selection. No filler sentences.

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 10-parameter, no-output-schema tool, the description compensates well by naming the return values and the required follow-up call to broadcast. Required-per-action parameters are covered by the schema at 100% coverage. What is missing is operational context: authentication expectations and whether mainnet actions consume real value, which matters because the tool constructs a value transfer.

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 units, conditionality, and enums are already documented per parameter (mutez vs token base units, tokenId for fa2, contractAddress for token actions). The description's action bullets partially restate that mapping but add no syntax, defaults, or format detail beyond the schema, so the baseline 3 applies.

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 unsigned Tezos operations ready for signing,' and immediately states the output ('forged (unsigned) operation bytes and fee details'). The action enumeration (native-coins, fa1-2-tokens, fa2-tokens) makes the scope precise, and the Tezos chain name distinguishes it from the sibling prepare_transactions_evm/solana/tron tools without needing to open their schemas.

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?

It gives a clear usage context and the downstream step: 'sign locally and broadcast via broadcast_signed_transaction,' which tells the agent this is the middle of a two-call flow and that this tool never signs. The per-action bullets implicitly map use cases to enum values. It stops short of explicit exclusions (e.g., when to prefer a different chain's prepare tool, or how feePriority should be chosen), so it is clear but not fully prescriptive.

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