Skip to main content
Glama

Dry-run a trade — returns the same quote + feasibility verdict as /trade/prepare but without the signable intent

problee_simulate_trade
Read-onlyIdempotent

Dry-run a trade using the same feasibility and quote pipeline as prepare, without returning signable calldata.

Examples: Dry-run the same body used for prepare

Input Schema

NameRequiredDescriptionDefault
sideYes`side` = which OUTCOME (0-indexed: 0=outcome1,1=outcome2,2=outcome3), NOT buy/sell. Buy/sell is the direction field (`type`/`tradeType`/`action`/`direction`).
amountNoExact-input size. BUY: collateral spent. SELL: outcome tokens sold. Outcome tokens carry the market collateral's own denomination — one outcome token redeems for one collateral unit — so every outcome-token quantity uses that single unit: positions.outcome1Shares/outcome2Shares/outcome3Shares, SELL amount, 409 available/requested, and outcomeTokensOut/minOutcomeTokensOut. It is also the unit the signed intent carries, so nothing is converted between the wire, the engine and the calldata. Omit when using closePercent or targetCollateralOut.
chainIdNo
tradeTypeYesTrade DIRECTION (buy/sell). Note: this same concept is named `kind` (0=buy/1=sell int) on /orderbook/* and `side`/`action`/`tradeType`/`type`/`direction` on other trade endpoints — see skill.md field-map.
slippageBpsNo
closePercentNoSELL only. Percent (1–100) of the wallet’s current position in `side` to sell; 100 closes it fully. Server sizes from the live on-chain balance. Mutually exclusive with amount and targetCollateralOut.
marketAddressYes
walletAddressNoWallet that would sign the intent for the trade being simulated.
targetCollateralOutNoSELL only. Size the sell so its net proceeds reach ~this much collateral (wei); server sizes from the live balance. Mutually exclusive with amount and closePercent.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description usefully adds that it runs the same feasibility/quote pipeline as prepare and deliberately returns no signable calldata, but it says nothing about latency, rate limits, or whether the simulation reads live on-chain state versus cached data.

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

Conciseness4/5

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

The definition is short and front-loads the key distinction (same pipeline, no signable calldata). The trailing 'Examples:' line is awkwardly phrased and contributes little, but the overall size is appropriate.

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?

With an output schema present, return values need not be described. However, for a 9-parameter trading tool with 67% schema coverage, the description should say more about when to simulate versus prepare and about walletAddress/amount constraints that the schema only partly covers.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 67%, with chainId and slippageBps undocumented in both schema and description. The description adds no parameter meaning of its own; the single hint that the body mirrors prepare is marginal and does not compensate for the gaps in 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?

The description gives a specific verb ('Dry-run a trade') and resource, and explicitly contrasts itself with 'prepare' by noting it omits signable calldata. An agent can distinguish it from problee_prepare_trade without opening either schema, though the sibling is referenced only as '/prepare' rather than by tool name.

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?

Usage is implied rather than stated: 'Examples: Dry-run the same body used for prepare' hints at validating a prepare body first, but there is no explicit when-to-use, when-not-to-use, or naming of alternatives such as problee_prepare_trade versus problee_get_quote. The agent must infer the workflow.

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.