Skip to main content
Glama

ContentIn — LinkedIn Ghostwriter

Attach images to a post

attach_images

Attach one or more images to a ContentIn post that is not published yet. IMAGES ONLY — JPG, PNG or WEBP, at least 200×200px, at most 8 MB each, and at most 5 per post. Video, GIFs, PDFs and document carousels are NOT supported and will be refused, so do not try to attach one. Pass each image either as a public url (ContentIn downloads it) or as a base64 string with its mime_type. Two or more images publish as a LinkedIn multi-image post, in the order you list them. mode 'replace' (the default) makes the post's images exactly this set and deletes the ones it had; mode 'append' keeps the existing ones and adds to them, up to the same total of 5. Attaching does not publish anything — call publish_post or schedule_post afterwards, and call list_posts to check what is attached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo'replace' (default) — the post's images become exactly these, and the previous ones are deleted. 'append' — keep what is there and add these, total still capped at 5.
imagesYesThe images, in the order they should appear on LinkedIn. Exactly one of url or base64 per entry. Maximum 5.
post_idYesThe ContentIn post id (from list_posts or write_post_in_my_voice). The post must not be published yet.
alt_textsNoOptional alt text per image, same order and same length as images. Describe what is actually in the picture, in the user's language, 300 characters or fewer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior1/5

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

The description is otherwise transparent: it discloses size/type/order constraints, url-vs-base64 source, replace vs append, and the no-auto-publish behavior. However, it states that replace mode 'deletes the ones it had,' which is an explicit destructive side effect, while annotations declare destructiveHint=false. That is a direct contradiction, so this dimension scores 1.

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 description is longer than the minimal case, but every block serves a purpose: constraints up front, exclusions, mode semantics, and follow-up workflow. It repeats some schema text, yet remains scannable with clear sentence boundaries.

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?

For a mutation with no output schema, the description covers the required preconditions, input constraints, alternative sources, mode behavior, and post-call workflow (publish/schedule/list). The only contextual defect is the destructiveHint contradiction; otherwise an agent has enough to invoke it correctly.

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 already documents all four parameters in detail (100% coverage), so this is not a case where the description must compensate. It adds real value by stating hard constraints (JPG/PNG/WEBP, ≥200×200px, ≤8 MB, max 5 images, exactly one source per image) and clarifying that order determines the LinkedIn multi-image output.

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 first sentence uses a specific verb and resource ('attach... images to a ContentIn post') and adds the key precondition 'not published yet.' It also clarifies what it is not (it does not publish), which differentiates it from publish_post and schedule_post.

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 explicitly states unsupported types ('Video, GIFs, PDFs and document carousels are NOT supported and will be refused'), gives the required follow-up tools ('call publish_post or schedule_post afterwards'), and tells the agent to use list_posts to verify. It also explains when to choose replace vs append.

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