Skip to main content
Glama

legal_update_settings

Update the legal document settings for a site, including the write-only GitHub token and per-document required overrides, then return the current settings with secrets masked as set.

Instructions

Update cvrt-legal settings. github_token (PUC auto-updates on a private repo) is write-only: a blank value keeps the stored one. required_override forces a document required or not ({agb: false}). Returns the settings as legal_get_settings does (secrets as { set }).

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": {
      "site": "<site>"
    },
    "name": "legal_update_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
github_tokenNoGitHub token for plugin updates (write-only, never returned); blank keeps the stored one
required_overrideNodoc => required, overriding the built-in rule (shop documents are required while WooCommerce is active). REPLACES the stored map as a whole; {} removes every override.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.14.0
    • changedInput schema / properties / github_token / description
      Previous value: -"GitHub token for plugin updates; blank keeps the stored one"New value: +"GitHub token for plugin updates (write-only, never returned); blank keeps the stored one"
    • changedInput schema / properties / required_override / description
      Previous value: -"doc => required, overriding the WooCommerce rule"New value: +"doc => required, overriding the built-in rule (shop documents are required while WooCommerce is active). REPLACES the stored map as a whole; {} removes every override."
    • addedInput schema / properties / required_override / propertyNames
      Added value: +{
      +  "enum": [
      +    "impressum",
      +    "datenschutz",
      +    "agb",
      +    "widerruf",
      +    "barrierefreiheit"
      +  ]
      +}
  2. Addedv3.4.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that github_token is write-only and that a blank value preserves the stored secret, that required_override applies a forced per-document decision with an example, and that secrets come back masked as { set }. It does not mention required capabilities or whether the merge is partial for other fields.

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 short sentences, front-loaded with the verb+resource, then parameter notes, then the return shape. Dense and functional; the parenthetical about PUC auto-updates is slightly cryptic but not wasteful.

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

Completeness3/5

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

No output schema exists, so explaining the return value is necessary and is done, and the nested override object's replacement semantics are covered. Gaps remain around permissions/error behavior and around whether required_override only governs the enumerated document types.

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 coverage is 100% and already documents all three parameters, including the blank-keeps-stored semantics and that the override map replaces the stored one. The description adds a concrete usage example ({agb: false}) and restates the write-only nature, which is marginal but not redundant noise.

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?

Names a specific verb+resource ("Update cvrt-legal settings") and distinguishes itself from the read counterpart by pointing to legal_get_settings for the return shape. It does not explicitly separate itself from legal_update_section, so differentiation from that sibling is left implicit.

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?

Usage is implied by the mutating verb and by the reference to legal_get_settings for what comes back, but there is no explicit when-to-use guidance, no prerequisites (permissions/auth), and no statement about when to prefer legal_update_section instead.

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