Skip to main content
Glama

Prepare an Otto-attributed Polymarket CLOB limit order

otto_prepare_polymarket_order
Read-only

Prepare and verify an unsigned Polymarket CTF Exchange V2 limit order (GTC) for the caller-owned Polygon EOA, with Otto's builder code stamped inside the EIP-712 order struct and re-asserted on the exact digest the signer will sign. The price must be an exact multiple of the market's live minimum tick size and the size at or above its published minimum. The envelope's valid_until bounds freshness and is committed to the artifact digest; the exchange's own order hash is the replay boundary, and this tool cannot guarantee single execution. Returns order args and typed data only; never signs or submits, holds no CLOB credentials, and touches no collateral or allowance. Every envelope from this server is valid for 300 seconds from construction (valid_until); a stale envelope is refused by the verifier — request a fresh one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYes
sizeYesOrder size in outcome-token shares.
priceYesLimit price as a probability, e.g. '0.045'. Must be an exact multiple of the market's minimum tick size.
tokenIdYesOutcome-token id (NOT the condition id): YES and NO are different token ids.
client_refNo
accountProfileYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
railYes
payloadYes
operationYes
assertionsYes
submissionYes
artifact_idYes
valid_untilYes
intent_digestYes
schema_versionYes
account_bindingYes
fee_attributionYes
replay_disclosureYes
required_capabilitiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses meaningful behavioral details: no signing, no submission, no CLOB credentials, no collateral touching, 300-second envelope validity, replay-boundary semantics, and no single-execution guarantee. This substantially helps the agent set expectations and avoid misuse.

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 description is long but information-dense and front-loaded with the primary purpose. Every sentence carries essential operational or safety context; minor verbosity around 'stamped' and 're-asserted' keeps it from being maximally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given nested objects, an output schema, and complex exchange-specific constraints, the description covers what the tool returns, what it never does, freshness requirements, validation rules, and replay boundaries. An agent has enough context to call it safely and correctly.

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

Parameters4/5

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

With only 50% schema description coverage, the prose adds important parameter-level semantics: price must be an exact multiple of the live minimum tick size, size must meet the published minimum, and token IDs are outcome-specific. It does not fully elaborate on client_ref or accountProfile, but the schema already documents several parameters and the added constraints are high-value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a highly specific verb-resource pair: prepare and verify an unsigned Polymarket CTF Exchange V2 limit order. It is immediately distinguishable from sibling tools like otto_prepare_swap, otto_prepare_perp_order, and otto_prepare_bridge by naming the exact exchange and order type.

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?

It clearly conveys the context: this only prepares and verifies order data, never signs or submits, and requires a fresh envelope within 300 seconds. It does not explicitly name alternatives or when-not-to-use conditions, but the specialized domain and non-goals give an agent enough context to route correctly.

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.

Resources