Skip to main content
Glama
GuessMarket MCP Server

GuessMarket MCP Server

by hifriendbot

build_buy_with_approval_tx

Creates two unsigned transactions—stablecoin approval and share purchase—so buyers can sign and send them in the required order to buy YES or NO shares.

Instructions

Build TWO unsigned transactions: (1) approve stablecoin spending and (2) buy shares. Convenience tool that combines approve + buyShares. Both must be signed and sent in order.

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

Input Schema

NameRequiredDescriptionDefault
amountYesStablecoin amount to spend (e.g. "10.5")
outcomeYesMarket outcome: YES or NO
chain_idYesEVM chain ID (e.g. 8453 for Base, 369 for PulseChain)
min_sharesNoMinimum shares to accept (slippage protection)0
market_addressYesPredictionMarket contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it does cover the most important trait: the output is unsigned and ordered, so the agent must sign and broadcast sequentially. It omits other meaningful behavior, such as whether the approval is exact or unlimited, what happens if an allowance is already present, or whether either call can fail independently.

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 most important fact (two transactions), with zero filler. The ordering constraint is stated in the same breath rather than buried.

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 builder with a fully documented schema and no output schema, the description supplies the essential contract: two unsigned artifacts, ordered, signed then sent. It stops short of describing the return payload shape (e.g. an array of two transaction objects) or failure semantics, which would fully close the loop.

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% — every parameter including amount, outcome, chain_id, min_shares, and market_address is documented inline. The description adds no parameter-level meaning of its own, so the baseline of 3 applies.

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 TWO unsigned transactions') and enumerates exactly what the two are: an approval and a share purchase. 'Convenience tool that combines approve + buyShares' implicitly separates it from the single-purpose build_approve_tx and build_buy_shares_tx siblings, though it never names them.

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?

It gives one real usage rule — both transactions must be signed and sent in order — which is the critical operational constraint. It does not say when to prefer this combined tool over calling the individual build_approve_tx / build_buy_shares_tx tools, nor when it should be avoided (e.g. when allowance already exists).

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