Skip to main content
Glama

royal-mcp__wp_set_featured_image

Destructive

Set or replace the featured image on a post or page. Accepts EITHER an existing media_id from wp_get_media, OR an image_url that will be downloaded into the library first. Pass media_id=0 to remove the featured image. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.

Input Schema

NameRequiredDescriptionDefault
post_idYesPost or page ID
site_idNoSite to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com)
alt_textNoAlt text to persist on the attachment. Works for both media_id and image_url input paths.
media_idNoExisting attachment ID (use 0 to remove the featured image)
image_urlNoPublic HTTPS image URL to download and use instead of media_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds two behavioral facts the annotations cannot express: the image_url path downloads into the media library (a side effect beyond the post mutation), and the 'Through Royally' sentence discloses that the operation is queued for human approval and nothing on the site changes until then — critical for interpreting a success response and for why destructiveHint=true. This is exactly the added context annotations leave out.

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-loaded with the action and the either/or operand rule, then the approval caveat last where it matters. Minor waste: the '(site: demo.royalplugins.com)' parenthetical repeats the site_id description already present in the schema.

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?

Covers inputs, side effects, removal, and the approval gate, which is sufficient for a mutation tool with no output schema. It does not say how the agent can later confirm approval (e.g. via mcp_list_recent_changes or get_execution), leaving the outcome-check loop implicit.

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 baseline is 3, but the description adds the mutual exclusivity between media_id and image_url (not encoded as oneOf in the schema) and the sentinel value media_id=0 for removal. It also notes alt_text applies to both input paths.

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 ('Set or replace the featured image on a post or page') plus the two accepted input modes and the removal case. No sibling in this fleet performs this operation, so the definition has no ambiguity to resolve.

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?

Explicitly routes the agent to wp_get_media for an existing media_id and reserves image_url for images that must be downloaded first, and it states the media_id=0 removal path. It stops short of naming any alternative/fallback (e.g. wp_update_media for attachment fields), but the operand selection guidance is clear.

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