Skip to main content
Glama

Get Playbook by ID

get_playbook_by_id
Read-onlyIdempotent

Returns one playbook the user can access (owned, example, share link or active grant); omit id for your most recent playbook. Defaults to detail 'metadata': listing fields (omitting oversized ones cleanly; readable via field + valueStart), revisionToken, markdownLength, section sizes, and bounded scanAcknowledgments. Use detail 'section' (with section, field, recipeIndex, offset for lists, valueStart for text, limit) or 'markdown' (markdownStart, markdownLength). Legacy 'content'/'full' inline below 49k chars, otherwise returning the bounded manifest. Continuations require id and expectedRevisionToken. Counterparty text is marked as publisher-supplied content. [Bearer scope: playbook:read | playbook:export]

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": "get_playbook_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoPlaybook id. Omit for your most recently updated playbook on page 1; required for continuation reads.
fieldNoOptional field name inside the selected section, inside workflowRecipes[recipeIndex], or metadata listing field ('title' | 'summary' | 'tags' | 'version').
limitNoOptional page size (default 10, clamped [1, 60] within response budget).
detailNoDefault 'metadata'. Use 'section' or 'markdown' for bounded content reads; 'content'/'full' are deprecated and inline only below 49,000 chars.
offsetNoNon-negative collection paging offset (max 10000) for workflowRecipes or array fields. Requires expectedRevisionToken when > 0.
sectionNoWith detail 'section' (or triggers section mode): which playbook section to read.
valueStartNoNon-negative served UTF-16 position (nextValueStart) for slicing scalar string fields or oversized array items. Requires expectedRevisionToken when > 0.
recipeIndexNo0-based workflowRecipes index (when section is 'workflowRecipes').
markdownStartNoNon-negative UTF-16 offset in served markdown for detail 'markdown'. Requires expectedRevisionToken when > 0.
markdownLengthNoOptional served markdown chunk size (clamped within the 50,000-char hard budget).
acknowledgmentsLimitNoOptional scanAcknowledgments page size (default 20, max 120).
acknowledgmentsOffsetNoNon-negative paging offset (max 10000) for scanAcknowledgments. Requires expectedRevisionToken when > 0.
expectedRevisionTokenNoRevision token from the initial response; required on continuation pages to detect concurrent playbook or metadata changes.

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?

Annotations only declare a safe idempotent read; the description adds the real behavioral picture: the default 'metadata' mode, clean omission of oversized fields, a 49k inline cap that flips into a bounded manifest, and the rule that continuations require id plus expectedRevisionToken. It also discloses the bearer scopes and that counterparty text is publisher-supplied, which is trust-relevant context nothing else conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, which is good, but the remainder is a single dense paragraph that re-lists schema parameters ('section, field, recipeIndex, offset for lists, valueStart for text, limit') despite full schema coverage. That repetition costs comprehension without adding meaning.

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, multi-mode read tool with no output schema, the description does the work: it names what each mode returns (listing fields, revisionToken, markdownLength, section sizes, scanAcknowledgments), states budgets and continuation rules, and covers auth scope. Nothing an agent needs to invoke it correctly is missing.

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 the baseline is 3 and each parameter is already individually documented. The description adds some relational meaning — mapping detail modes to section, recipeIndex, offset and valueStart, and tying continuations to expectedRevisionToken — but its enumeration of parameter names largely restates what the schema already says.

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 first clause gives a specific verb and resource plus scope: 'Returns one playbook the user can access (owned, example, share link or active grant)', and the 'one playbook' framing plus the omit-id fallback clearly separates it from the list_playbooks sibling. An agent knows exactly what it gets back before opening the schema.

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 concrete selection rules — omit id for the most recent playbook, use detail 'section' or 'markdown' for bounded content reads, and avoid the deprecated 'content'/'full' modes below the 49k threshold. It never names an alternative tool for enumerating playbooks, so it stops short of full when/when-not routing.

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