Skip to main content
Glama

generate_meme

Create custom meme images locally by describing the background and adding top and bottom text with an optional overlay. The tool automatically selects the best AI engine for your hardware.

Instructions

Generate a meme illustration locally. Automatically selects the best engine.

  • Apple Silicon: FLUX.2-klein via mflux (MLX acceleration)

  • NVIDIA GPU: FLUX.2-schnell via diffusers (CUDA)

  • Windows AMD/Intel: FLUX.2-schnell via diffusers (DirectML)

  • CPU fallback: Ollama vision model

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesText description of the meme base background
seedNoRandom seed for deterministic generation. Defaults to -1 (random).
widthNoOutput image width. Defaults to 512.
heightNoOutput image height. Defaults to 512.
overlay_image_pathNoAbsolute path to a transparent PNG (e.g. your PFP cutout) to layer on top.
top_textNoMemetic text to draw at the top (impact font with stroke).
bottom_textNoMemetic text to draw at the bottom (impact font with stroke).
font_styleNoFont family to use for meme text (e.g., 'Impact', 'Arial').Impact
format_typeNoThe layout format for the meme (e.g., 'meme', 'demotivational').meme
visual_styleNoThe artistic style of the generated background (e.g., 'Default', 'Photorealistic').Default

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the burden. It transparently discloses the auto-selection of engines based on hardware, which is a key behavioral trait. However, it omits details like rate limits or side effects, which are not critical 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.

Conciseness5/5

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

The description is brief and front-loaded with the main purpose, followed by a concise bullet list of engine options. Every sentence adds value with no fluff.

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

Completeness4/5

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

The output schema exists, so return values are covered. The description provides hardware context and engine selection, which is sufficient for a straightforward generation tool. Could mention output format, but schema likely does.

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 description coverage is 100%, so baseline 3. The description does not add extra meaning to parameters beyond the schema; the only non-parameter detail is the engine selection, which is not param-related.

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 starts with 'Generate a meme illustration locally' which is a specific verb+resource. It further explains automatic engine selection based on hardware, clearly distinguishing from sibling tools like create_banner or image_to_3d.

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?

The engine selection details serve as guidelines for usage (e.g., best for Apple Silicon vs. NVIDIA GPU), but the description does not explicitly state when not to use this tool or mention alternative tools for similar tasks.

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/sailorpepe/undesirables-mcp-server'

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