Skip to main content
Glama

remove_liquidity_txn

Build an unsigned Humble Swap transaction to remove liquidity by burning LP tokens, returning base64-encoded data for wallet signing.

Instructions

Build unsigned transactions to remove liquidity from a Humble Swap 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": {
      "poolId": "<poolId>",
      "lpAmount": "<lpAmount>",
      "sender": "<sender>"
    },
    "name": "remove_liquidity_txn"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/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 it does disclose two important traits: the transactions are unsigned (no state change occurs from calling it) and the return is base64-encoded. It says nothing about whether LP approval is needed, whether one or multiple transactions are returned, or what happens if lpAmount exceeds the position.

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?

Two sentences, front-loaded with the action and followed by the return contract. No filler, no restatement of the tool name.

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 three-parameter transaction builder with full schema coverage and no output schema, the description covers purpose and return format adequately. A note on whether the response contains one or several transactions and any approval prerequisite would close the remaining gap.

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%, with poolId, sender, and lpAmount all documented including the human-readable units note, so the schema does the heavy lifting. The description adds no additional parameter meaning, which is the expected baseline here.

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 and resource: 'Build unsigned transactions to remove liquidity from a Humble Swap pool,' which an agent can contrast with add_liquidity_txn and swap_txn by the 'remove liquidity' scope. It stops short of explicitly naming those siblings, 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?

The phrase 'for signing' implies the downstream workflow (this tool produces, something else submits), but there is no explicit statement of when to pick this over add_liquidity_txn or swap_txn, and no prerequisites such as LP token balance or approval are mentioned. Usage is implied rather than guided.

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