Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_swap_uniswap

Swap tokens through Uniswap V3 via a Factor vault using exact input, with all, percentage, or wei amounts; unavailable on Base—use the OpenOcean swap tool there.

Instructions

Swap tokens through Uniswap V3 via a Factor vault (exact input). NOT available on Base — use factor_swap_openocean on Base. Supports "all", percentage amounts like "50%", or exact amounts in base units (wei). Fee tiers: 100 (0.01%), 500 (0.05%), 3000 (0.3%), 10000 (1%).

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": {
      "vaultAddress": "<vaultAddress>",
      "tokenIn": "<tokenIn>",
      "tokenOut": "<tokenOut>",
      "amount": "<amount>"
    },
    "name": "factor_swap_uniswap"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeNoUniswap V3 fee tier: 100 (0.01%), 500 (0.05%), 3000 (0.3%), 10000 (1%). Default: 3000
amountYesAmount in base units (wei), or "all" to swap entire vault balance, or "50%" for percentage
tokenInYesAddress of the input token to swap from
passwordNoWallet password if encrypted
slippageNoSlippage tolerance as a percentage (e.g., 0.5 for 0.5%). Default: 1
tokenOutYesAddress of the output token to swap to
vaultAddressYesThe vault contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose meaningful traits — chain restriction, supported amount encodings, and fee tier options — but says nothing about token approvals, whether the swap reverts atomically on slippage breach, gas/transaction semantics, or that a vault-scoped write occurs, which matter for an unannotated mutation tool.

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 tight sentences, front-loaded with the core action and immediately followed by the chain exclusion and the amount formats. No redundant or filler wording.

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 7-parameter swap with no output schema and no annotations, the description covers chain scope, amount encoding and fee tiers adequately. It leaves out slippage/approval behavior and error conditions, which are the main remaining gaps an agent would want before executing a value-moving swap.

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 the fee enum, amount encodings, slippage, password and address fields are already fully documented in the schema. The description restates the fee tiers and amount formats but adds the useful nuance that amounts are exact-input; beyond that it contributes little new meaning.

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 (swap), resource (tokens), venue (Uniswap V3), execution context (via a Factor vault) and mode (exact input). This cleanly separates it from factor_swap_openocean (Base chain) and from the exact_output variant whose name encodes the differing mode.

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?

Gives an explicit when-not: not available on Base, with the named alternative factor_swap_openocean. The 'exact input' framing implicitly routes fixed-output swaps to factor_swap_uniswap_exact_output, but the description never names that sibling or states the condition explicitly, so it stops just short of full routing guidance.

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

Deploy Server

Other Tools