Skip to main content
Glama
AnuwatThisuka

CMMS MCP Server

get_devices

Retrieve IoT devices from manufacturing systems with optional filters for status or type to monitor operational assets.

Instructions

Get IoT devices. Can filter by status or type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by device status
typeNoFilter by device type

Implementation Reference

  • The handler function `handleGetDevices` that processes the tool request.
    private handleGetDevices(args: { status?: string; type?: string }) {
      let devices = [...mockDevices];
    
      if (args.status) {
        devices = devices.filter((d) => d.status === args.status);
      }
      if (args.type) {
        devices = devices.filter((d) => d.type === args.type);
      }
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(devices, null, 2),
          },
        ],
      };
    }
  • src/index.ts:312-325 (registration)
    Registration of the `get_devices` tool, including its input schema and description.
    name: "get_devices",
    description: "Get IoT devices. Can filter by status or type.",
    inputSchema: {
      type: "object",
      properties: {
        status: {
          type: "string",
          enum: ["online", "offline", "error"],
          description: "Filter by device status",
        },
        type: {
          type: "string",
          description: "Filter by device type",
        },

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