Skip to main content
Glama

Change module settings

settings_write
Destructive

Changes the settings of a module of the site: updates only the passed keys and reports which of them changed. A dry run returns the current values of the keys without saving. Access keys of services (captcha, maps) are not taken: they are set in the site control panel.

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": {
      "action": "<action>",
      "site_id": "<site_id>",
      "module": "<module>",
      "values": "<values>"
    },
    "name": "settings_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
moduleYesModule code. site holds the general site settings.
valuesYesFlat setting keys and new values, e.g. { "name": "News", "entries_per_page": 10, "comments_enabled": true }. A flat key joins the nested path with _ (cover.thumb_width -> cover_thumb_width); list fields such as fields are sent whole. Key names are 1-64 letters, digits or _; field names are described in the module OpenAPI specification (docs_tool). Access keys of services (site captcha keys, shop map keys) are not accepted: the site owner sets them in the site control panel.
confirmNoPass true only after the user approves this change. Required in some cases by: settings_update (see the action).
dry_runNoReturn the current values of the requested keys without saving.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "module",
      -  "values"
      -]New value: +[
      +  "action",
      +  "site_id",
      +  "module",
      +  "values"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "settings_update",
      -    "description": "Changes only the passed keys of the settings of a module. The result lists changed keys (before and after) and unchanged keys: an unchanged key was unknown, already set, or clamped by the module; access keys are shown only as (set) or empty. warnings, when present, lists the passed values the module ignored. confirm is required (not for a dry run) to turn on users reinstall_popup_templates or mass_mail, forum reset_visitor_record, site availability_closed, seo seo_DisableIndexing; to turn off users awards_enabled (deletes all awards), shop search_log_history (drops the search log), or options_other_categories of blog, news, board, publ, load, dir, stuff (removes entries from their additional categories); to change shop cart_invoice_next_number; and to pass users registration_allow_unet or registration_allow_local (can switch registration from uID to local users for good). These keys take a plain value, not an object or a list. A key passed both flat and nested is refused. Required: module, values. Optional: dry_run, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "settings_update",
      +    "description": "Changes only the passed keys of the settings of a module. The result lists changed keys (before and after) and unchanged keys: an unchanged key was unknown, already set, or clamped by the module. Access keys (site captcha_recaptcha_site_key, captcha_recaptcha_secret_key, captcha_cleantalk_access_key; shop general_maps_google_key, general_maps_yandex_key) are refused, even in a dry run: they are set in the site control panel. warnings, when present, lists the passed values the module ignored. confirm is required (not for a dry run) to turn on users reinstall_popup_templates or mass_mail, forum reset_visitor_record, site availability_closed, seo seo_DisableIndexing; to turn off users awards_enabled (deletes all awards), shop search_log_history (drops the search log), or options_other_categories of blog, news, board, publ, load, dir, stuff (removes entries from their additional categories); to change shop cart_invoice_next_number; and to pass users registration_allow_unet or registration_allow_local (can switch registration from uID to local users for good). These keys take a plain value, not an object or a list. A key passed both flat and nested is refused. Required: module, values. Optional: dry_run, confirm."
      +  }
      +]
    • changedInput schema / properties / values / description
      Previous value: -"Flat setting keys and new values, e.g. { \"name\": \"News\", \"entries_per_page\": 10, \"comments_enabled\": true }. A flat key joins the nested path with _ (cover.thumb_width -> cover_thumb_width); list fields such as fields are sent whole. Key names are 1-64 letters, digits or _; field names are described in the module OpenAPI specification (docs_tool)."New value: +"Flat setting keys and new values, e.g. { \"name\": \"News\", \"entries_per_page\": 10, \"comments_enabled\": true }. A flat key joins the nested path with _ (cover.thumb_width -> cover_thumb_width); list fields such as fields are sent whole. Key names are 1-64 letters, digits or _; field names are described in the module OpenAPI specification (docs_tool). Access keys of services (site captcha keys, shop map keys) are not accepted: the site owner sets them in the site control panel."
  3. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "settings_update",
      -    "description": "Changes only the passed keys of the settings of a module. The result lists changed keys (before and after) and unchanged keys: an unchanged key was unknown, already set, or clamped by the module; access keys are shown only as (set) or empty. confirm is required (not for a dry run) to turn on users reinstall_popup_templates or mass_mail, forum reset_visitor_record, site availability_closed, seo seo_DisableIndexing; to turn off users awards_enabled (deletes all awards), shop search_log_history (drops the search log), or options_other_categories of blog, news, board, publ, load, dir, stuff (removes entries from their additional categories); to change shop cart_invoice_next_number; and to pass users registration_allow_unet or registration_allow_local (can switch registration from uID to local users for good). These keys take a plain value, not an object or a list. A key passed both flat and nested is refused. Required: module, values. Optional: dry_run, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "settings_update",
      +    "description": "Changes only the passed keys of the settings of a module. The result lists changed keys (before and after) and unchanged keys: an unchanged key was unknown, already set, or clamped by the module; access keys are shown only as (set) or empty. warnings, when present, lists the passed values the module ignored. confirm is required (not for a dry run) to turn on users reinstall_popup_templates or mass_mail, forum reset_visitor_record, site availability_closed, seo seo_DisableIndexing; to turn off users awards_enabled (deletes all awards), shop search_log_history (drops the search log), or options_other_categories of blog, news, board, publ, load, dir, stuff (removes entries from their additional categories); to change shop cart_invoice_next_number; and to pass users registration_allow_unet or registration_allow_local (can switch registration from uID to local users for good). These keys take a plain value, not an object or a list. A key passed both flat and nested is refused. Required: module, values. Optional: dry_run, confirm."
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "module",
      +  "values"
      +]
  5. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag readOnlyHint=false and destructiveHint=true, so the safety profile is known. The description adds real context beyond that: only passed keys are touched, unchanged keys are reported, a dry run mutates nothing, and service access keys (captcha, maps) are refused outright because they live in the control panel. It omits any mention of the confirm gate, which is a notable behavior for a destructive tool.

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?

Three tight sentences, front-loaded with the mutation behavior before the dry-run and refusal caveats. The closing clause about the site control panel is slightly redundant with the schema, but nothing is wasted at the sentence level.

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

Completeness4/5

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

For a destructive write tool with a rich 6-parameter schema and a nested values object, the description covers the important behavioral ground: partial application, change reporting, dry-run safety, and key refusals. The one material gap is the confirm requirement for dangerous keys, which appears only inside the schema's action description.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already carries the parameter burden in exceptional detail. The description reinforces the refusal rule for access keys and the dry-run meaning of values, but adds no meaning for confirm or the flat-key path that the schema doesn't already cover; baseline 3 fits.

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

Purpose4/5

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

"Changes the settings of a module of the site" gives a specific verb and resource, and "updates only the passed keys and reports which of them changed" nails down partial-update semantics. It never names settings_read, so the read/write split is inferred from the verb plus the dry-run sentence rather than stated.

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

Usage Guidelines3/5

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

The description implies when this applies (mutating module settings) and explains the dry-run path, which effectively points at the read-only alternative without naming settings_read. There are no explicit when-not conditions or named alternatives, so routing is left largely to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.