Skip to main content
Glama

Configure modules

modules_write
Destructive

Installs a module, enables or disables uAPI for a module, lifts the indexing quarantine.

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>"
    },
    "name": "modules_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
confirmNoPass true only after the user approves this change. Required by: quarantine_unlock.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.
module_codeNoLowercase module code, as listed by modules_list (field module) or active_mods (field code) on the same site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / module_code / description
      Previous value: -"Lowercase module code, as listed by modules_list (field module) or active_mods (field code) on the active site."New value: +"Lowercase module code, as listed by modules_list (field module) or active_mods (field code) on the same site."
    • 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"
      -]New value: +[
      +  "action",
      +  "site_id"
      +]
  2. Added

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is largely covered. The description restates the operations already enumerated in the schema's oneOf entries and adds nothing about irreversibility, what disabling uAPI breaks, or that quarantine_unlock requires the confirm flag beyond what the schema says. For a destructive multi-action tool, no extra behavioral context is provided.

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?

A single compact sentence that front-loads the operations without filler. It is efficient, though the parallel list structure does not signal which operations are riskier or require extra parameters.

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?

With 100% schema coverage and explicit destructive annotations, the definition is callable as written. However, for a four-action destructive tool with no output schema, the description omits any explanation of outcomes or the confirm workflow, leaving gaps an agent must fill from the schema alone.

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% and each parameter, including the action enum and confirm gate, is documented in the schema. The description only repeats the action names at a high level, so the baseline of 3 applies with no additional semantics contributed.

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?

The description names all four concrete operations: module install, uAPI enable/disable, and quarantine unlock, each tied to the module resource. An agent can tell this apart from modules_read or modules_uninstall because those verbs (read, uninstall) are not covered here. It stops short of a 5 only because it does not explicitly bisect the boundary with modules_uninstall.

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

Usage Guidelines2/5

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

There is no when-to-use versus when-not guidance and no mention of the alternative tool for removal (modules_uninstall) or of prerequisites such as needing the module code from modules_list first. The only routing help comes from the schema's action enum, not from the description.

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.