Skip to main content
Glama

waiaas_pm_get_orders

Retrieve Polymarket CLOB orders for a specific wallet, with filtering options by order status (LIVE, MATCHED, CANCELLED) to monitor trading activity.

Instructions

Get Polymarket CLOB orders for a wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_idNoWallet ID. Auto-resolved for single-wallet sessions.
statusNoFilter by order status.

Implementation Reference

  • The tool 'waiaas_pm_get_orders' is registered and implemented within 'packages/mcp/src/tools/polymarket.ts'. The implementation uses the provided 'apiClient' to make a GET request to the Polymarket orders endpoint.
    // pm_get_orders
    server.tool(
      'waiaas_pm_get_orders',
      withWalletPrefix('Get Polymarket CLOB orders for a wallet.', walletContext?.walletName),
      {
        wallet_id: z.string().optional().describe('Wallet ID. Auto-resolved for single-wallet sessions.'),
        status: z.enum(['LIVE', 'MATCHED', 'CANCELLED']).optional().describe('Filter by order status.'),
      },
      async (args) => {
        const walletId = args.wallet_id || 'default';
        const params = new URLSearchParams();
        if (args.status) params.set('status', args.status);
        const qs = params.toString();
        const result = await apiClient.get(`/v1/wallets/${walletId}/polymarket/orders${qs ? '?' + qs : ''}`);
        return toToolResult(result);
      },
    );

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/minhoyoo-iotrust/WAIaaS'

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