Skip to main content
Glama

get_effects

Retrieve a list of available lighting effects from the Nanoleaf MCP Server to manage and customize smart light displays.

Instructions

Get list of available effects

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • Handler for the 'get_effects' tool: calls primaryDevice.getEffects() and returns the list of effects as JSON text.
    case 'get_effects': const effects = await primaryDevice.getEffects(); return { content: [ { type: 'text', text: JSON.stringify(effects, null, 2), }, ], };
  • src/index.ts:133-140 (registration)
    Registration of the 'get_effects' tool in the tools list, with description and input schema.
    { name: 'get_effects', description: 'Get list of available effects', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema for 'get_effects' tool: empty object (no parameters).
    inputSchema: { type: 'object', properties: {}, },
  • Helper method getEffects() in NanoleafClient class that fetches the list of effects from the device API endpoint '/effects/effectsList'.
    async getEffects(): Promise<string[]> { const response = await this.httpClient.get(this.getAuthUrl('/effects/effectsList')); return response.data; }

Other Tools

Related Tools

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