Skip to main content
Glama

ac_apply_csp_preset

Apply a Content Manager CSP preset by rewriting the ext/*.ini override files it covers, with an automatic backup created first for safe rollback.

Instructions

Apply a Content Manager CSP preset: rewrites the ext/*.ini overrides of the modules it covers. Backup first.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the key behavioral trait—this is a mutating operation that rewrites ext/*.ini files across multiple modules—plus the 'Backup first' safety instruction. It omits reversibility (whether ac_undo covers this), whether backup is automatic, and what happens on partial failure, which are significant gaps for an unannotated write tool.

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

Conciseness5/5

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

Two short sentences with zero filler; the action and its file-level effect come first, and the safety admonition is placed last as a compact imperative. Nothing needs trimming.

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 one-parameter mutation tool with no annotations and no output schema, the description covers what it does, what it touches, and one critical precaution. The remaining gap is preconditions for the preset name and post-call verification, which keeps it below a 5.

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?

The single 'name' parameter has 0% schema description coverage, so the description must compensate. It implies the value is a preset name and ties it to CSP presets, but never states the expected format, case sensitivity, or where valid names come from (e.g., ac_list_presets). That leaves meaningful ambiguity despite only one parameter.

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 definition uses a specific verb and resource ('Apply a Content Manager CSP preset') and adds the concrete effect ('rewrites the ext/*.ini overrides of the modules it covers'), which clearly separates it from the sibling ac_save_csp_preset. It stops short of 5 because 'CSP' is never expanded and the scope of 'modules it covers' 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?

'Backup first.' supplies one actionable prerequisite, which is real guidance. However, there is no when-to-use versus when-not framing and no routing toward alternatives such as ac_save_csp_preset or ac_apply_video_preset, so the agent must infer the selection context.

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