Skip to main content
Glama
jarvismaximum-hue

ProfitPlay MCP Server

cancel

Cancel an open order in the ProfitPlay prediction market by specifying its order ID to manage active trades.

Instructions

Cancel an open order by order ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdYesThe order ID to cancel

Implementation Reference

  • Handler for the "cancel" tool. It calls the POST /api/order/cancel endpoint with the orderId argument.
    case "cancel":
      return { content: [{ type: "text", text: JSON.stringify(await apiPost("/api/order/cancel", { orderId: args?.orderId }), null, 2) }] };
  • src/index.ts:105-114 (registration)
    Registration of the "cancel" tool within the ListToolsRequestSchema handler.
      name: "cancel",
      description: "Cancel an open order by order ID.",
      inputSchema: {
        type: "object" as const,
        properties: {
          orderId: { type: "string", description: "The order ID to cancel" },
        },
        required: ["orderId"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarvismaximum-hue/profitplay-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server