Skip to main content
Glama

Authoritatively cancel all open orders at the hosted layer, optionally scoped to a market

problee_cancel_all_orders
Destructive

Authoritatively cancel every open order on the page at the hosted layer — terminal, nothing to broadcast, no gas owed. Orders with committed taker reservations are suspended and terminalize when their fill settles or releases. Paged; requires wallet proof.

Input Schema

NameRequiredDescriptionDefault
limitNo
chainIdNoOptional chain filter. Required when the same market address exists on multiple chains.
proofNonceYesRequired single-use nonce for the wallet proof. Fetch from POST /api/auth/nonce; consumed on verification so the proof cannot be replayed.
marketAddressNoOptional market filter. Omit to cancel across all of the wallet's markets.
walletAddressYesWallet address whose orders should be cancelled
afterOrderHashNo
idempotencyKeyYesStable retry key. Reuse only with byte-equivalent tool arguments.
walletSignatureYesAction-bound wallet proof. Sign the canonical 'problee-mcp-auth:…' challenge (binds agent, apiKey, tool, scope, chain, resource, payloadHash, nonce, timestamp).
signatureTimestampYesUnix timestamp (seconds) used in the signed challenge message

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Goes well past the annotations: it declares the effect terminal, states there is nothing to broadcast and no gas owed, and explains the non-obvious exception that orders with committed taker reservations are suspended and settle later. It also flags pagination and the wallet-proof requirement, which the destructiveHint alone would not convey.

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?

Three tight sentences, front-loaded with the terminal/no-gas guarantee that matters most. Every sentence carries information, though "on the page" is a small source of ambiguity that could be trimmed.

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?

Covers scope, side effects, the taker-reservation edge case, pagination, and the auth proof requirement for a 9-parameter destructive tool, and an output schema exists so return values need no explanation. It could still say whether a separate confirm step is ever required.

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 78%, so the schema already documents most parameters including the market filter and proof nonce. The description adds only the mapping of "optionally scoped to a market" and "paged" to the filter and cursor arguments, without new format or constraint detail.

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 ("cancel every open order") plus a concrete layer ("at the hosted layer"), which separates it from on-chain cancellation siblings. The phrase "on the page" muddies scope by suggesting page-local cancellation, and no sibling such as problee_cancel_order or problee_confirm_order_cancel is named.

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 through "optional market scoping" and the terminal/hosted nature, which hints no confirmation round-trip is needed. It never says when to pick this over problee_cancel_order, problee_cancel_orders, or problee_confirm_order_cancel, so an agent must infer the choice.

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.