Skip to main content
Glama
GuessMarket MCP Server

GuessMarket MCP Server

by hifriendbot

build_approve_tx

Build an unsigned ERC-20 approve transaction so a prediction market can spend your stablecoin. Sign and broadcast it before buying shares or adding liquidity.

Instructions

Build an unsigned ERC-20 approve transaction to let a prediction market spend your stablecoin. Must be signed and broadcast before buying shares or adding liquidity.

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_approve_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to approve (e.g. "100"). Use "max" for unlimited approval.
chain_idYesEVM chain ID (e.g. 8453 for Base, 369 for PulseChain)
market_addressYesPredictionMarket contract to approve as spender

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description still discloses the critical behavioral traits: the transaction is unsigned (not broadcast), and the caller must sign and broadcast it themselves before dependent actions. It does not cover what happens to a pre-existing allowance when re-approving, gas implications, or the shape of what is 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 sentences, zero filler, and the most important constraint (unsigned, needs signing) is placed after a clear purpose statement. Nothing is redundant or buried.

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 3-parameter, no-annotation, no-output-schema mutation builder, the description covers purpose and lifecycle but not what the call yields (presumably a serialized unsigned transaction) or any detail about approval semantics. Adequate to start, but an agent still needs assumptions about the return value.

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% and the schema already explains amount, chain_id, and market_address including the 'max' sentinel. The description adds no parameter-level meaning, so the baseline 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?

States a specific verb and resource ('Build an unsigned ERC-20 approve transaction') plus the business reason ('let a prediction market spend your stablecoin'). It does not differentiate from the very similar sibling build_buy_with_approval_tx, which an agent would need to choose between.

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?

The phrase 'Must be signed and broadcast before buying shares or adding liquidity' implies when this step is needed, but it is stated as a prerequisite rather than a routing rule. No exclusion or comparison against build_buy_with_approval_tx, which appears to combine approval with the purchase.

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