Skip to main content
Glama

get_nanoleaf_info

Retrieve device information from Nanoleaf smart lights to check status, connectivity, and available features for control.

Instructions

Get information about the Nanoleaf device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'get_nanoleaf_info' that calls primaryDevice.getInfo() and returns the JSON-stringified device information.
    case 'get_nanoleaf_info': return { content: [ { type: 'text', text: JSON.stringify(await primaryDevice.getInfo(), null, 2), }, ], };
  • src/index.ts:58-64 (registration)
    Registration of the 'get_nanoleaf_info' tool in the ListToolsRequestHandler, defining its name, description, and empty input schema.
    name: 'get_nanoleaf_info', description: 'Get information about the Nanoleaf device', inputSchema: { type: 'object', properties: {}, }, },
  • TypeScript interface defining the structure of the NanoleafInfo response object returned by the tool.
    export interface NanoleafInfo { name: string; serialNo: string; manufacturer: string; firmwareVersion: string; model: string; state: { on: { value: boolean; }; brightness: { value: number; max: number; min: number; }; hue: { value: number; max: number; min: number; }; sat: { value: number; max: number; min: number; }; ct: { value: number; max: number; min: number; }; colorMode: string; }; effects: { select: string; effectsList: string[]; }; panelLayout: any; }
  • Core implementation of getInfo() in NanoleafClient class, which performs an authenticated GET request to the Nanoleaf API root endpoint and returns the device info.
    async getInfo(): Promise<NanoleafInfo> { const response = await this.httpClient.get(this.getAuthUrl('')); return response.data; }

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/srnetadmin/nanoleaf-mcp-server'

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