Skip to main content
Glama

add_liquidity_txn

Build unsigned transactions to add liquidity to a Humble Swap pool and return base64-encoded transactions for signing.

Instructions

Build unsigned transactions to add liquidity to 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>",
      "amountA": "<amountA>",
      "amountB": "<amountB>",
      "sender": "<sender>"
    },
    "name": "add_liquidity_txn"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolIdYesPool application ID
senderYesSender wallet address
amountAYesAmount of token A in human-readable units
amountBYesAmount of token B in human-readable units

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key behavioral trait: it builds UNSIGNED transactions (does not execute) and returns base64-encoded transactions for signing. It omits permissions, error behavior, and whether multiple transactions may be returned.

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 tight sentences with zero waste; the core purpose is front-loaded and the return format follows immediately.

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 transaction-builder with no output schema and four fully documented params, the description covers the essentials (what it builds, that it is unsigned and base64 for signing). It could say more about when to choose it over sibling transaction tools.

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 four parameters are documented in the schema. The description adds no additional meaning beyond what the schema already provides, matching the baseline of 3.

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 uses a specific verb and resource: 'Build unsigned transactions to add liquidity to a Humble Swap pool.' This inherently distinguishes the tool from remove_liquidity_txn and swap_txn, though it does not name alternatives 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?

Usage is implied by the purpose ('add liquidity'), but there is no explicit guidance on when to use this versus remove_liquidity_txn, swap_txn, or the deposit_* variants, and no prerequisites are mentioned.

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