Skip to main content
Glama

turn_on_nanoleaf

Activate Nanoleaf smart lights using the Nanoleaf MCP Server. This tool enables control of connected lights via MCP-compatible clients, providing a simple command to turn them on.

Instructions

Turn on the Nanoleaf lights

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • The MCP tool handler for 'turn_on_nanoleaf' which calls the NanoleafClient's turnOn method and returns a success message.
    case 'turn_on_nanoleaf': await primaryDevice.turnOn(); return { content: [ { type: 'text', text: 'Nanoleaf lights turned on', }, ], };
  • src/index.ts:65-72 (registration)
    Registration of the 'turn_on_nanoleaf' tool in the ListTools response, including name, description, and empty input schema.
    { name: 'turn_on_nanoleaf', description: 'Turn on the Nanoleaf lights', inputSchema: { type: 'object', properties: {}, }, },
  • Core implementation of turning on the Nanoleaf lights by sending an authenticated PUT request to the /state endpoint setting 'on' to true.
    async turnOn(): Promise<void> { await this.httpClient.put(this.getAuthUrl('/state'), { on: { value: true } }); }

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