Skip to main content
Glama

Compare Two Playbooks

compare_playbooks
Read-onlyIdempotent

Compares two playbooks the user can access with bounded output. Returns summary counts, bounded samples across categories, and mergedSections sizes for the suggested merge (full merged output is not inlined). Pass category + offset (plus valueStart when an entry is sliced) to page diff findings, or mergedSection (+ optional field, recipeIndex, offset, valueStart, limit) to read sections of the suggested merge, pinning continuations with expectedRevisionToken. Text written by other operators is marked as publisher-supplied content. [Bearer scope: playbook:read | playbook:compare | playbook:export]

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": {
      "aId": "<aId>",
      "bId": "<bId>"
    },
    "name": "compare_playbooks"
  }
}

Input Schema

NameRequiredDescriptionDefault
aIdYesFirst playbook id
bIdYesSecond playbook id
fieldNoOptional field within mergedSection (or workflowRecipes[recipeIndex]).
limitNoOptional page size (clamped within budget).
offsetNoNon-negative collection paging offset (max 10000). Requires expectedRevisionToken and category or mergedSection when > 0.
categoryNoOptional comparison category to page in full.
valueStartNoNon-negative served UTF-16 position (nextValueStart) for slicing scalar mergedSection text fields or oversized category findings. Requires expectedRevisionToken when > 0.
recipeIndexNo0-based workflowRecipes index (when mergedSection is 'workflowRecipes').
mergedSectionNoOptional section of the suggested merged playbook to inspect.
expectedRevisionTokenNoRevision token from page 1; required on continuation pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, yet the description still adds real context: output is deliberately bounded and the full merged playbook is not inlined, continuations must be pinned with expectedRevisionToken, and text from other operators is flagged as publisher-supplied. The bearer scope string also tells the agent which permissions are required. Only failure modes (stale token, expired page) are left unstated.

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?

Front-loaded with the purpose and output shape before the paging mechanics, and no sentence is filler. The middle instruction sentence is long and comma-dense, which costs a little scannability, but nothing is redundant.

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 10-parameter, no-output-schema tool with continuation paging, the description covers what is returned (counts, bounded samples, section sizes), how to page, and the trust caveat on third-party text. What is missing is what happens when a continuation token is stale or a budget is exhausted, which matters for a paging tool.

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 would be 3, but the description adds combination semantics the schema cannot express: category+offset for findings versus mergedSection(+field, recipeIndex, limit) for the merge, and valueStart only 'when an entry is sliced.' That explains how the ten parameters interlock rather than just restating them.

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?

States a specific verb and resource ('compares two playbooks the user can access') plus the output shape ('summary counts, bounded samples, mergedSections sizes'), so an agent knows exactly what it gets. It does not name or differentiate itself from the sibling compare_agent_setups, which is the one plausible confusion, so it falls short of a 5.

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?

The description does give operational routing between the two paging modes: 'Pass category + offset ... to page diff findings, or mergedSection ... to read sections of the suggested merge.' That is useful mode selection, but there is no guidance on when to choose this tool over compare_agent_setups or get_playbook_by_id, and no statement of when a comparison is unnecessary.

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