Skip to main content
Glama

Generate a custom meme with AI

generate_meme

Draws a new meme with AI and saves it to the caller's private library. Requires an API key and costs 500 credits per image (refunded if it fails or is refused), so search_memes first and generate only when nothing in the library fits or the user explicitly asks for a custom meme. Give a short caption and/or describe the picture; pass ref (an id from search_memes) to make a version of an existing meme's character. Refuses recognizable real people, sexual, violent or political content. Its file metadata marks it as AI-generated; it is a derivative work, not cleared for commercial use.

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

Input Schema

NameRequiredDescriptionDefault
refNoid of a memecub meme whose character to reuse
styleNopanda = 熊猫头 face meme, photo, 3d, anime, sticker; omitted = chosen from the request
actionNoWhat the character does or looks like, e.g. 'cat slumped at a desk at 3am'
localeNoLanguage of the label and messages; defaults to the caption's language
captionNoText drawn on the meme, up to 30 characters, in the language of the user

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it discloses an API key prerequisite, a concrete cost (500 credits) plus the refund condition on failure or refusal, a content policy with named refusal categories, AI-generation metadata on the file, and a licensing caveat that the output is a derivative not cleared for commercial use. These are exactly the traits an agent cannot get from the schema.

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 purpose and destination lead, followed by cost constraints, then usage routing, then input guidance and policy. Every sentence earns its place, but it is packed into one long run-on paragraph where the policy and licensing clauses could be separated for faster scanning.

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 generative, credit-charging, policy-gated mutation tool with no annotations and no output schema, the description covers prerequisite, cost and refund, refusal behavior, input composition, and where the result lands. There is no output schema, but the description states the output (an image saved to the private library) with AI metadata, which is sufficient.

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 routing meaning beyond it: it ties `ref` back to an id from search_memes and frames the composition as "caption and/or describe the picture," clarifying that style/action are free-form intent while caption is the drawn text. It does not explain the locale default or style enum values, so it stops short of a 5.

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?

"Draws a new meme with AI and saves it to the caller's private library" gives a specific verb, resource, and side effect (persisted to a private library) in one clause. That is immediately distinguishable from retrieval siblings like search_memes and get_meme.

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 names the alternative explicitly ("search_memes first") and the exact conditions that justify generating instead: nothing in the library fits, or the user explicitly asks for a custom meme. The 'when not to use' side is stated rather than inferred, and the character-reuse path via ref is called out.

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.