Skip to main content
Glama

Set add-on options

supervisor_set_addon_options
DestructiveIdempotent

Overwrite a Home Assistant add-on's stored options with a full configuration object for programmatic changes; include every existing key and restart the add-on to apply.

Instructions

Replace an add-on's stored options with the given object.

Reads the stored options, then calls POST /addons/<slug>/options as {"options": options}. Overwrites all options, so send the full dict read via supervisor_get_addon. A secret left as the placeholder is swapped for the stored value (a list holding one must keep its order and length); a Supervisor error then drops detail. Refuses nexus's own add-on. Unless the nexus option addon_exec_options_enabled is on, also refuses to add, change or remove an option that runs code in the add-on (a key named like commands, scripts, packages, plugins, env vars or authorized_keys, at any depth); send those back as read and the other options still change.

Use when: changing an add-on's configuration programmatically. Not for: reading the current options first — use supervisor_get_addon; for changing nexus's own configuration — use the Home Assistant Supervisor UI instead. Returns: Supervisor's options-update result. Errors: invalid_slug; self_addon_options_blocked; addon_exec_option_blocked (with keys); addon_options_unverifiable when the stored options can't be read; redaction_marker_list_length_mismatch; SUPERVISOR_TOKEN not set; HTTP <status> on schema validation. Limits: does not apply until the add-on is restarted.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>",
      "options": "<options>"
    },
    "name": "supervisor_set_addon_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesAdd-on slug whose options to set, e.g. from `supervisor_list_addons`.
optionsYesFull options object to store, validated by Supervisor against the add-on's schema. Any field read via `supervisor_get_addon` and left out here is not preserved automatically — include the whole dict, not just changed keys.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.25.1
    • addedInput schema / properties / options / description
      Added value: +"Full options object to store, validated by Supervisor against the add-on's schema. Any field read via `supervisor_get_addon` and left out here is not preserved automatically — include the whole dict, not just changed keys."
    • addedInput schema / properties / slug / description
      Added value: +"Add-on slug whose options to set, e.g. from `supervisor_list_addons`."
  2. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive and non-read-only, but the description adds substantial non-obvious behavior: read-then-write of the full dict, secret placeholder substitution rules (list order and length must be preserved), refusal for nexus's own add-on, and refusal to add/change/remove code-executing keys unless `addon_exec_options_enabled` is on. The only missing element is a stated permission/auth requirement, though error codes like `SUPERVISOR_TOKEN not set` partly imply it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then organized into Use when / Not for / Returns / Errors / Limits. Dense but nearly every clause carries operational information; the inline definition of code-executing keys is verbose but prevents a whole error class.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers behavior, alternatives, error codes with causes, and the crucial post-condition that changes do not apply until restart. An output schema exists, so no return-value explanation is needed, and Errors/Limits fill the remaining operational gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema documents both parameters, but the description still adds meaning beyond it: "Overwrites all options, so send the full dict read via `supervisor_get_addon`" and the placeholder handling rules for secrets. That is real added guidance on how to populate `options`, not a restatement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: "Replace an add-on's stored options with the given object." It immediately clarifies the overwrite semantics, which separates it from add-on getters like `supervisor_get_addon` and from other lifecycle verbs (install/start/restart) in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit "Use when: changing an add-on's configuration programmatically" and "Not for: reading the current options first — use `supervisor_get_addon`; for changing nexus's own configuration — use the Home Assistant Supervisor UI instead." It names the alternative and the condition that selects it, including a scope exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools