Skip to main content
Glama

remove_liquidity_txn

Build unsigned transactions to remove liquidity from a Tinyman v2 pool on Algorand, returning base64-encoded transactions for signing.

Instructions

Build unsigned transactions to remove liquidity from a Tinyman v2 pool on Algorand. 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": {
      "asset1Id": "<asset1Id>",
      "asset2Id": "<asset2Id>",
      "poolTokenAmount": "<poolTokenAmount>",
      "sender": "<sender>"
    },
    "name": "remove_liquidity_txn"
  }
}

Input Schema

NameRequiredDescriptionDefault
senderYesSender wallet address
asset1IdYesFirst asset ID (use 0 for ALGO)
asset2IdYesSecond asset ID
slippageNoAllowed slippage percentage (default 0.5)
poolTokenAmountYesAmount of pool tokens to burn in human-readable units

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 full burden, and it does disclose the most important behavioral trait: the tool builds unsigned transactions and returns them base64-encoded rather than submitting anything. It says nothing about prerequisites (pool token balance, ALGO for fees, asset opt-ins), whether one or multiple transactions are returned, slippage protection limits, or failure modes for an unconfirmed pool.

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, zero waste, with the operation stated first and the return behavior second. Nothing is buried or redundant.

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 five-parameter transaction-builder with a fully documented schema and no output schema, the description covers purpose and return shape adequately. It is slightly thin on the signing/submission handoff and on any preconditions, which matters given zero annotation coverage.

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 every parameter including the ALGO sentinel (asset1Id=0) and the human-readable poolTokenAmount units is already documented. The description adds no interpretation beyond the schema, which is acceptable at this coverage level but not additive.

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 names a concrete verb ('Build unsigned transactions') and resource ('remove liquidity from a Tinyman v2 pool on Algorand'), which cleanly separates it from the sibling add_liquidity_txn by direction of the operation. It stops short of explicitly naming any alternative, so it does not meet the strictest sibling-differentiation bar, but the purpose 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?

No explicit when-to-use or when-not-to-use guidance, and no mention of the alternatives (e.g. add_liquidity_txn, swap_txn). The phrase 'transactions ... for signing' implies the workflow step (build here, then sign/submit elsewhere), but the agent has to infer that sequencing rather than being told.

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