Skip to main content
Glama

Foresea Forecasting

foresea_cancel_order

DestructiveIdempotent

Cancel an active open order on Kalshi or Polymarket using its venue order ID.

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": {
      "order_id": "<order_id>"
    },
    "name": "foresea_cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerNo
order_idYes
platformNokalshi

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, openWorldHint=true and readOnlyHint=false, so the risk profile is largely covered. The description adds that the target is a real live order on a specific venue, but says nothing about failure modes for filled/expired orders, permission or API-key requirements, or rate limits on the venue call.

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?

One front-loaded sentence with the action, scope, venues, and the identifying key — no filler and nothing buried. It could carry more detail, but nothing present is wasted.

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?

The existence of an output schema means return values need not be described, so the main gaps are the undocumented 'ticker' parameter, the platform enum/default, and behavior on already-filled or non-existent orders. For a destructive real-money mutation, that leaves meaningful holes.

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 0%, so the description must carry the parameter burden. It only clarifies order_id as 'venue order ID' (useful: it is not an internal ID) and gestures at the platform parameter via 'Kalshi or Polymarket'; the optional 'ticker' parameter is never explained, and the platform default of 'kalshi' or accepted values are not stated.

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?

Specific verb plus resource plus supported venues; an agent can route to it confidently against place/preview siblings.

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 by 'active open order' — an agent can infer filled or already-cancelled orders are out of scope — but there is no explicit when-to-use/when-not guidance and no pointer to foresea_place_order or foresea_preview_order as related operations. The agent must infer the workflow from the name alone.

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.