Skip to main content
Glama
lenvolk
by lenvolk

effects_off

Stop active lighting effects on LIFX smart lights. Use this tool to disable animations and return lights to static operation.

Instructions

Turn off any running effects

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesLIFX API token
selectorNoSelector for filtering lights (default: 'all')
power_offNoAlso turn off the lights

Implementation Reference

  • src/index.ts:260-272 (registration)
    Registration of the 'effects_off' tool including its name, description, and input schema definition.
    { name: "effects_off", description: "Turn off any running effects", inputSchema: { type: "object", properties: { token: { type: "string", description: "LIFX API token" }, selector: { type: "string", description: "Selector for filtering lights (default: 'all')" }, power_off: { type: "boolean", description: "Also turn off the lights" }, }, required: ["token"], }, },
  • Handler implementation for 'effects_off' tool. It sends a POST request to LIFX API endpoint /lights/{selector}/effects/off with optional power_off body parameter and returns a success message with the API response.
    case "effects_off": { const { token, selector = "all", power_off } = args as { token: string; selector?: string; power_off?: boolean; }; const body = power_off !== undefined ? { power_off } : {}; const result = await makeLIFXRequest(`/lights/${selector}/effects/off`, { method: "POST", body, token, }); return { content: [ { type: "text", text: `Effects turned off for selector "${selector}". ${JSON.stringify(result, null, 2)}`, }, ], }; }

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/lenvolk/mcp-lifx'

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