Skip to main content
Glama

remove_liquidity_txn

Build an unsigned Nomadex pool transaction that burns LP tokens to remove liquidity and returns base64-encoded transactions for signing.

Instructions

Build unsigned transactions to remove liquidity from a Nomadex pool. Returns base64-encoded transactions for signing.

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": {
      "poolAppId": "<poolAppId>",
      "lpAmount": "<lpAmount>",
      "sender": "<sender>"
    },
    "name": "remove_liquidity_txn"
  }
}

Input Schema

NameRequiredDescriptionDefault
senderYesSender wallet address
lpAmountYesAmount of LP tokens to burn in human-readable units
poolAppIdYesPool application ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does add value by disclosing that the output is unsigned and base64-encoded rather than submitted on-chain, implying a separate signing step. It does not say whether one or many transactions come back, whether fees or minimum received amounts are computed, or what happens if lpAmount exceeds the held balance.

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 compact sentences with the core action front-loaded and the return format immediately after; nothing is padded. Slightly terse given the absence of annotations, but structurally clean.

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-parameter, fully-required, fully-described tool with no output schema, the definition covers the action and the shape of the return value, which is what an agent needs to call it. Remaining gaps, such as whether multiple transactions can be returned or how amounts are computed, are secondary for a transaction-builder.

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 coverage is 100%, so all three parameters (sender, lpAmount, poolAppId) are already documented in the schema with units called out ('human-readable units' for LP tokens). The description adds no meaning beyond that, so the baseline of 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?

States a specific verb (build unsigned transactions) and resource (remove liquidity from a Nomadex pool), which cleanly contrasts with the sibling add_liquidity_txn by direction of the operation. It does not explicitly name a sibling, but the action is unambiguous.

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?

Usage is implied rather than stated: an agent can infer this is for exiting an LP position, but the description gives no prerequisites (pool must exist, LP balance needed) and no explicit when-not or alternative routing. Adequate but leaves the agent to infer context.

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