Skip to main content
Glama

Settle on-chain claims for specified markets — the protocol submits and pays the gas

problee_prepare_claims

Settle claims for the specified markets. There is no calldata to sign or broadcast: the protocol submits each market-local claimPayoutFor transaction itself and pays the gas, since a payout can only ever reach the holder the market names. Each entry in the response is SETTLED (with the transaction hash the protocol sent) or SKIPPED (not yet claimable, with when it will be); claim-all callers continue safely after individual failures. Claim submission applies to onchain markets. Committed markets settle automatically at final resolution; GET /claims/receipts reports exact already-credited payouts. Explicit batch requests return SKIPPED/COMMITTED_SETTLED only after a corroborated payout receipt, with claimed:true and amountAvailable:true. Pending or unproven cases return SKIPPED/NOT_CLAIMABLE_YET, claimed:false and amountAvailable:false; their required amount of zero is an unavailable placeholder, not a credited zero result. No transaction is submitted for a committed market.

Input Schema

NameRequiredDescriptionDefault
marketsYes
proofNonceNoRequired single-use nonce for the wallet proof. Fetch from POST /api/auth/nonce; consumed on verification so the proof cannot be replayed.
walletAddressYesWallet that owns the payout claims
idempotencyKeyYesStable retry key. Reuse only with byte-equivalent tool arguments.
walletSignatureNoAction-bound wallet proof. Sign the canonical 'problee-mcp-auth:…' challenge (binds agent, apiKey, tool, scope, chain, resource, payloadHash, nonce, timestamp).
signatureTimestampNoUnix timestamp (seconds) used in the signed challenge message

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only give the generic readOnly/destructive/idempotent/openWorld flags; the description adds genuinely useful behavior: the protocol submits each market-local transaction and pays gas, and claim-all callers continue safely after individual failures. It also explains that no transaction is submitted for committed markets. Points off because much of the remaining text restates response fields that the output schema already defines.

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

Conciseness3/5

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

Purpose is front-loaded, but the body is dense and jargon-heavy, with run-on sentences like the SKIPPED/COMMITTED_SETTLED receipt rule. The committed-market point is stated twice (mid-paragraph and again in the final sentence), which is avoidable repetition in an already long description.

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 mutation-style tool with a rich output schema, the description covers the execution model, failure isolation and status semantics well enough to call it safely. It could be more complete by naming the sibling tools that handle simulation, sweeping and status checks, which is the main decision an agent faces.

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 83%, so the schema already documents markets, walletAddress, idempotencyKey, nonce and signature. The description adds nothing about parameter formats or constraints (e.g. the 1–100 market limit or per-entry chainId/marketAddress pairing), so it sits at the baseline rather than compensating.

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 ('Settle claims for the specified markets') and immediately clarifies the unusual execution model: no calldata to sign, the protocol submits and pays gas. That distinguishes it in spirit from simulate/sweep/status siblings, but no sibling tool is named, so the agent must infer the boundary itself.

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?

There is implicit when-not-to-use guidance: committed markets settle automatically and GET /claims/receipts already reports credited payouts, so this tool is unnecessary there. However, the alternatives are given as HTTP endpoints rather than sibling tools (problee_simulate_claims, problee_sweep_claims, problee_get_claim_status), and the guidance is buried mid-paragraph rather than stated up front.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.