Skip to main content
Glama

turn_off_nanoleaf

Turn off Nanoleaf smart lights using the Nanoleaf MCP Server. This tool provides a simple command to deactivate your lighting setup via Warp terminal or any MCP-compatible client.

Instructions

Turn off the Nanoleaf lights

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • src/index.ts:73-80 (registration)
    Tool registration in the ListTools response, defining name, description, and empty input schema
    { name: 'turn_off_nanoleaf', description: 'Turn off the Nanoleaf lights', inputSchema: { type: 'object', properties: {}, }, },
  • MCP CallTool handler case that invokes NanoleafClient.turnOff() and returns success message
    case 'turn_off_nanoleaf': await primaryDevice.turnOff(); return { content: [ { type: 'text', text: 'Nanoleaf lights turned off', }, ], };
  • Core implementation of turnOff in NanoleafClient, sends HTTP PUT to /state with on: { value: false }
    async turnOff(): Promise<void> { await this.httpClient.put(this.getAuthUrl('/state'), { on: { value: false } }); }

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