Skip to main content
Glama

Approve a saved post version

approve_post_variant
DestructiveIdempotent

Approves one exact saved Post channel version after the user explicitly asks to approve it. Inputs bind postId, expectedPostRevision, variantId, expectedVariantRevision and expectedContentHash to the current list_posts/get_context result; confirmation=CONFIRM_APPROVE_POST_VARIANT reflects that user instruction. The server rejects stale IDs, revisions or content hashes, verifies publication readiness and excludes an in-progress delivery under the normal review lock. This changes editorial approval only; it does not schedule or publish. Requires the separate review permission. A unique idempotencyKey identifies this requested decision and is reused for exact retries.

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": {
      "postId": "<postId>",
      "expectedPostRevision": "<expectedPostRevision>",
      "variantId": "<variantId>",
      "expectedVariantRevision": "<expectedVariantRevision>",
      "expectedContentHash": "<expectedContentHash>",
      "idempotencyKey": "<idempotencyKey>",
      "confirmation": "<confirmation>"
    },
    "name": "approve_post_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYes
variantIdYes
confirmationYes
idempotencyKeyYes
expectedContentHashYes
expectedPostRevisionYes
expectedVariantRevisionYes

Output Schema

NameRequiredDescriptionDefault
postIdYes
statusYes
decisionYes
variantIdYes
postRevisionYes
variantRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: stale IDs, revisions, or content hashes are rejected server-side; publication readiness is verified; an in-progress delivery blocks approval under the review lock; a separate review permission is required; the effect is editorial approval only, not scheduling or publishing. That is exactly the mutation risk context the destructiveHint annotation cannot convey.

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 verb and effect, with the caveats following in a tightly packed block — nearly every sentence carries distinct information. It is dense and unsegmented, which costs some scannability, but there is no filler.

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?

For a seven-parameter destructive mutation with an output schema, the definition covers preconditions, permission requirements, staleness/concurrency rejection, lock behavior, scope of effect, and retry semantics. Nothing an agent needs to call it safely is missing.

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?

Schema description coverage is 0%, so the description must carry all seven required parameters, and it does: postId/variantId and the three expected* fields are tied to the current list_posts/get_context result (optimistic concurrency), confirmation maps to the user instruction, and idempotencyKey is described as a unique per-decision key reused for exact retries.

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 — 'Approves one exact saved Post channel version' — and adds the scoping qualifier 'exact saved ... version' that separates it from preview_content_variant_edit and reject_post_variant. An agent can identify the operation without opening the 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 precondition: use it only after the user explicitly asks to approve, and that instruction is bound into confirmation=CONFIRM_APPROVE_POST_VARIANT. It also points to list_posts/get_context as the source of the expected values. It does not explicitly name the reject/schedule alternatives, so a 4 rather than 5.

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