Skip to main content
Glama

prepare_signing

Read-onlyIdempotent

Synthesizes the local CLI signer invocation for one step of a swap_build plan. Does not call the Vurto backend — this only assembles the payload. You (the agent) do not need a private key and must never ask for one in chat: signing happens locally on the user's machine. RUN the command yourself as a background task (it blocks until the user approves/rejects/times out, then prints one JSON line and exits) and react to its exit — never ask the user "did you sign?". EVM supports "approve"/"transaction" steps (send tx.to/tx.data on-chain) and "signature" steps (sign step.typedData off-chain, EIP-712 — a CoW order; no gas, no transaction, no hash). expected_keys in the response tells you which result field to read: txHash for the first two, signature for the third. Solana has no steps[] and no approve: pass chainId "solana-mainnet" and step {transaction: build.transaction, executionRef: build.executionRef}. The response returns a different signer (Solana keys are not EVM keys) with the same shape, and expected_keys is signedTransaction — POST it to /v1/svm/execute, which broadcasts it and returns the signature.

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": {
      "buildId": "<buildId>",
      "walletAddress": "<walletAddress>",
      "chainId": "<chainId>",
      "step": "<step>"
    },
    "name": "prepare_signing"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepYesEVM: one entry from swap_build's steps[]. Solana: {transaction, executionRef} from the build.
buildIdYesThe buildId of the plan you are signing: swap_build, swap_refresh, invoice_pay, invoice_analysis_pay, payout_batch, payout_charge or destination_challenge.
chainIdYesEVM: integer from GET /v1/chains (1, 10, 56, 100, 137, 8453, 42161, 43114, 130). Solana: string from GET /v1/svm/chains ("solana-mainnet").
invoiceIdNoWhen invoice_pay returned method "swap": the invoice id, so the next step points to invoice_report_payment. Record the swap with report_execution too. Not for "swap_then_transfer": that swap goes to your own wallet, and the payment is the next plan.
walletAddressYesThe wallet the plan was built for. The signer refuses to sign if the connected wallet does not match. On Solana this is base58 and CASE-SENSITIVE: lowercasing it produces a different, non-existent address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / buildId / description
      Previous value: -"From a prior swap_build/swap_refresh response."New value: +"The buildId of the plan you are signing: swap_build, swap_refresh, invoice_pay, invoice_analysis_pay, payout_batch, payout_charge or destination_challenge."
    • addedInput schema / properties / invoiceId
      Added value: +{
      +  "description": "When invoice_pay returned method \"swap\": the invoice id, so the next step points to invoice_report_payment. Record the swap with report_execution too. Not for \"swap_then_transfer\": that swap goes to your own wallet, and the payment is the next plan.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, and the description is consistent with them by emphasizing 'only assembles the payload.' It adds substantial context beyond the annotations: the returned command blocks until approve/reject/timeout, prints exactly one JSON line, and the agent must react to the exit code rather than polling the user.

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?

Front-loads the core purpose and stays dense with operational detail; each sentence carries information. It is long and the EVM/Solana branching is packed into running prose, which slightly hurts scanability but not correctness.

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?

There is no output schema, and the description compensates by explaining the response shape (one JSON line, expected_keys driving which field to read) and the follow-up action for Solana (POST signedTransaction to /v1/svm/execute). Combined with the schema's documented parameters, an agent has everything needed to call and act on this tool.

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 baseline is 3, but the description adds real meaning on top: it maps expected_keys to the correct result field (txHash for approve/transaction, signature for signature, signedTransaction for Solana) and explains the Solana parameter shape (chainId 'solana-mainnet', step {transaction, executionRef}) that the schema alone conveys less clearly.

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?

States a specific verb+resource ('synthesizes the local CLI signer invocation for one step of a swap_build plan') and immediately bounds the action ('this only assembles the payload'). It also differentiates itself from siblings by naming swap_build as the source plan and /v1/svm/execute as the downstream step.

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 explicit when/when-not guidance: use it on a step produced by swap_build, do not call the backend, do not ask the user for a private key. It further prescribes the invocation pattern (run as a background task), the blocking approval flow, and what to do after exit, leaving little 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.

Resources