Skip to main content
Glama

Show Ad Carousel

show_ad_carousel
Read-only

Renders an inline visual carousel of ads (resource: ui://carousel-mcp-v14): creative, copy, format and link per card. Useful when the user wants to see creatives, or when a point in the reply is clearer with the ads beside it. Works across Meta, Google, LinkedIn and TikTok ads, mixed freely, plus organic TikTok and Instagram videos. One call renders one carousel of up to 20 items (a hard cap; overflow goes in another call). Several calls in one reply each render their own carousel, so a carousel can hold just the ads behind one point, or all of a brand's ads when the user asks to browse them. Each item is an identifier ref copied from the earlier tool's text output: Meta {ad_id, page_id} (ad_id required, page_id recommended); Google {ad_url}; LinkedIn {linkedin_id}; TikTok {tiktok_id}; organic videos from search_organic_videos or get_creator_videos {post_url} (the row's url). The server rebuilds each ad from its own cache, so other fields (body, headline, media_url, cards) are ignored. Cache notes: Google ads are cached by get_google_ad_details, and one that skipped it is refetched at credit cost; LinkedIn ads are cached by search_linkedin_ads; a stale TikTok ad or organic video is refetched (0.5 credit).

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": {
      "ads": "<ads>"
    },
    "name": "show_ad_carousel"
  }
}

Input Schema

NameRequiredDescriptionDefault
adsYesUp to 20 ad refs copied from earlier tool output: Meta {ad_id, page_id}, Google {ad_url}, LinkedIn {linkedin_id}, TikTok {tiktok_id}, organic video {post_url}. Other fields are ignored.
contextNoOne plain sentence, 8-20 words, starting with a verb, stating what the user is trying to accomplish in this conversation. Name the brand, competitor, industry, or topic involved. Reuse the exact same sentence on every tool call in this conversation. Never include people's names, emails, phone numbers, credentials, or internal company details. Never describe this tool or why it was chosen. Example: 'Compare Notion and Coda Meta ads to find hooks for a productivity app launch.'
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
  2. Changed1 schema field changed
    • changedInput schema / properties / ads / description
      Previous value: -"Up to 20 ad refs copied from earlier tool output: Meta {ad_id, page_id}, Google {ad_url}, LinkedIn {linkedin_id}, TikTok {tiktok_id}. Other fields are ignored."New value: +"Up to 20 ad refs copied from earlier tool output: Meta {ad_id, page_id}, Google {ad_url}, LinkedIn {linkedin_id}, TikTok {tiktok_id}, organic video {post_url}. Other fields are ignored."
  3. Changed1 schema field changed
    • addedInput schema / properties / ads / description
      Added value: +"Up to 20 ad refs copied from earlier tool output: Meta {ad_id, page_id}, Google {ad_url}, LinkedIn {linkedin_id}, TikTok {tiktok_id}. Other fields are ignored."
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations: hard cap of 20 items with overflow requiring another call, one-carousel-per-call semantics, the fact that the server rebuilds ads from its own cache and ignores other fields, and per-source cache state with credit consequences for refetches. These are exactly the operational facts an agent needs before spending credits.

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?

Front-loads what the tool is and when to use it before the dense ref-format and cache detail, and nearly every clause carries actionable information. It is a single long block that could be split for scanability, and the cache notes are compact to the point of being run-on.

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 render tool with an output schema (so return values need no explanation) and only three parameters, the description covers the remaining risks: item cap, cross-source ref formats, cache/credit behavior, and the requirement to copy refs from prior tool output rather than construct them.

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 the schema does not: ad_id is required while page_id is recommended, the organic post_url must be 'the row's url' from the source tool's output, and unrecognized fields are silently dropped. It also ties each ref shape back to the producing tool (get_google_ad_details, search_linkedin_ads, search_organic_videos, get_creator_videos).

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 concrete verb and resource ('Renders an inline visual carousel of ads') and names exactly what each card carries (creative, copy, format, link), plus the ui:// resource identifier. It is clearly distinguishable from data-fetching siblings like search_meta_ads_by_keyword or get_ad_media.

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 real when-to-use criteria ('when the user wants to see creatives, or when a point in the reply is clearer with the ads beside it') and explains the batching decision — one call per carousel, several calls per reply for point-scoped vs. brand-wide browsing. It does not explicitly say when NOT to render (e.g., when the user just wants numbers), but the positive guidance is clear enough to act on.

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