Skip to main content
Glama

Set an article draft's cover

set_article_cover
Destructive

Sets the cover image of one of the signed-in person's draft articles, replacing any cover it has. The image is cropped to 16:9 around its center at 1600 by 900, as the editor does. Published articles can't be changed here. Returns the cover's public address. Give the image exactly one way: uploadId, from create_image_upload once its file was sent (use it for any file on this machine or anything over about 50 KB, rather than base64); imageUrl, a public https address Shipfolio downloads (no private or local addresses); or imageBase64 with mimeType (image/png, image/jpeg, image/webp or image/gif), only for a tiny image. At most 8 MB (5 MB for a logo). It is re-encoded as WebP without its metadata. Counts as an image upload, which has its own daily limit; an uploadId was counted when its file arrived. Needs the write scope. Before calling, show the user exactly what will change and wait for them to confirm.

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": {
      "articleId": "<articleId>"
    },
    "name": "set_article_cover"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageUrlNoA public https address of the image
mimeTypeNoWith imageBase64: image/png, image/jpeg, image/webp or image/gif
uploadIdNoThe uploadId from create_image_upload, after its file was sent to uploadUrl. Works once, within 15 minutes
articleIdYesThe draft article's id, from create_article_draft or list_my_articles
imageBase64NoA tiny image's bytes as base64 (a data: URL is accepted). For a file, use uploadId instead

Output Schema

NameRequiredDescriptionDefault
titleYes
widthYes
heightYes
changedYes
editUrlYes
coverUrlYes
replacedYes
articleIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Far beyond the annotations, it discloses the 16:9 center crop at 1600x900, WebP re-encoding with metadata stripped, size ceilings (8 MB, 5 MB for a logo), that the call consumes the image-upload daily quota and that an uploadId was already counted on arrival, and that the write scope is required. The destructiveHint=true annotation is reinforced by the explicit 'replacing any cover it has' warning.

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?

Purpose and the replacement warning are front-loaded, and nearly every sentence carries operational content. It is a single dense paragraph, though, and the '5 MB for a logo' clause is a slightly stray detail for an article-cover tool; bullets for the three input modes would scan faster.

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?

Covers everything an agent needs for a destructive, quota-consuming mutation: permissions, confirmation gate, input-mode selection, transformation behavior, and limits. An output schema exists, yet the description still helpfully notes it returns the cover's public address.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is already 100%, the description adds real decision logic the schema lacks: the three inputs are mutually exclusive ('give the image exactly one way'), with the ~50 KB threshold steering the agent to uploadId over base64, and an explicit prohibition on private/local addresses for imageUrl. This is meaning beyond the field descriptions.

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 and resource ('Sets the cover image of ... draft articles') and adds the crucial scope constraint that any existing cover is replaced and that published articles cannot be changed here. An agent can distinguish this from update_article_draft or set_listing_logo 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 rules out published articles, tells the agent to route file uploads through create_image_upload first, and gives selection criteria for the three mutually exclusive image inputs (uploadId for any local file or anything over ~50 KB, imageUrl for public https, base64 only for tiny images). It also imposes a required pre-call workflow: show the user what will change and wait for confirmation.

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