Skip to main content
Glama

create_playbook

Saves a repeatable approach as a playbook so similar questions are answered consistently; use when a user states a standing preference or a correction applies beyond one answer.

Instructions

Save a repeatable approach as a playbook, so the next question of the same kind gets answered the same way. Use when the user asks to save an approach, or accepts an offer to save one: typically after they state a standing preference ("always quote the statute", "from now on…") or correct an approach in a way that generalises beyond one answer. Not for a one-off lookup, or when an existing playbook nearly covers the case: list_playbooks shows those and update_playbook changes one. Keep when narrow and concrete: a vague trigger makes every later question match it. Put the exact sources in references as doc: links, ideally the citations just used.

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>",
      "library": "<library>",
      "title": "<title>",
      "when": "<when>"
    },
    "name": "create_playbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
whenYesOne line describing when this applies, e.g. "A user asks for a summary of a single case." This is what a model reads to choose it.
titleYesShort name, e.g. "Case summary"
toolsNoOptional names of the tools this playbook expects to be used
libraryYesLibrary id, title or path the playbook belongs to (call list_libraries first)
workspaceYesWorkspace path/name
referencesNoSources to read every time, as doc: links (a library section citation, or doc:<path> for a workspace document)
instructionsNoMarkdown body: the steps to follow and the shape of the output

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does well: it makes clear this is a persistent write whose content steers future model behaviour, and warns that a vague `when` makes every later question match. It stops short of stating persistence scope, duplicate-title behaviour, or permission requirements, which are the remaining behavioural gaps.

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?

Purpose is front-loaded in the first sentence, then usage, exclusions, and parameter advice in priority order. It is dense with no filler, though the middle sentence is long enough that an agent must parse several clauses to extract the trigger conditions.

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?

A 7-parameter mutation tool with no annotations and no output schema gets solid coverage: purpose, when and when-not, alternatives, and guidance on the two discretionary fields (`when`, `references`). Minor gap is that it says nothing about what happens to an identical existing playbook or what is returned on success.

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 genuine meaning beyond it: it explains why `when` must be narrow and concrete (it is the text a model reads to choose the playbook) and specifies the exact format for `references` as doc: links with citations just used. The `tools` and `instructions` parameters are left to the schema.

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?

States a concrete verb and resource ("Save a repeatable approach as a playbook") plus the downstream effect ("the next question of the same kind gets answered the same way"). This clearly separates it from read_playbook, list_playbooks and update_playbook without needing the sibling schemas.

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?

Gives explicit positive triggers (user asks to save, accepts an offer, states a standing preference like "always quote the statute", or corrects in a generalisable way) and explicit exclusions (one-off lookups, cases nearly covered by an existing playbook). It names the alternatives and what each does: list_playbooks shows existing ones, update_playbook changes one.

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