Fleksa

Orders Management - Overview

MCP tool for order queries and management

Availability

The Fleksa MCP server is not generally available. These pages describe planned tools. Contact Fleksa support before you build on them.

MCP tool for order queries and management via AI assistants.

Overview

The Orders Management tool enables AI agents to query, track, and provide information about restaurant orders.

Key Features

Order Queries

  • Get order by ID
  • List orders with filters
  • Order status tracking
  • Order history

Order Details

  • Full order items
  • Customer information
  • Payment status
  • Delivery/pickup info

Status Tracking

  • Real-time status updates
  • Order timeline
  • Estimated times
  • Status notifications
  • Date range filtering
  • Status filtering
  • Order type filtering
  • Customer filtering

MCP Tool Definition

{
  name: "fleksa_orders",
  description: "Query and manage orders",
  inputSchema: {
    type: "object",
    properties: {
      shop_id: {
        type: "string",
        description: "Shop ID"
      },
      order_id: {
        type: "string",
        description: "Specific order ID"
      },
      status: {
        type: "string",
        enum: ["pending", "confirmed", "preparing", "ready", "delivered", "cancelled"]
      },
      limit: {
        type: "number",
        description: "Number of orders to return"
      }
    },
    required: ["shop_id"]
  }
}

Response Structure

{
  "orders": [
    {
      "id": "uuid",
      "order_number": "FL-12345",
      "status": "preparing",
      "items": [...],
      "total": 45.50,
      "customer": {...},
      "created_at": "2024-01-15T12:30:00Z"
    }
  ]
}