Skip to main content
Glama

generate_thumbnail

Create platform-specific thumbnails from a title for YouTube, Instagram, X, LinkedIn, or blog posts. Returns an inline image and a public URL for embedding.

Instructions

Generate a thumbnail / social share image from a title using the ThumbAPI service.

Use this when the user wants to create a YouTube thumbnail, Instagram post image, X/Twitter card, LinkedIn share image, or blog post hero image from a headline or title.

Returns the generated image inline (viewable by the model) plus metadata: format, outputFormat, generationId, and imageUrl (a public URL on ThumbAPI's CDN — use this to download or embed the image without handling base64).

Requires an API key. Either set THUMBAPI_API_KEY in the environment or run the login tool once — that starts an OAuth-style browser flow and saves the key to ~/.thumbapi/config.json. Get a key at https://thumbapi.dev.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoGeneration model. `sd` (default) is faster and cheaper (10 credits). `hd` produces higher quality output but requires a Pro or Business plan (20 credits).
titleYesThe headline / video title / blog post title to render on the thumbnail. Required. Max 200 chars. Write the title exactly as it should appear.
formatYesTarget platform / aspect ratio. `youtube` = 1280x720 (16:9), `instagram` = 1080x1080 (1:1), `x` = 1600x900 (16:9, Twitter/X card), `blogpost` = photorealistic hero image (16:9), `linkedin` = 1200x627 (LinkedIn share).
categoryNoOptional content category hint that biases visual style. Choose the closest match, or omit to let the API auto-detect from the title (equivalent to `auto`).
outputFormatNoImage encoding of the returned file. Defaults to `webp`.
Behavior5/5

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

With no annotations, the description carries the full burden and does an excellent job: it discloses the returned data (inline image plus metadata fields), the public CDN URL, the authentication requirement, and the account-plan constraints for `hd` models. This is far beyond typical descriptions.

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 description is well-structured with clear sections (purpose, usage, return, auth) and is not excessively long. It earns its length by covering both usage and behavioral details, though it could be slightly shorter by moving auth instructions elsewhere.

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?

Given the tool has no output schema, the description compensates by explicitly describing the return format and metadata. It also covers prerequisites, costs, and model selection, making it self-contained for an agent to use correctly.

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?

The input schema already covers all parameters with rich descriptions, so the baseline is 3. The description adds some operational context (e.g., using `imageUrl` rather than base64), but it does not substantially elaborate on parameter meaning beyond 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?

The description opens with a specific verb ('Generate') and resource ('thumbnail / social share image'), and further clarifies by listing concrete platforms (YouTube, Instagram, etc.). This clearly distinguishes it from the auth-focused sibling tools `login` and `logout`.

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 explicitly states when to use the tool ('Use this when...') with a list of use cases, and it mentions the prerequisite of an API key and the `login` alternative for auth. However, it does not explicitly describe when not to use it or mention alternative thumbnail-generation tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dinalllll/thumbapi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server