Skip to main content
Glama
GuessMarket MCP Server

GuessMarket MCP Server

by hifriendbot

get_allowance

Check how much stablecoin a prediction market contract is approved to spend from a wallet before buying shares, so you know whether an approve transaction is required.

Instructions

Check how much stablecoin a prediction market contract is approved to spend from a wallet. Use this before buying shares to see if an approve transaction is needed.

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

Input Schema

NameRequiredDescriptionDefault
walletYesWallet address (token owner)
chain_idYesEVM chain ID (e.g. 8453 for Base, 369 for PulseChain)
market_addressYesPredictionMarket contract address (spender)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. 'Check' implies a read-only query and the approve/buy framing adds useful process context, but it never explicitly states read-only semantics, whether the call has side effects, or how the value is expressed (raw units vs decimal amount).

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, both earning their place: the first defines the operation, the second defines when to call it. The guidance is front-loaded with no redundant or filler wording.

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 simple three-parameter read tool with no output schema, the description covers purpose, the wallet/spender relationship, and the decision it supports. The remaining gap is return-value semantics (units, zero vs max-uint representation), which matters because there is no output schema to fall back on.

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 the schema already documents all three parameters, including wallet as token owner and market_address as spender. The description only restates that relationship ('approved to spend from a wallet'), adding no format, unit, or edge-case 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 and resource: check the stablecoin allowance a market contract (spender) has from a wallet (token owner). This is clearly separable from build_approve_tx and build_buy_shares_tx, though the description never names those siblings explicitly.

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?

Gives a concrete usage condition: call it before buying shares to decide whether an approve transaction is needed. That is a real when-to-use rule, but it does not name the alternative tools (build_approve_tx vs build_buy_with_approval_tx) that the result should route to, and it gives no when-not-to-use guidance.

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