Skip to main content
Glama

update_playbook

Update specific fields of an existing playbook to refine triggers, instructions, sources, or tools while preserving untouched edits; references and tools require full replacement lists.

Instructions

Change fields of an existing playbook. Prefer this over create_playbook whenever one already nearly covers the case — two overlapping playbooks are worse than one good one. Use it to pin a source that turned out to matter, to fold in a correction the user just made, or to sharpen a when line that was matching too broadly. Only the fields you pass are touched, so hand edits the user made in the editor survive. references and tools REPLACE the existing list, so send the full list you want.

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": {
      "workspace": "<workspace>",
      "playbook": "<playbook>"
    },
    "name": "update_playbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
whenNoNew one-line trigger
titleNoNew title (the filename deliberately does not change)
toolsNoFull replacement list of tool names
libraryNoOptional library id, title or path to disambiguate a repeated title
playbookYesPlaybook id, title or path (from list_playbooks)
workspaceYesWorkspace path/name
referencesNoFull replacement list of doc: links
instructionsNoNew markdown body (replaces the whole body)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.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 whole burden and does most of it: it discloses partial-update semantics ('Only the fields you pass are touched'), preservation of concurrent editor edits, and the destructive sub-behavior that `references` and `tools` REPLACE the entire existing list. It does not cover failure modes (unknown playbook id), permissions, or whether an update is reversible, which keeps it short of a 5.

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?

Four sentences, front-loaded with purpose, then routing, then use cases, then the critical replace-semantics warning at the end where it matters most. No filler and the emphasis on REPLACE is proportionate to the risk of data loss.

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 eight-parameter mutation with no output schema and no annotations, the description covers the essentials: what changes, what is preserved, and which fields overwrite wholesale. Remaining gaps are error/permission behavior and any confirmation the caller gets back, which are moderate rather than blocking.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the replace-vs-merge distinction for list fields is called out prominently, and the `when` parameter is framed functionally ('a `when` line that was matching too broadly') rather than just 'New one-line trigger'. It also implicitly clarifies why `title` works without renaming the file, matching the schema note.

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?

Opens with a specific verb+resource combo ('Change fields of an existing playbook') and immediately distinguishes itself from the sibling create_playbook. An agent knows this is a partial mutation on an existing entity, not a creation path.

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

Usage Guidelines5/5

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

Explicitly names the alternative ('Prefer this over create_playbook whenever one already nearly covers the case') and gives the selection rule ('two overlapping playbooks are worse than one good one'). It then lists three concrete situations that justify an update — pinning a source, folding in a correction, sharpening a `when` line — so the when-to-use decision is fully specified.

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