Skip to main content
Glama

Import a finished cover

import_cover
Destructive

Import a finished front cover the user owns (from a designer, another tool, an older book), as the app's External Cover Studio does. 0 credits for a 5:8 cover; 1 credit when AI must extend it to 5:8 (refunded if that fails). Returns a coverId for every cover tool (wrap, audiobook, text removal, export). The image: attached in the chat or on the user's device → call with no upload_id or image_url, give the user the upload link, wait until they say it is done, then call again with upload_id. At a public https URL → image_url. JPEG, PNG or WebP, 256-4096 px, up to 10 MB. The book: book_id, or title, author and genre for a new one. Ask the user to confirm they have the rights to the image, then send rights_confirmed: true.

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

Input Schema

NameRequiredDescriptionDefault
genreNoNew book: genre slug or name.
titleNoNew book.
authorNoNew book.
book_idNoAn existing book (from list_books). Omit to create one.
summaryNoNew book.
subgenreNoNew book.
subtitleNoNew book.
image_urlNoA public https URL of the cover.
upload_idNoThe upload_id from the first call, once the user uploaded the file.
content_typeNoFirst call only: also return a curl command.
rights_confirmedNoRequired: the user confirmed they have the rights to the image.

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?

Beyond the annotations (which only say mutation, open-world, non-idempotent, destructive), the description discloses the credit model (0 credits for a 5:8 cover, 1 credit for AI extension, refunded if extension fails) and the asynchronous human-in-the-loop flow requiring a wait between calls. These are exactly the cost and side-effect details an agent needs before invoking a billed write operation.

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 labeled 'The image:' / 'The book:' blocks make the dense content scannable, and every sentence carries operational content. It is slightly front-loaded with a long first sentence and could have stated the two-step call pattern before the credit facts, but there is no filler.

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 an 11-parameter mutation with no output schema and a multi-turn upload flow, the description covers cost, prerequisites (rights), file constraints, book creation path, and the returned coverId. An agent could invoke this correctly without opening the schema.

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 genuine semantics the schema lacks: upload_id is produced on the first call and consumed on the second, image_url must be public https, and book_id versus title/author/genre is an either-or choice. It does not cover the odd content_type 'also return a curl command' behavior or the accepted image constraints per-field, but the flow-level meaning is well conveyed.

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 opens with a specific verb and resource ('Import a finished front cover the user owns') and enumerates the sources it covers (designer, another tool, an older book), which distinguishes it from generation/editing siblings. It also names the concrete return value ('a coverId for every cover tool'), so an agent knows exactly what it gets back and can chain to wrap/audiobook/export tools.

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 gives explicit branching guidance: image in chat/device vs public https URL, existing book_id vs new title/author/genre. It also spells out the mandatory two-step protocol (call, give upload link, wait for user confirmation, call again with upload_id) plus the rights-confirmation prerequisite, leaving little to inference.

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