Skip to main content
Glama

Generate a cover from reference images

generate_cover_from_reference
Destructive

Design a NEW cover from 1-4 reference images plus instructions (async, 1 credit). References: upload_ids from upload_reference_image and/or coverIds from this account. Say what to take from them, e.g. "this palette and lettering, but a winter scene". Returns a jobId.

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": {
      "book_id": "<book_id>",
      "instructions": "<instructions>"
    },
    "name": "generate_cover_from_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
book_idYesThe bookId the cover belongs to (from list_books).
instructionsYesWhat to take from the references and what to change.
idempotency_keyNoOptional key; a retry with the same key returns the same job.
reference_cover_idsNocoverIds in this account.
reference_upload_idsNoupload_ids from upload_reference_image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the async nature (returns a jobId) and a concrete cost of 1 credit, plus the 1-4 reference limit. It does not address what 'destructive' means here (e.g. whether an existing cover is replaced), which the destructiveHint=true flag raises as a real question.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each carrying a distinct fact: creation mode, cost/mode, reference sources, and return value. The key constraints (new cover, 1-4 references, async, 1 credit) are front-loaded with no wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description says a jobId is returned but never points the agent at get_generation_status for polling, which is essential to actually complete the workflow. With no output schema and a destructive mutation flag, that missing next-step link leaves a meaningful gap.

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 meaning by tying reference_upload_ids and reference_cover_ids to their origins and by clarifying the intent of the instructions field with an example phrasing. The 1-4 count constraint is also stated in prose rather than left to the schema.

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?

States a specific verb and resource ('Design a NEW cover from 1-4 reference images plus instructions') and distinguishes itself from generate_covers and edit_cover by emphasizing a new creation driven by references. An agent can tell what this produces without opening the schema.

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?

Explains the input sources clearly: upload_ids from upload_reference_image and/or coverIds already in the account, and that instructions must say what to take from each reference, with a concrete example. It stops short of naming when to prefer generate_covers or edit_cover instead.

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