Skip to main content
Glama

add_liquidity_txn

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

Instructions

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

Input Schema

NameRequiredDescriptionDefault
senderYesSender wallet address
amount1YesAmount of first asset in human-readable units
amount2YesAmount of second asset in human-readable units
asset1IdYesFirst asset ID (use 0 for ALGO)
asset2IdYesSecond asset ID
slippageNoAllowed slippage percentage (default 0.5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description does useful work by disclosing that the output is unsigned and base64-encoded for signing, which tells the agent this is a non-custodial, build-only step. It omits other behavioral facts an agent would want: whether transactions form an atomic group, how slippage affects constructed amounts, and what fees or prerequisites apply.

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 short sentences, front-loaded with the action and chain, followed by the return format. Nothing is redundant or padded.

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

Completeness3/5

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

For a six-parameter, five-required transaction-building tool with no annotations and no output schema, the description covers the core action and output type but leaves gaps around transaction grouping, signing flow, and pool/asset prerequisites. It is adequate to start a call but not complete for correct downstream use.

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 each of the six parameters documented including ALGO-as-0 and the default slippage of 0.5. The description adds no meaning beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 — building unsigned transactions to add liquidity to a Tinyman v2 pool on Algorand — and distinguishes itself from remove_liquidity_txn and swap_txn by the 'add liquidity' action. It also names the return artifact (base64-encoded transactions), so an agent knows exactly what it produces.

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: call this when you want to supply assets to a pool rather than remove them or swap. There is no explicit when-to-use guidance, no mention of prerequisites such as pool existence, asset opt-in, or balance checks, and no stated alternatives.

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