Skip to main content
Glama

Approve From Preview

approve_post_from_preview
Destructive

Approves one post at an exact rev. Only the Approve button in Mark's post preview calls this, after a person clicks it. Agents never call it: to approve, use approve_posts, and only when the user has explicitly asked. Related: approve_posts, get_post.

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>",
      "rev": "<rev>"
    },
    "name": "approve_post_from_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
revYesExact rev the preview showed.
postIdYesPost id.

Output Schema

NameRequiredDescriptionDefault
postYes
approvalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / approval / properties / outcomes / items / properties / handoff / description
      Previous value: -"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published. An approved website post whose post type no CMS maps reads publish_by_hand (get_post and the review page only); every other website post is null."New value: +"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published. An approved website post whose post type no CMS maps reads the same: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published; every other website post is null."
  2. Changed1 schema field changed
    • changedOutput schema / properties / approval / properties / outcomes / items / properties / handoff / description
      Previous value: -"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status and every website post. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published."New value: +"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published. An approved website post whose post type no CMS maps reads publish_by_hand (get_post and the review page only); every other website post is null."
  3. Changed1 schema field changed
    • addedOutput schema / properties / approval / properties / outcomes / items / properties / planLimit
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Set when the plan's published-posts limit skipped it.",
      +  "properties": {
      +    "error": {
      +      "const": "plan_limit_reached",
      +      "type": "string"
      +    },
      +    "key": {
      +      "type": "string"
      +    },
      +    "limit": {
      +      "type": "number"
      +    },
      +    "operation": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "enum": [
      +        "inactive",
      +        "cap",
      +        "fair_use",
      +        "burst"
      +      ],
      +      "type": "string"
      +    },
      +    "resetsAt": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "upgradeUrl": {
      +      "type": "string"
      +    },
      +    "used": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "error",
      +    "key",
      +    "limit",
      +    "operation",
      +    "reason",
      +    "resetsAt",
      +    "upgradeUrl",
      +    "used"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and non-idempotent, so the safety profile is covered. The description adds genuinely new behavioral context: this endpoint is UI-driven, requires a human click, and is off-limits to agents. It does not explain what state change approval causes or what happens on rev mismatch, which keeps it below 5.

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, front-loaded with what it does, then the restriction, then the routing advice. The trailing "Related: approve_posts, get_post" is mildly redundant since approve_posts is already named, but it costs almost nothing.

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 two-parameter, fully documented tool with an output schema, the description covers the decisive facts: who invokes it and what an agent should do instead. The only gap is that the actual effect of approval on the post's state is left implicit.

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?

Schema coverage is 100%, and the schema already says rev is the "Exact rev the preview showed." The description reinforces the concurrency semantics with "at an exact rev" but adds no format, bounds, or failure behavior beyond the schema, so the baseline 3 applies.

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 with a scope qualifier: approves exactly one post at an exact rev. It explicitly distinguishes itself from the bulk sibling approve_posts, so an agent can tell the two apart without opening 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 Guidelines5/5

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

Gives an explicit exclusion ("Agents never call it"), the caller that does own it (the Approve button in Mark's post preview after a human click), and the correct alternative with its own precondition ("use approve_posts, and only when the user has explicitly asked"). This is the strongest form of when/when-not guidance.

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