Skip to main content
Glama
GuessMarket MCP Server

GuessMarket MCP Server

by hifriendbot

build_claim_winnings_tx

Build an unsigned transaction to claim winnings from a resolved prediction market and receive stablecoin; use after market resolution to collect your payout.

Instructions

Build an unsigned transaction to claim winnings from a resolved prediction market. Only works after the market has been resolved. 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>",
      "chain_id": "<chain_id>"
    },
    "name": "build_claim_winnings_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.7/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 it does disclose three meaningful traits: the transaction is unsigned (must be signed/broadcast separately), the market must already be resolved, and the claimed asset is a stablecoin. It does not describe the returned transaction object, gas handling, or whether a prior approval is needed, which leaves notable behavioral gaps for a write-path builder.

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?

Three short sentences, front-loaded with the action and followed by the precondition and the return asset. Every sentence carries information and there is no filler.

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 two-parameter, no-annotation, no-output-schema builder, the definition covers what it does and when it is valid but leaves the return shape thin — 'Returns stablecoin' does not tell the agent what fields the unsigned transaction object contains. The precondition and unsigned nature are the critical pieces and are present, so it is adequate rather than complete.

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 coverage is 100% and both parameters carry descriptions with a concrete example (chain ID 8453 for Base, 369 for PulseChain) and an address pattern. The description adds no parameter-level meaning beyond the schema, 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 ('Build an unsigned transaction') and a specific resource ('claim winnings from a resolved prediction market'), which clearly separates it from the other build_*_tx siblings. It stops short of naming an alternative tool to use when the market is not resolved, so it is clear but not maximally differentiated.

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

Usage Guidelines4/5

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

The gating condition is explicit: 'Only works after the market has been resolved,' which tells the agent when this call is valid. There is no guidance on what to do otherwise (e.g., check resolution state via get_market first), so exclusions and alternatives are absent.

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