Skip to main content
Glama

get_effects

Retrieve available lighting effects for Nanoleaf smart lights to customize illumination patterns and enhance ambiance.

Instructions

Get list of available effects

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP server tool handler for the 'get_effects' tool. It calls getEffects() on the NanoleafClient instance and returns the list of effects as JSON text content.
    case 'get_effects': const effects = await primaryDevice.getEffects(); return { content: [ { type: 'text', text: JSON.stringify(effects, null, 2), }, ], };
  • Core implementation of getEffects method in NanoleafClient class. Fetches the list of available effects from the Nanoleaf device API endpoint '/effects/effectsList'.
    async getEffects(): Promise<string[]> { const response = await this.httpClient.get(this.getAuthUrl('/effects/effectsList')); return response.data; }
  • src/index.ts:133-140 (registration)
    Registration of the 'get_effects' tool in the MCP server's listTools response, including name, description, and input schema (no parameters required).
    { name: 'get_effects', description: 'Get list of available effects', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema for 'get_effects' tool: empty object (no input parameters). Note: output is not explicitly schemed.
    { name: 'get_effects', description: 'Get list of available effects', inputSchema: { type: 'object', properties: {}, }, },

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