Skip to main content
Glama

FarmDash Agent OS

confirm_solana_swap

Idempotent

Confirm and reconcile a Solana swap the customer wallet has already broadcast. Verifies the server-authored preparation, wallet binding, inclusion, required signer, exact message digest and economic deltas. "confirmed" without finality is not settlement; replaying the same signature is idempotent. FarmDash never signs or broadcasts.

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": {
      "preparationId": "<preparationId>",
      "wallet": "<wallet>",
      "txSignature": "<txSignature>"
    },
    "name": "confirm_solana_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesBase58 Solana public key that signed the preparation. Must match the prepared wallet.
txSignatureYesBase58 Solana transaction signature that exists only after the wallet broadcast.
preparationIdYespreparationId returned by prepare_solana_swap.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by enumerating the actual verification gates (server-authored preparation, wallet binding, inclusion, required signer, exact message digest, economic deltas) and by warning that '"confirmed" without finality is not settlement'. The idempotency note on replay is consistent with idempotentHint=true, and the never-signs-or-broadcasts statement is real behavioral context an agent could not infer from structured fields alone.

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?

Three sentences, front-loaded with the action and post-broadcast precondition, followed by the verification checklist and then the settlement/idempotency caveat. No filler; every clause carries actionable meaning.

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 3-required-parameter confirmation tool with no output schema, the description covers preconditions, checks performed, and the meaning of a 'confirmed' state. It does not describe what the response contains when verification fails (e.g., which check failed and how it is surfaced), which is the remaining gap given there is no output schema.

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 all three parameters (preparationId, wallet, txSignature) are already documented in the schema. The description adds the framing that the preparation must be server-authored and the wallet bound to it, but gives no parameter-level syntax 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb+resource+scope: "Confirm and reconcile a Solana swap the customer wallet has already broadcast." It implicitly separates itself from prepare_solana_swap (which authored the preparation) and from the autonomous-wallet variant by specifying 'customer wallet', but it never names those siblings explicitly.

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 trigger condition is clear: call this only after the wallet has already broadcast, using the preparation produced by prepare_solana_swap (referenced in the schema). 'FarmDash never signs or broadcasts' fixes the boundary, though no explicit when-not case or named alternative is given.

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