Skip to main content
Glama

Edit a Playbook Section

update_playbook_section
DestructiveIdempotent

Replaces or merges one content section (any except workflowRecipes) of a playbook the user owns and writes a new version. mode "replace" (default) sets the section; "merge" deep-merges objects and unions string arrays. baseVersion must equal the current version, otherwise the call returns a version conflict naming it; version (x.y.z, above the current one) replaces the default patch bump. The whole document is re-validated and re-scanned; acknowledgments for terms still present are kept unless ackMode is "replace". An unknown or not-owned id changes nothing. [Bearer scope: playbook:write]

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": {
      "section": "<section>",
      "value": "<value>",
      "baseVersion": "<baseVersion>"
    },
    "name": "update_playbook_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDefault 'replace'. 'merge' deep-merges plain objects and unions string arrays (case-insensitive dedupe); scalars take the incoming value.
valueYesNew section value (replace) or partial to merge in (merge).
ackModeNoDefault 'merge' — preserve recorded acknowledgments for terms still present anywhere in the patched document (so a single-section edit can't silently drop acknowledgments and re-escalate sensitivity). 'replace' records only acknowledgedTerms.
sectionYesSection to patch. workflowRecipes is excluded — recipes have dedicated tools.
versionNoOptional explicit target version (x.y.z, max 32 chars) — must be strictly greater than the current version (e.g. a 1.0.x → 1.1.0 minor bump to mark a meaningful change). Omit to auto-bump the patch component.
dotfileIdNoDeprecated alias for `playbookId`.
playbookIdNoPlaybook id — see list_playbooks. (`dotfileId` is still accepted as a deprecated alias.)
baseVersionYesThe currentVersion this edit was read against. Mismatch returns a version-conflict error naming the current version.
sensitivityNoOptional re-declaration of the playbook's sensitivity. Applied exactly, even below the stored level, when acknowledgedTerms covers every current sensitive-vocabulary match; otherwise the level rises or stays and privacyWarnings names the uncovered terms. The change is recorded in changeSummary.
changeSummaryNoOptional PlaybookVersion change summary.
acknowledgedTermsNoSensitive-vocabulary terms acknowledged so the write keeps the declared sensitivity; values shaped like secrets are still refused. With ackMode 'merge' (default) they add to recorded acknowledgments for terms still present; with 'replace' only these stay acknowledged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, which already flag destructive=true, it discloses the concurrency contract (baseVersion mismatch returns a conflict naming the current version), the re-validation and re-scan side effects, that acknowledgments survive unless ackMode is 'replace', that an unknown or not-owned id changes nothing, and the required Bearer scope playbook:write. That is exactly the extra context annotations cannot carry.

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?

The description is front-loaded with the core action and scope exclusion, and nearly every sentence carries distinct information (conflict behavior, re-scan, ack retention, auth scope). It is dense as a single block rather than broken into use-case and side-effect groups, which slightly hurts scanability for an 11-parameter tool.

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 an 11-parameter destructive mutation with nested objects and no output schema, the description covers error behavior, side effects, permission scope, and acknowledgment handling well. The notable gap is the success response: with no output schema, the agent is not told what a successful call returns (new version, change summary, warnings), so it must call blindly.

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%, so every parameter is already documented in the schema, and the description largely restates those definitions (mode, baseVersion, version format, ackMode). The added value is mainly the interplay narrative — how baseVersion and version interact and how ackMode affects recorded acknowledgments — which is useful but does not go meaningfully beyond the structured fields.

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?

The description opens with a specific verb and resource: it 'replaces or merges one content section ... of a playbook the user owns and writes a new version'. It also scopes the resource by excluding workflowRecipes and notes that recipes have dedicated tools, so an agent can tell this apart from a recipe-editing or metadata-editing sibling.

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

Usage Guidelines4/5

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

It gives clear conditions for choosing mode 'replace' vs 'merge', when to supply an explicit version vs omit it (auto patch bump), and when to use ackMode 'replace'. It never names a concrete alternative tool (for example, a metadata or recipe updater) or states when not to use this tool at all, so it stops short of full routing guidance.

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.

Resources