Skip to main content
Glama
AnuwatThisuka

CMMS MCP Server

get_equipment

Retrieve equipment status from MES systems to monitor operational states, filter by running, idle, maintenance, or error conditions, and access specific equipment details for maintenance management and asset tracking.

Instructions

Get equipment status from MES system. Can filter by status or get specific equipment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by equipment status
equipmentIdNoGet specific equipment by ID

Implementation Reference

  • The handler function 'handleGetEquipment' that implements the 'get_equipment' tool logic by filtering mock data.
    private handleGetEquipment(args: { status?: string; equipmentId?: string }) {
      let equipment = [...mockEquipment];
    
      if (args.equipmentId) {
        equipment = equipment.filter((e) => e.id === args.equipmentId);
      } else if (args.status) {
        equipment = equipment.filter((e) => e.status === args.status);
      }
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(equipment, null, 2),
          },
        ],
      };
  • src/index.ts:104-115 (registration)
    The registration of the 'get_equipment' tool in the MCP tool list.
    name: "get_equipment",
    description:
      "Get equipment status from MES system. Can filter by status or get specific equipment.",
    inputSchema: {
      type: "object",
      properties: {
        status: {
          type: "string",
          enum: ["running", "idle", "maintenance", "error"],
          description: "Filter by equipment status",
        },
        equipmentId: {

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