Skip to main content
Glama

Create a First Words Book

create_pattern_book

Create a First Words Book: a repeating-pattern picture book for the youngest readers (about 0-5), the kind that names one thing a page in one repeated sentence, like an animal and the sound it makes, or a question each page answers and passes on. Every page sets its words big and centred at the same place along the top, with a wide picture under them of the subject standing on the same ground, which runs across the full width of the page, so only the subject changes as the pages turn. Give a topic (theme) and the AI writes an original pattern and every page's words; or pass the customer's own lines (patternLines) and they are printed exactly as written, one page for each block between blank lines, or for each line when there are none. Drawn by default in a bright, cute painted-paper picture-book style on white paper; a style picture the customer uploaded (pageTemplateImage) or their style words (style) replace that style completely, background included, and the picture is never printed. Square 8.5x8.5 by default (any supported trim can be chosen), with bleed by default, for KDP. 2 credits a page (2.5 credits at the higher-quality tier) — a written book is 12, 16, 20, 24, 32 pages. Before ordering, ask the customer the topic or their lines, the child's age (ageGroup), the length, and whether they have a style picture or style in mind. The order runs straight through to a PDF.

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": {
      "ageGroup": "<ageGroup>"
    },
    "name": "create_pattern_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
bleedNoThe ground in every picture runs past the cut line, as KDP expects of a picture book. Defaults to true; false for home printing.
styleNoOptional. How the pictures should look, in the customer's words (for example soft watercolour, or crayon on brown paper). Replaces the default style.
themeNoWhat the book is about, in the customer's words, for example farm animals and their sounds, colours, or counting to ten. Leave out when patternLines carries the customer's own words.
titleNoBook title. Generated from the content when omitted.
ageGroupYesTarget age band, read by its youngest reader. Required, because it is not guessable and it changes the drawing: the four bands the page rules are written for are 3-6, 6-9, 9-13 and 13+, and line weight, how much background a page carries and how small the colourable areas get all step with them. Ask who the book is for rather than assuming the youngest band.
pageSizeNoTrim size. Defaults to 8.5x8.5, the square board-book shape; the supported sizes are returned by list_book_types.
descriptionNoOptional instructions in the customer's words: things to include, the language to write in, how the pictures should look. They come first over the AI's own choices.
highQualityNoRender pages at the higher-quality tier, as the website's page quality choice does: 2.5 credits a page for a coloring book, story coloring, educational coloring and illustrated story books, and 2 a page on an activity book's coloring pages. Defaults to false.
patternLinesNoOptional. The customer's own words, printed exactly as written. Separate pages with a blank line (a page may then have several lines), or put each page on its own line.
numberOfPagesNoHow many pages the AI writes. Leave out with patternLines: the customer's lines decide the pages.
patternLayoutNosentence (the default) = the First Words Book: one thing a page in one repeated sentence. picture_words = the Point & Say Book: a theme a page ("In the kitchen") and four cute pictures, each with its name under it, for a parent to point at and name; made from a topic only, so leave patternLines out.
pageTemplateImageNoOptional. A picture whose art style the customer wants (upload_image first and send its s3Key): every page is drawn in its style, replacing the default style. What it shows is never copied, and it is never printed. Pass exactly one of s3Key (returned by upload_image, or a picture uploaded on the website) or data (the PNG or JPEG itself, base64, at most 4 MB).
standardQualityConfirmedNoOnly with highQuality false: true once you have told the customer the Premium suggestion for books meant for sale and they chose to keep Standard ("Print home quality"). A Standard order without it is answered with that suggestion and not created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / pageSize
      Added value: +{
      +  "description": "Trim size. Defaults to 8.5x8.5, the square board-book shape; the supported sizes are returned by list_book_types.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and openWorldHint=true, so the description carries real weight and delivers: credit cost per page (2 vs 2.5), that the order runs straight through to a PDF, that pageTemplateImage/style fully replace the default art style and are never printed, and that a Standard order without standardQualityConfirmed is refused with a suggestion. These are exactly the side effects and gates an agent needs before invoking a mutation.

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?

It is front-loaded with the format description before the operational detail, and every sentence carries real content. It is dense and long, and a few clauses (bleed, default style) restate schema descriptions, mildly diluting the signal for a 13-parameter tool.

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 complex, nested-parameter mutation with no output schema, the definition still tells the agent what comes back (a PDF), what it costs, what the pre-flight customer questions are, and the one refusal path. Nothing essential to calling it correctly is missing.

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 cross-parameter meaning beyond the schema: theme must be omitted when patternLines carries the customer's words, numberOfPages is left out with patternLines, and picture_words is topic-only. ageGroup's drawing impact is echoed from the schema rather than newly added, so this stops short of a 5.

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 description gives a specific verb and resource ('Create a First Words Book: a repeating-pattern picture book') and then defines the format concretely (one thing per page, one repeated sentence, big centred words over a wide picture). It also distinguishes the two product modes (sentence = First Words Book, picture_words = Point & Say Book), so an agent can tell this apart from the sibling coloring/activity book creators.

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 clearly states the two input routes (give a theme and the AI writes; or pass patternLines to print exactly) and adds a pre-order checklist: ask the topic or lines, the child's age, the length, and whether they have a style picture or style. What is missing is explicit routing away from sibling tools such as create_coloring_book or create_activity_book when the customer wants a different book type.

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