Skip to main content
Glama
AnuwatThisuka

CMMS MCP Server

get_production_orders

Retrieve production orders from MES systems with optional filtering by status or order ID to track manufacturing workflow progress.

Instructions

Get production orders from MES system. Can filter by status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by production order status
orderIdNoGet specific production order by ID

Implementation Reference

  • Handler for 'get_production_orders' which processes incoming requests, filters mock production order data based on ID or status, and returns the result.
    private handleGetProductionOrders(args: {
      status?: string;
      orderId?: string;
    }) {
      let orders = [...mockProductionOrders];
    
      if (args.orderId) {
        orders = orders.filter((o) => o.id === args.orderId);
      } else if (args.status) {
        orders = orders.filter((o) => o.status === args.status);
      }
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(orders, null, 2),
          },
        ],
      };
    }
  • src/index.ts:65-83 (registration)
    Tool registration for 'get_production_orders' in the listTools request handler, including its input schema.
    {
      name: "get_production_orders",
      description:
        "Get production orders from MES system. Can filter by status.",
      inputSchema: {
        type: "object",
        properties: {
          status: {
            type: "string",
            enum: ["planned", "in-progress", "completed", "cancelled"],
            description: "Filter by production order status",
          },
          orderId: {
            type: "string",
            description: "Get specific production order by ID",
          },
        },
      },
    },

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/AnuwatThisuka/cmms-mcp-server'

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