Skip to main content
Glama

Attach post media

attach_post_media

Attaches an image to an existing image_post or video_post that's waiting on media (base64, a public https URL, or an existing image library assetId). An image post gets the same headline/subhead/cta text placed on it that auto-generation would produce; a video post's key frame gets no text. Not for text_post/carousel, and not for one of the user's own verbatim posts — use create_adhoc_post's mediaLibraryAssetId for that instead (no text placed). The response's post.mediaLinks holds stable https links to the finished image — show the user what actually landed rather than just confirming it did.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postIdYesThe post's id, from list_posts. Must be an image_post or video_post with a brief already generated — not a text_post/carousel.
brandIdYesThe brand's id, from list_brands.
imageUrlNoA public https URL Rebbel fetches server-side (see upload_brand_image). Also banked into the brand's image library automatically. Exactly one of mediaLibraryAssetId/imageBase64/imageUrl is required.
campaignIdYesAn existing campaign's id, from list_campaigns or generate_campaign.
imageBase64NoThe image as a data URL (see upload_brand_image) — attaches it directly without a separate upload call first; also banked into the brand's image library automatically. Exactly one of mediaLibraryAssetId/imageBase64/imageUrl is required.
mediaLibraryAssetIdNoAn existing image library asset id, e.g. from upload_brand_image. Exactly one of mediaLibraryAssetId/imageBase64/imageUrl is required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare mutation, non-idempotent, and open-world. The description adds unique behavior beyond that: image posts receive auto-generated headline/subhead/cta text, video key frames get no text, and the response's post.mediaLinks should be shown to the user. This is rich behavioral context that structured data does not provide.

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?

Four sentences, each earning its place: purpose, text-placement behavior, exclusions with alternative, and response handling. The purpose is front-loaded and there is no redundant restatement of the name or title.

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?

No output schema exists, but the description explains the response shape (post.mediaLinks) and directs the agent to show the user the result. Combined with annotations and full schema coverage, the definition gives an agent everything needed to invoke the tool correctly and handle its output.

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 all parameters are documented in the schema. The description restates the three input options (base64, public https URL, existing assetId) but adds no syntax, format, or constraint details beyond what the schema already provides. Baseline 3 is appropriate.

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 specific verb (attaches) and resource (an image to an existing image_post or video_post waiting on media), and explicitly distinguishes from siblings like create_adhoc_post and non-applicable post types. An agent can identify the exact operation and its scope without opening any schema.

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?

Explicitly states when not to use it (text_post/carousel, user's own verbatim posts) and names the alternative (create_adhoc_post's mediaLibraryAssetId). Also specifies the precondition that the post must be waiting on media, leaving no ambiguity about selection.

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.