{"at":"2026-11-22T23:41:58.967Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:42:00.566Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:42:00.817Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T23:42:02.372Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"extensions":{"io.modelcontextprotocol/ui":{}},"logging":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":true}},"instructions":"Control and automate Shelly smart-home devices (Gen1-Gen4 + BLU), local-first. Read tools are safe; the generic write tool and destructive system tools require confirm:true (a hijacked LLM still can't silently destroy). To act on a room (e.g. 'turn off the kitchen'), call shelly_list_devices, filter by each device's 'location', then act on those devices. For a repeated multi-device routine, define a named scene once (shelly_scene_create) and run it deterministically afterwards (shelly_scene_run) — same result every time, schedulable from any client. Unofficial community project, not affiliated with Allterco/Shelly.","protocolVersion":"2025-11-25","serverInfo":{"name":"shelly-mcp","version":"0.1.3"}}}}
{"at":"2026-11-22T23:42:02.372Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:42:02.372Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:42:02.384Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Turn a switch/relay channel on or off (optionally auto-revert after N seconds).\n\nReturns the post-action ``ChannelState``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"channel":{"default":0,"type":"integer"},"device":{"type":"string"},"on":{"type":"boolean"},"toggle_after_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null}},"required":["device","on"],"type":"object"},"name":"shelly_switch_set","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Toggle a switch/relay channel. Returns the post-action ``ChannelState``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"channel":{"default":0,"type":"integer"},"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_switch_toggle","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Set a light/dimmer/RGB(W)/CCT channel (Gen1 /color,/light ↔ Gen2 Light/RGB/RGBW/CCT.Set).\n\nOnly the provided fields are changed. ``brightness`` 0-100, ``rgb`` three 0-255\nvalues, ``temp_k`` white colour temperature. Returns the post-action ``LightState``.\nAudit-logged.","inputSchema":{"additionalProperties":false,"properties":{"brightness":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"channel":{"default":0,"type":"integer"},"device":{"type":"string"},"on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null},"rgb":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null},"temp_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"transition_s":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"white":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null}},"required":["device"],"type":"object"},"name":"shelly_light_set","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Move a roller/cover: ``action`` is open|close|stop, or pass ``position`` (0-100) to go to it.\n\nReturns the post-action ``CoverState``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"action":{"type":"string"},"channel":{"default":0,"type":"integer"},"device":{"type":"string"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null}},"required":["device","action"],"type":"object"},"name":"shelly_cover_move","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Live power/energy per channel: power_w, voltage, current, pf, freq, totals.\n\n``None`` where a device can't report it (e.g. Gen1 plugs have no voltage/current).\nPass ``channel`` to narrow to one. Safe, read-only.","inputSchema":{"additionalProperties":false,"properties":{"channel":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_energy_live","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Best-effort energy history: lifetime totals plus any per-minute series the device\nexposes in its status; notes when richer history needs a local connection.\n\nDetailed historical queries (Pro 3EM ``EMData``/CSV, Gen1 ``em_data.csv``) land with\nthe local backends (M2) — over cloud only totals + recent by-minute are available.","inputSchema":{"additionalProperties":false,"properties":{"channel":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_energy_history","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Call any **read-only** RPC method (``*.Get*``/``*.List*``/``*.Check*``) on a device.\n\nMutating methods are refused here — use ``shelly_rpc_write``. The method name is\nclassified server-side; unknown methods are treated as writes and rejected.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"method":{"type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null}},"required":["device","method"],"type":"object"},"name":"shelly_rpc","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true,"openWorldHint":true},"description":"Call any **mutating** RPC method. Requires ``confirm:true``; audit-logged.\n\nRead methods are rejected (use ``shelly_rpc``). Destructive methods (factory reset,\nwipe-all, reset-wifi) need a second gate: ``params.i_understand_data_loss = true``.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"method":{"type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null}},"required":["device","method"],"type":"object"},"name":"shelly_rpc_write","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List the RPC methods a device supports (Gen2+ ``Shelly.ListMethods``).\n\nReturns an actionable error on Gen1/cloud where the device can't enumerate methods.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_list_methods","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List KVS keys (with their etags). ``match`` is a wildcard pattern (default all).","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"match":{"default":"*","type":"string"}},"required":["device"],"type":"object"},"name":"shelly_kvs_list","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Get one KVS value (with its etag) by key.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"key":{"type":"string"}},"required":["device","key"],"type":"object"},"name":"shelly_kvs_get","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Set a KVS key to a JSON value. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"key":{"type":"string"},"value":{}},"required":["device","key","value"],"type":"object"},"name":"shelly_kvs_set","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Delete a KVS key. Requires ``confirm:true``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"key":{"type":"string"}},"required":["device","key"],"type":"object"},"name":"shelly_kvs_delete","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Return the shelly-mcp server version (health check).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"shelly_version","outputSchema":{"additionalProperties":{"type":"string"},"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Discover Shelly devices on the LAN via mDNS, merged with the cloud account list.\n\n``timeout_s`` is the mDNS browse window. Set ``use_cloud=false`` to skip the cloud\nlist (LAN-only). Safe, read-only; returns lightweight identities (probe for detail).","inputSchema":{"additionalProperties":false,"properties":{"timeout_s":{"default":5.0,"type":"number"},"use_cloud":{"default":true,"type":"boolean"}},"type":"object"},"name":"shelly_discover","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List every Shelly device known to this server (configured + cloud account).\n\nSafe, read-only. Returns each device's canonical identity (id, name, generation,\nmodel, online state) — the starting point before any status or control call.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"shelly_list_devices","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Identify one device (generation, model, firmware, online state, capabilities).\n\n``device`` is a device id or a configured name. Safe, read-only.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_get_info","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Get a device's **normalized** live status (Gen1/Gen2/Cloud folded into one shape).\n\nReturns canonical channels/lights/covers plus the raw per-generation payload. Pass\n``component`` (e.g. ``\"switch:0\"``) to narrow to a single component. Safe, read-only.","inputSchema":{"additionalProperties":false,"properties":{"component":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_get_status","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List the component keys present on a device (e.g. ['switch:0', 'input:0']).\n\nSafe, read-only. Use this to discover what a specific device exposes before\nreading status or controlling it.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_list_components","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Get a device's configuration, with credential fields masked as ``***`` (Gen1\n``/settings`` returns Wi-Fi/MQTT secrets in the clear — they must not reach the\nmodel). Local-first — the Shelly Cloud API can't expose config, so this returns\nan actionable error for cloud-only devices.","inputSchema":{"additionalProperties":false,"properties":{"component":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_get_config","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List defined scenes (name, description, action count). Read-only.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"shelly_scene_list","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Show a scene's full definition (its ordered actions). Read-only.","inputSchema":{"additionalProperties":false,"properties":{"name":{"type":"string"}},"required":["name"],"type":"object"},"name":"shelly_scene_get","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Define (save) a named scene from an ordered list of ``{device, method, params}``.\n\nEvery method must be a non-destructive mutating method; every device must be known.\nFails if the name already exists unless ``overwrite=true``. Prefer absolute ``Set``\nmethods over ``Toggle`` so the scene is safe to run twice (you'll get a warning otherwise).","inputSchema":{"additionalProperties":false,"properties":{"actions":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"name":{"type":"string"},"overwrite":{"default":false,"type":"boolean"}},"required":["name","actions"],"type":"object"},"name":"shelly_scene_create","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Run a named scene: attempt every action in order, report per-action results.\n\nBest-effort and sequential — a failing action does **not** abort the rest. ``status`` is\n``ok`` (all succeeded), ``partial`` (some failed), or ``failed`` (none succeeded). A\npartial run can simply be re-run later to finish it (scenes use absolute states, so\nre-running is safe). Every action is audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"name":{"type":"string"}},"required":["name"],"type":"object"},"name":"shelly_scene_run","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Delete a named scene. Requires ``confirm:true``.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"name":{"type":"string"}},"required":["name"],"type":"object"},"name":"shelly_scene_delete","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List the schedules configured on a device. Local-only (cloud can't manage schedules).","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_schedule_list","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Create a schedule: ``timespec`` + ``calls`` (1-5 × {method, params}).\n\n``timespec``: cron ``\"sec min hour day month dow\"`` (e.g. ``\"0 0 22 * * MON-THU\"``; 5 or 7\nfields also accepted), a shorthand (``@daily``), or sun-relative ``\"@sunset\"``,\n``\"@sunset+30m\"``, ``\"@sunrise-1h * * MON-FRI\"`` (offset max ±12 h; the device needs its\nlocation set). Validates the timespec, ≤5 calls, the ≤20-per-device limit, and each\ncall's method. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"calls":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"device":{"type":"string"},"enable":{"default":true,"type":"boolean"},"timespec":{"type":"string"}},"required":["device","timespec","calls"],"type":"object"},"name":"shelly_schedule_create","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Update fields of an existing schedule by ``id``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null},"device":{"type":"string"},"enable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null},"id":{"type":"integer"},"timespec":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}},"required":["device","id"],"type":"object"},"name":"shelly_schedule_update","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Delete a schedule by ``id``. Requires ``confirm:true``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id"],"type":"object"},"name":"shelly_schedule_delete","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List scripts on a device (id, name, enable, running). Local-only.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_script_list","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"Get a script's full source, reassembling the device's paginated ``GetCode``.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id"],"type":"object"},"name":"shelly_script_get_code","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Create an empty script (optionally named). Returns its ``id``. Audit-logged.\n\nUse ``shelly_script_put_code`` to give it code (that step is confirm-gated).","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}},"required":["device"],"type":"object"},"name":"shelly_script_create","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Upload code into a script (chunked). **Arbitrary code on the device** → ``confirm:true``.\n\n``append=false`` replaces the script body; ``true`` appends. Large code is split into\n≤1 KB chunks automatically. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"append":{"default":false,"type":"boolean"},"code":{"type":"string"},"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id","code"],"type":"object"},"name":"shelly_script_put_code","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Start a script by ``id``. Returns ``was_running``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id"],"type":"object"},"name":"shelly_script_start","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Stop a script by ``id``. Returns ``was_running``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id"],"type":"object"},"name":"shelly_script_stop","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Evaluate an expression inside a running script. **Arbitrary code** → ``confirm:true``.\n\nReturns the stringified result. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"code":{"type":"string"},"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id","code"],"type":"object"},"name":"shelly_script_eval","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Delete a script by ``id``. Requires ``confirm:true``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id"],"type":"object"},"name":"shelly_script_delete","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Reboot a device. Requires ``confirm:true``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_system_reboot","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Trigger a firmware update (``channel`` = stable|beta). Requires ``confirm:true``.","inputSchema":{"additionalProperties":false,"properties":{"channel":{"default":"stable","type":"string"},"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_system_update","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Enable/rotate the device login password (≥12 chars). Requires ``confirm:true``.\n\nThe password is write-only — never returned, and redacted in the audit log.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"password":{"type":"string"}},"required":["device","password"],"type":"object"},"name":"shelly_system_set_auth","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List the device's virtual (dynamic) components via ``Shelly.GetComponents``.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_virtual_list","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Add a virtual component of ``type`` (boolean/number/text/enum/button/group).\n\nOptional ``config`` and ``id`` (200-299). Returns the new component id. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null},"device":{"type":"string"},"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"type":{"type":"string"}},"required":["device","type"],"type":"object"},"name":"shelly_virtual_add","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Delete a virtual component by ``key`` (``<type>:<cid>``). Requires ``confirm:true``.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"key":{"type":"string"}},"required":["device","key"],"type":"object"},"name":"shelly_virtual_delete","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"readOnlyHint":true},"description":"List webhooks configured on a device. Local-only.","inputSchema":{"additionalProperties":false,"properties":{"device":{"type":"string"}},"required":["device"],"type":"object"},"name":"shelly_webhook_list","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Create a webhook: ``event`` (e.g. 'switch.on'), ``cid`` component id, ``urls`` 1-5.\n\nOptional ``condition`` (JS expression) and ``repeat_period`` (seconds; 0=always,\nnegative=once). Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"cid":{"type":"integer"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"device":{"type":"string"},"enable":{"default":true,"type":"boolean"},"event":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"repeat_period":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"urls":{"items":{"type":"string"},"type":"array"}},"required":["device","event","cid","urls"],"type":"object"},"name":"shelly_webhook_create","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"idempotentHint":true},"description":"Update fields of an existing webhook by ``id``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"device":{"type":"string"},"enable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null},"id":{"type":"integer"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"repeat_period":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null}},"required":["device","id"],"type":"object"},"name":"shelly_webhook_update","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"annotations":{"destructiveHint":true},"description":"Delete a webhook by ``id``. Requires ``confirm:true``. Audit-logged.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"default":false,"type":"boolean"},"device":{"type":"string"},"id":{"type":"integer"}},"required":["device","id"],"type":"object"},"name":"shelly_webhook_delete","outputSchema":{"additionalProperties":true,"type":"object"}}]}}}
