Skip to main content
Glama

Lay out a printed book

layout_book
Destructive

Lays out a story, memoir, letters or recipe collection from this conversation as a printed 8.5-inch square book and shows a page-by-page preview. Use it when the user wants something written in the chat turned into a physical book, or to change a book made earlier (pass book_id; only the fields you pass change). Pass the text exactly as written, split into sections (one per page of a picture book, or one per chapter/recipe). Never summarise or shorten it. This client cannot pass pictures from the conversation: leave images empty; the result has an editor link where the user uploads pictures. This only creates a draft preview; nothing is printed or charged.

Input Schema

NameRequiredDescriptionDefault
styleNopicture = one picture and short text per spread (children's stories); text = flowing chapters (memoirs, recipes, letters)
titleNoBook title
authorNoAuthor name as it should appear on the cover, e.g. "Grandma Rosa"
imagesNoPictures from the conversation, in the order referenced by sections
book_idNoId of a book made earlier, to update it
countryNoISO country code the book will ship to, if known, to show the right price
languageNoLanguage the book is written in (sets the printed words like "The End"). Defaults to the conversation language.
sectionsNoThe book content in order
subtitleNo
full_textNoAlternative to sections: the whole text; it is split at blank lines
dedicationNoDedication page text, e.g. "For Lucía, love Mum"
cover_imageNoIndex into `images` for the front cover; defaults to the first picture

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, non-idempotent, potentially destructive operation, and the description adds crucial operational context: it produces a draft preview only, nothing is printed or charged, and the client cannot pass conversation images so `images` must be left empty (pictures are uploaded via an editor link in the result). It does not explicitly reconcile the destructiveHint=true label with the 'only the fields you pass change' partial-update behaviour, which would have closed the remaining gap.

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 most decision-relevant facts come first (what it produces, when to call it), followed by constraints and the non-billing reassurance. It is a fairly long block, but each sentence carries a distinct instruction; the only near-repetition is 'Never summarise or shorten it' reinforcing 'pass the text exactly as written'.

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 12-parameter tool with no output schema, the description covers the important operational unknowns: that the deliverable is a draft preview with an editor link, that pricing is only a display concern (country), and how images actually get attached. What remains unexplained is the return shape beyond the preview and how section-to-page mapping behaves for the two styles.

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 92%, so the baseline is 3, but the description genuinely adds meaning: partial-update semantics for book_id, the requirement to pass text verbatim and unsectioned-summary-free, and the instruction to leave `images` empty despite the schema's own description suggesting conversation pictures can be supplied. The style distinction (picture vs text) is left entirely to the schema enum description.

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 sentence gives a specific verb ('lays out'), resource ('8.5-inch square book'), input sources ('story, memoir, letters or recipe collection'), and an observable outcome ('shows a page-by-page preview'). It is clearly distinct from the sibling create_print_order, which is the ordering step rather than the layout step.

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?

It names two explicit triggers (turn chat text into a book; change a book made earlier via book_id) and states the update semantics ('only the fields you pass change'). It also routes between content modes by pointing to sections vs full_text and explicitly forbids summarising.

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