Skip to main content
Glama
GuessMarket MCP Server

GuessMarket MCP Server

by hifriendbot

build_remove_liquidity_tx

Build an unsigned transaction to remove liquidity from a prediction market by burning LP tokens and returning stablecoin to the provider.

Instructions

Build an unsigned transaction to remove liquidity from a prediction market. Burns LP tokens and returns stablecoin.

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": {
      "market_address": "<market_address>",
      "lp_tokens": "<lp_tokens>",
      "chain_id": "<chain_id>"
    },
    "name": "build_remove_liquidity_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
chain_idYesEVM chain ID (e.g. 8453 for Base, 369 for PulseChain)
lp_tokensYesNumber of LP tokens to burn (e.g. "50.0")
market_addressYesPredictionMarket contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description does useful work by disclosing that the output is an unsigned transaction (not a broadcast one) and that the call is destructive in the sense that LP tokens are burned. It omits important behavioral context such as whether an allowance/approval must be in place first, how the stablecoin amount is determined, and whether any slippage or minimum-output protection is applied.

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 with the action front-loaded and the consequence second; there is no filler or repetition of the schema. An agent can extract the essential contract of the call from the first clause alone.

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 three-required-parameter write-shaping tool with no annotations and no output schema, the definition should clarify the shape of the returned unsigned transaction and any approval prerequisite. "Returns stablecoin" partially conflates the eventual on-chain result with the immediate tool return value, leaving a small ambiguity an agent must resolve on its own.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so chain_id, lp_tokens, and market_address are already well documented, and the baseline would be 3. The description still adds mild meaning by clarifying that lp_tokens are burned and that market_address refers to a liquidity pool on a prediction market rather than a generic contract.

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?

"Build an unsigned transaction to remove liquidity from a prediction market" states a specific verb (build), a specific artifact (unsigned transaction), and the exact resource (liquidity removal), which is naturally distinguishable from build_add_liquidity_tx. The second sentence adds the concrete on-chain effect: LP tokens are burned and stablecoin is returned.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when an agent should call this instead of siblings such as build_add_liquidity_tx or build_approve_tx, nor does it state prerequisites like an existing LP position or a prior approval. Usage is only inferable from the tool name and the words "remove liquidity."

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