Skip to main content
Glama

Storiez

Regenerate post image

regenerate-post-image
Destructive

Creates a new image for a post with the AI pipeline, replacing the current image. Costs 12 credits. Status is REGENERATING until it returns to READY_TO_APPROVE. Only for posts that belong to a calendar item.

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": {
      "id": "<id>"
    },
    "name": "regenerate-post-image"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe post ID to regenerate the image for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses a concrete cost (12 credits), that the existing image is overwritten, the asynchronous REGENERATING-to-READY_TO_APPROVE state machine, and an eligibility restriction. These are exactly the facts an agent needs before triggering a destructiveHint mutation, and none are recoverable from the annotation flags.

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 short sentences, each carrying a distinct fact: what it does, cost, status lifecycle, eligibility. Front-loaded with the action and no redundant restatement of the title.

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?

Complete for a one-parameter, no-output-schema mutation: cost, side effect, and state transition are all covered. The remaining gap is operational — it doesn't tell the agent how to observe completion (e.g., polling via get-generation-status) or what happens to the charged credits if regeneration fails.

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?

The single `id` parameter has 100% schema description coverage, so the baseline applies. The description adds nothing about the ID beyond the schema — no formatting, source, or how to obtain a valid post ID.

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?

Specific verb + resource ("Creates a new image for a post") with the scope made explicit by "replacing the current image" and "with the AI pipeline". The word "image" alone distinguishes it from regenerate-post-text without needing to open either 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 a clear qualifying condition ("Only for posts that belong to a calendar item") that lets an agent rule the tool out, plus the resulting status flow. It stops short of naming an alternative for non-calendar posts or pointing at regenerate-post-text when copy, not imagery, needs regenerating.

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