Skip to main content
Glama

Check a Playbook Before Saving

validate_playbook
Read-onlyIdempotent

Checks a playbook write without saving anything. check "full" (default) plans the write: the create shape {content, title?, summary?, tags?, sensitivity?, acknowledgedTerms?} mirrors create_playbook; the patch shape {playbookId, section, value, mode?, baseVersion?, sensitivity?, acknowledgedTerms?} mirrors update_playbook_section and needs the signed-in owner. Returns {valid, mode, errors, verdict, acknowledgeableTerms, wouldReject, wouldStore, redeclaration?, versionConflict?}. check "privacy" scans any JSON content plus optional title, summary and tags and returns {secrets, vocabulary, acknowledgeableTerms, warnings, suggestedRiskLevel, suggestedSensitivity}: secrets are refused at publish, vocabulary terms can be acknowledged. Setup-snapshot items are checked with dryRun on the snapshot write tools. [Anonymous-callable]

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_playbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoPatch shape: default 'replace'.
tagsNo
checkNo'full' (default): plan the write. 'privacy': privacy scan only.
titleNoCreate shape: title the write would use.
valueNoPatch shape: section value/partial.
contentNoCreate shape and privacy check: the document to check.
sectionNoPatch shape: section to patch.
summaryNoCreate shape: optional summary.
dotfileIdNoDeprecated alias for `playbookId`.
playbookIdNoPatch shape: id of the user's playbook to check a section patch against. `dotfileId` is a deprecated alias.
baseVersionNoPatch shape: optional — when provided and stale, the result carries versionConflict {baseVersion, currentVersion}.
sensitivityNoCreate shape: declared sensitivity (default 'internal'). Patch shape: a re-declaration of the stored level, applied only when acknowledgedTerms covers every current sensitive-vocabulary match.
acknowledgedTermsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, and the opening line largely restates that no write occurs. The description does add genuinely non-annotation context (patch shape needs the signed-in owner, secrets are refused at publish while vocabulary terms are acknowledgeable, stale baseVersion yields versionConflict), but much of the remaining text is a field-by-field return enumeration rather than behavioral disclosure.

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 critical fact (no save happens) is front-loaded and every sentence carries information. It is dense to the point of being hard to scan, packing two return-object listings and an inline brace-notation parameter recap into one block, which costs a little readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter, zero-required, nested-object tool with no output schema, the description supplies the return field names for both modes, the enum-driven mode split, and the versioning/acknowledgement edge cases. Nothing an agent needs in order to call it correctly is missing.

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

Parameters5/5

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

Well beyond the 85% schema coverage: it tells the agent which parameters belong to which shape (create vs patch), that playbookId/dotfileId is the owner's playbook under patch mode, and that sensitivity in patch mode is a re-declaration applied only when acknowledgedTerms covers every current sensitive-vocabulary match. Those are conditional semantics the schema does not express.

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+scope: "Checks a playbook write without saving anything." It then explicitly distinguishes itself from create_playbook and update_playbook_section by framing its two input shapes as mirrors of those writers, so an agent knows this is the dry-run counterpart rather than a writer.

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 mode selection: check "full" (default) plans the write, check "privacy" scans arbitrary JSON plus optional metadata. It also routes a distinct case — setup-snapshot items — to dryRun on the snapshot write tools instead, which is a real when-not-here/use-elsewhere instruction.

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