Skip to main content
Glama
enderekici

Trading 212 MCP Server

by enderekici

get_order

Retrieve detailed information about a specific Trading 212 order using its unique identifier to track status, view execution details, and monitor investment activity.

Instructions

Get detailed information about a specific order by order ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdYesThe unique identifier of the order

Implementation Reference

  • The tool handler logic for 'get_order' which parses the input and calls the client's getOrder method.
    case 'get_order': {
      const { orderId } = OrderIdInputSchema.parse(args);
      const order = await client.getOrder(orderId);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(order, null, 2),
          },
        ],
      };
    }
  • The API client implementation that executes the HTTP request for 'get_order'.
    async getOrder(orderId: number): Promise<Order> {
      return this.request(`/equity/orders/${orderId}`, {}, OrderSchema);
    }

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/enderekici/trading212-mcp'

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