Skip to main content
Glama

FarmDash Agent OS

confirm_swap

Idempotent

Confirm a compatibility swap only through FarmDash server verification of the owning session, canonical-chain receipt, exact committed fee asset/payer/recipient/amount, and required finality. A caller-supplied tx hash alone is not confirmation.

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": {
      "sessionId": "<sessionId>",
      "agentAddress": "<agentAddress>",
      "sessionToken": "<sessionToken>",
      "feeEventId": "<feeEventId>",
      "txHash": "<txHash>"
    },
    "name": "confirm_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
txHashYes
sessionIdYes
feeEventIdYes
agentAddressYes
sessionTokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare a non-read-only, idempotent, non-destructive, open-world operation, and the description adds real context on top: the server checks the owning session, canonical-chain receipt, committed fee asset/payer/recipient/amount, and finality. It stops short of saying what happens when verification fails (error vs. pending state) or what the response contains.

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?

Two sentences, front-loaded with the confirmation requirement and followed by the anti-pattern warning. Dense but every clause carries verification detail; the long noun list of checked fields is functional rather than padding.

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?

For a 5-required-parameter mutation with no output schema and no parameter descriptions, the definition explains the verification contract well but omits return behavior, failure semantics, and the distinction from sibling confirm tools. Adequate to avoid misuse, not complete enough to predict outcomes.

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 0%, so the description must carry the burden, and it partially does by mapping concepts to parameters: 'owning session' points at sessionId/sessionToken/agentAddress, 'canonical-chain receipt' at txHash, and the committed fee check at feeEventId. It never names the parameters directly or specifies token/address formats, so an agent must still infer the binding.

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?

States a specific verb ('Confirm') and resource ('compatibility swap') and frames it as a server-verified action rather than a naive client acknowledgement. It does not name or distinguish itself from the sibling confirm_autonomous_swap / confirm_solana_swap variants, leaving the agent to infer which confirmation tool applies to which swap type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The clause 'A caller-supplied tx hash alone is not confirmation' usefully flags a misuse pattern and implies the prerequisite that verification must go through this call. However, there is no explicit when-to-use vs. the other confirm_* siblings, and no stated ordering relative to execute_swap or get_swap_quote beyond what an agent must guess.

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