Skip to main content
Glama

Fit a cover inside KDP's lines

fit_cover_to_kdp

Bring an existing paperback cover inside KDP's trim and safe lines WITHOUT redrawing it: every word, character and the whole design stay exactly as they are, only made a little smaller and moved where something crossed a line, with the freed edge filled to match. Use it when a cover the customer likes was refused by KDP or has its title, characters or objects too close to the edge — never order a new cover or redraw a side just to fix the edges, because a redraw changes the art. A side already inside is left untouched. Runs in the background: poll get_job_status with the same jobId until it is IMAGES_READY again, then call generate_pdf to rebuild the cover's 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": {
      "jobId": "<jobId>"
    },
    "name": "fit_cover_to_kdp"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe cover's jobId, as create_cover_photo or list_my_books returned it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only tell the agent it is a non-readonly, non-destructive, open-world call; the description goes well beyond that by disclosing the transformation model (scale down, relocate, fill the freed edge), the preservation guarantee, and the no-op condition. It also discloses the async execution model and the exact follow-up sequence (poll get_job_status with the same jobId until IMAGES_READY, then generate_pdf), which is the single most important behavioral fact for this tool.

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 core action and the non-destructive guarantee before the usage guidance and the polling instructions, so an agent can stop reading early and still be correct. It is dense and runs long as one paragraph, and the KDP constraint is restated twice ("inside KDP's trim and safe lines" / "too close to the edge"), which is minor redundancy rather than bloat.

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 single-parameter async mutation with no output schema, the description supplies everything an agent needs: what is changed, what is preserved, when not to use it, that no result is returned synchronously, and the exact next calls to make. Nothing about correct invocation is left to inference.

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% and the single jobId parameter is fully documented in the schema, so the baseline is 3. The description only lightly reinforces this by instructing the agent to reuse "the same jobId" for the polling step, tying the parameter to the downstream workflow rather than adding new meaning.

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?

"Bring an existing paperback cover inside KDP's trim and safe lines WITHOUT redrawing it" states a specific verb and resource plus the key constraint (no redraw), which immediately separates it from generate_pdf and the create_* book tools. The added clause "every word, character and the whole design stay exactly as they are" pins down what the operation actually does to the artifact.

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 trigger ("when a cover the customer likes was refused by KDP or has its title, characters or objects too close to the edge") and an explicit prohibition with rationale ("never order a new cover or redraw a side just to fix the edges, because a redraw changes the art"). It also states the no-op case — "A side already inside is left untouched" — which prevents pointless invocations.

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