Skip to main content
Glama

Revert a post's image

revert_post_image
Destructive

Puts back the featured image the post had before the last apply_post_image, including on the CMS. Only possible while get_post_image reports canRevert. Destructive: the first call returns a summary and a confirmToken; call again with confirmToken to proceed.

Input Schema

NameRequiredDescriptionDefault
siteYesThe site to act on. One of: fencestainingdenver.com.
postIdYes
confirmTokenNoConfirmation token from a previous call of this tool with the same arguments. Omit on the first call to get a summary and a token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only flag destructiveHint=true), the description discloses the exact scope of destruction (it reverts the prior image and propagates that to the CMS) and the non-obvious two-step confirmation protocol: the first call returns a summary plus a confirmToken, and the call must be repeated with that token to proceed. This is material behavior an agent cannot infer from the annotations or schema.

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?

Three sentences, each carrying distinct payload: what is reverted and where, the eligibility precondition, and the destructive confirmation flow. The destructive warning is front-loaded before the procedural detail.

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 destructive, non-idempotent mutation with no output schema, the description covers the safety-relevant mechanics (destructive scope, confirmation handshake, eligibility check) and even sketches the first-call return value. It omits any note on permissions or how to verify the revert landed, a minor gap.

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 67%; confirmToken is already documented in the schema, but the description reinforces its lifecycle (obtained from a prior call, omitted on the first call), and 'the last apply_post_image' clarifies what postId's revert target actually is. The undocumented postId remains self-evident, so this adds meaning without fully compensating for the coverage gap.

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 precise verb and resource ('Puts back the featured image the post had before the last apply_post_image'), explicitly ties itself to the sibling it undoes (apply_post_image), and notes the effect extends to the CMS. An agent can distinguish it from apply_post_image, upload_post_image, and restore_photo_original 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition — 'Only possible while get_post_image reports canRevert' — which tells the agent when the call is valid and routes it to the sibling that reports eligibility. It stops short of naming the alternative to use when canRevert is false (e.g. apply_post_image), so it is clear context rather than full when/when-not routing.

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.