Skip to main content
Glama
GuessMarket MCP Server

GuessMarket MCP Server

by hifriendbot

build_add_liquidity_tx

Builds an unsigned transaction to add stablecoin liquidity to a prediction market and return LP tokens; approve the stablecoin first.

Instructions

Build an unsigned transaction to add liquidity to a prediction market. Requires prior stablecoin approval. Returns LP tokens.

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>",
      "amount": "<amount>",
      "chain_id": "<chain_id>"
    },
    "name": "build_add_liquidity_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesStablecoin amount to add (e.g. "100")
chain_idYesEVM chain ID (e.g. 8453 for Base, 369 for PulseChain)
market_addressYesPredictionMarket contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.5/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 does disclose two valuable traits: the transaction is unsigned (not broadcast) and an approval must precede it. It omits what happens if allowance is insufficient, whether the chain must match a known network, and how the result is signed/submitted, so disclosure is partial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with no filler, and the core purpose is front-loaded ahead of the prerequisite and outcome. Efficient, though the final sentence is ambiguous enough that it trades clarity for brevity.

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-required-parameter transaction builder with no annotations, the description covers purpose, a hard prerequisite, and an outcome. The weak spot is 'Returns LP tokens', which blurs whether the tool returns an unsigned tx calldata or LP tokens, and no output schema exists to disambiguate.

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%, including amount units, chain_id examples, and the market address pattern, so the baseline is 3. The description adds only the general note that the amount is a stablecoin sum tied to a prior approval, with no parameter-specific detail beyond the schema.

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 ('Build') and resource ('unsigned transaction to add liquidity to a prediction market'), which inherently contrasts with the sibling build_remove_liquidity_tx. It stops short of naming or routing to any alternative, so it lands at clear-but-not-differentiating.

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?

'Requires prior stablecoin approval' is a genuine precondition an agent must satisfy, implicitly pointing at build_approve_tx. However, there is no explicit when-to-use guidance versus build_buy_with_approval_tx or any statement about when this tool is not appropriate.

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