Skip to main content
Glama

Generate ad headlines for a product

generate_ad_headlines
Read-only

Generate up to 10 ad headlines for an e-commerce / Shopify product. Provide the product (name + short description); optionally an audience and the platform (Facebook, Instagram, Google, TikTok). Returns up to 10 distinct headlines (claims the description does not make are removed, so some calls return fewer), each labelled with the persuasion technique used. With platform Google, every headline is 30 characters or fewer (the Google Ads responsive search ad limit). Read-only and free, no signup. If generation fails, the tool returns an error and no headlines.

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": {
      "product": "<product>"
    },
    "name": "generate_ad_headlines"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYesThe product: its name and a short description (at least 5 characters).
audienceNoOptional target audience.
platformNoOptional ad platform.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, openWorld, non-idempotent, non-destructive), and the description adds real behavioral context beyond them: 'free, no signup', variable result counts because unsupported claims are stripped, the 30-character cap under platform=Google, and error-with-no-headlines on failure. Those are exactly the traits an agent needs to interpret partial or failed results.

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?

Front-loads purpose, then inputs, then return behavior, then constraints and failure mode — a natural call-order structure. Every parenthetical carries substantive information rather than restating the schema.

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?

There is no output schema, and the description fully covers the return contract: count, distinctness, persuasion-technique labeling, why fewer may come back, and the error case. Nothing an agent needs in order to call or interpret this tool is missing.

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?

With 100% schema coverage the baseline is 3, and the description earns more by tying the platform parameter to a concrete behavior (every headline is 30 characters or fewer under Google, the responsive search ad limit) and clarifying that product means name plus short description. Audience is still left as a bare 'optional target audience' with no effect described.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Generate up to 10 ad headlines') and narrows scope to e-commerce / Shopify products, so the agent knows exactly what output to expect. It does not reference the sibling make_ad_creative, so differentiation from that tool is left to inference.

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?

Gives clear context for use: supply a product (name + short description), optionally an audience and one of four platforms, which steers output formatting. It stops short of stating when to pick this over make_ad_creative or what inputs are inappropriate, so no exclusions are provided.

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