Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_lp_remove_liquidity

Remove liquidity from a concentrated Uniswap V3 LP position through a Factor vault on Ethereum; set liquidity to "all" to withdraw the entire position.

Instructions

Remove liquidity from a concentrated liquidity position through a Factor vault. Supports Uniswap V3 (Ethereum). Use liquidity "all" to remove all liquidity.

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>",
      "protocol": "<protocol>",
      "tokenId": "<tokenId>",
      "liquidity": "<liquidity>"
    },
    "name": "factor_lp_remove_liquidity"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenIdYesThe NFT token ID of the LP position
passwordNoWallet password if encrypted
protocolYesThe LP protocol to use
liquidityYesAmount of liquidity to remove, or "all" to remove everything
vaultAddressYesThe vault contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it never states that this is a state-changing on-chain transaction, what authorization is required, whether the position NFT is burned when liquidity is set to "all", or what is returned. Only the protocol scope and the "all" special value are disclosed.

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?

Three short sentences with the core action front-loaded and no filler. The final sentence duplicates schema content, which is the only wasted line.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutation tool on a DeFi protocol with no annotations and no output schema, so the description should explain authorization needs, transaction lifecycle, and post-removal state. It covers only protocol support, leaving the agent without enough to call it safely or interpret results.

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 five parameters are already documented, and the description's note that liquidity accepts "all" merely restates the schema's own description of that field. No additional syntax, formatting, or edge-case meaning is added beyond the schema.

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?

The description states a specific verb and resource: remove liquidity from a concentrated liquidity position held via a Factor vault. The verb alone distinguishes it from the sibling factor_lp_add_liquidity, though no sibling is named explicitly.

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?

It scopes usage to Uniswap V3 on Ethereum, which tells an agent when the tool is applicable, but gives no guidance on prerequisites such as vault manager permissions, token approvals, or when to prefer factor_lp_collect_fees over a full removal.

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