Skip to main content
Glama

Create a cover photo

create_cover_photo

Create a print-ready KDP paperback cover photo. Generate a coordinated front and back cover from a description, or supply either side as an image. Every side is kept inside KDP's trim and safe lines. When get_job_status shows IMAGES_READY, call generate_pdf with the same jobId to build the cover's print PDF. To fix the edges of a cover the customer already has, use fit_cover_to_kdp — never order a new cover for that, because a new cover is drawn again and its art changes. To print text on the spine, say so in the description and give the title and the author's name for it. Every spine is laid out by the same rule, so the books of a series line up on a shelf: the title reads top to bottom starting 0.25in below the top, the author's name ends 0.25in above the bottom, and both are lettered at the same size inside KDP's spine margins. The description may set the spine's colours (its background and its lettering). A picture or icon goes on the spine only when the description asks for one, and then it sits upright above the title; never add one the customer did not ask for. Spine text needs a spine at least 0.25in wide (56 sheets on white paper, 50 on cream, 54 on colour); a thinner book that asks for spine text is refused with that reason. If the cover is for a book the customer made here, link it with sourceJobId so the cover is drawn with that book's own characters and the character pictures they uploaded; without it the characters are invented from the description and will not match the book. A linked book also sizes the spine: leave sheetCount out and it is read from that book's PDF. Send sheetCount only for an interior made elsewhere. Find the book with list_my_books. If the customer has not said whether the cover is for one of their books, or more than one book could be the one, ask them which book before ordering — show them the titles from list_my_books.

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": {
      "description": "<description>"
    },
    "name": "create_cover_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
bleedNoDEPRECATED and ignored: a KDP paperback cover always has 0.125in bleed on every side, even for a no-bleed interior, and every cover is built with it.
titleNoBook title. Generated from the description when omitted.
bookTypeNoInterior book type, which directs the cover art. It no longer affects the spine — sheetCount says how thick the book is on its own.
pageSizeNoInterior trim size such as 8.5x11.
sheetCountNoLeave out when sourceJobId links one of the customer's books: the sheets are read from that book's PDF. Otherwise required: how many SHEETS of paper are in the interior. A sheet is one physical piece of paper, and the spine is as thick as the stack of them — this is the only quantity the spine width is computed from. Count it from the interior itself: a book printed on both sides puts two pages on each sheet, so 24 pages is 12 sheets; a coloring or drawing book printed one side per sheet puts one page on each, so 24 pages is 24 sheets. Equivalently, it is the finished interior PDF's page count divided by two.
descriptionYesThe book theme and visual direction used to generate the cover art and title.
printOptionNoDEPRECATED — send sheetCount instead. This was never a property of a cover: it only said how to turn numberOfPages into sheets. Ignored when sheetCount is given.
sourceJobIdNoThe jobId of the customer's own book this cover is for. Pass it whenever the cover belongs to a book made here: the cover is then drawn with that book's own characters — including any character pictures the customer uploaded — and its style and story, instead of characters invented from the description. The book must belong to the customer, must not be another cover, and must have its pages drawn. The description still says what the cover shows and overrides the book where they differ. list_my_books lists the customer's books with their jobIds and says which can be linked; when it is not clear which book the cover is for, ask the customer.
numberOfPagesNoDEPRECATED — send sheetCount instead. Ordered interior pages, converted to sheets using printOption. Ignored when sheetCount is given.
backCoverImageNoOptional supplied cover art for this side; omit it to generate that side. A supplied side must have the shape of this book's cover side — the trim plus KDP's 0.125in bleed on its three outer edges — and at least 300 dpi: 8.5x11 book: 8.625x11.25in, 2588x3375 pixels; 8.5x8.5 book: 8.625x8.75in, 2588x2625 pixels; 6x9 book: 6.125x9.25in, 1838x2775 pixels. Larger at the same shape is fine. A side of another shape is refused (no credits are charged) with the size to make it, because it would otherwise be centred on the cover with a blurred strip of the picture filling the gap; a side of the right shape but fewer pixels is accepted and prints soft, and the result says so. Each image must be under 4 MB (a request limit), which for a print-size photo or painting means JPEG; PNG is fine when it fits. 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).
frontCoverImageNoOptional supplied cover art for this side; omit it to generate that side. A supplied side must have the shape of this book's cover side — the trim plus KDP's 0.125in bleed on its three outer edges — and at least 300 dpi: 8.5x11 book: 8.625x11.25in, 2588x3375 pixels; 8.5x8.5 book: 8.625x8.75in, 2588x2625 pixels; 6x9 book: 6.125x9.25in, 1838x2775 pixels. Larger at the same shape is fine. A side of another shape is refused (no credits are charged) with the size to make it, because it would otherwise be centred on the cover with a blurred strip of the picture filling the gap; a side of the right shape but fewer pixels is accepted and prints soft, and the result says so. Each image must be under 4 MB (a request limit), which for a print-size photo or painting means JPEG; PNG is fine when it fits. 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).
interiorPaperTypeNoThe interior's KDP paper, which sets how thick the spine is. white: black & white on white paper, or KDP standard colour (same white paper). cream: black & white on cream. color: KDP premium colour paper only — for standard colour send white.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, so the description carries most of the burden — and it does: trim/safe-line containment, spine layout rules, minimum spine width with refusal reasons and paper-dependent sheet thresholds, the fact that a shape-mismatched supplied side is refused with no credits charged, and that linking sourceJobId reuses the book's own characters while an unlinked cover invents new ones. This is unusually rich disclosure of side effects and failure modes beyond the structured fields.

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 purpose, then the downstream step, then the exclusions, then spine rules. Every sentence conveys distinct operational information, but the spine-layout passage is long and some detail (the 0.25in offsets, lettering size) is more implementation trivia than selection guidance, which slightly dilutes the front-loading.

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?

With 12 parameters, nested image objects, no output schema, and a multi-step async workflow, the description supplies what an agent needs: precondition checks, the ambiguity-handling rule for sourceJobId, refusal conditions, and the exact next call. Nothing essential to a correct invocation appears to be 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 3 is the baseline; the description earns above that by explaining cross-parameter interactions the schema states piecemeal — leave sheetCount out when sourceJobId links a book (it is read from that book's PDF), and send it only for interiors made elsewhere. It also adds spine-text inputs not obvious from any single parameter (the title and author name must be given in the description). It does not add format or syntax details beyond what the schema already spells out.

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 names a specific verb and artifact ('Create a print-ready KDP paperback cover photo') and immediately scopes it: generate both sides from a description, or supply either side as an image. It distinguishes itself from fit_cover_to_kdp (edge fixing) and generate_pdf (the downstream PDF step) by name, so an agent can route correctly without opening a schema.

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?

Explicit when-to-use and when-not-to-use: 'To fix the edges of a cover the customer already has, use fit_cover_to_kdp — never order a new cover for that, because a new cover is drawn again and its art changes.' It also gives the follow-on workflow (wait for get_job_status IMAGES_READY, then generate_pdf with the same jobId) and an ambiguity rule — ask the customer which book, showing titles from list_my_books.

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