Skip to main content
Glama

Approve Posts

approve_posts
Destructive

Approves the exact revisions given ([{postId, rev}], where rev comes from get_post/search_posts). There is no separate publish step. For website channels the result names the next CMS step (queued at a time, or a CMS draft that does not go live). An approved social post reads approved for a few seconds while Mark hands it to the publisher, then scheduled, and publishes at its scheduled time; confirm with get_post. An approved LinkedIn Article stays approved with handoff publish_by_hand (publish_now once its slot time passes) until someone records its live URL with record_post_published. Each approved outcome carries handoff: handing_off, or stuck with the reason and fix when the post can't go (no scheduled time, no connected account for the channel, or Mark couldn't start the handoff), so you don't have to wait to learn it. A post whose handoff couldn't start can still read handing_off on get_post for up to 5 minutes after approval; trust this result. A stale rev is refused. On a channel set to admins only, only workspace admins can approve; anyone else gets those posts back skipped. Only use it when the user has explicitly asked to approve. Related: get_post, search_posts, review_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": {
      "posts": "<posts>"
    },
    "name": "approve_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
postsYesPairs of postId and rev to approve.

Output Schema

NameRequiredDescriptionDefault
outcomesYes
submittedYes
lifecycleWarningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / 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 / 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 / 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. Changed2 schema fields changed
    • changedOutput schema / properties / outcomes / items / properties / handoff / anyOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "state": {
      -            "const": "handing_off",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "state"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "reason": {
      -            "type": "string"
      -          },
      -          "state": {
      -            "const": "stuck",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "reason",
      -          "state"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "state": {
      +            "const": "handing_off",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "state"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "state": {
      +            "const": "stuck",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "state"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "state": {
      +            "const": "publish_by_hand",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "state"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "state": {
      +            "const": "publish_now",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "state"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / 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."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 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."
  5. Changed1 schema field changed
    • addedOutput schema / properties / outcomes / items / properties / handoff
      Added value: +{
      +  "anyOf": [
      +    {
      +      "oneOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "state": {
      +              "const": "handing_off",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "reason": {
      +              "type": "string"
      +            },
      +            "state": {
      +              "const": "stuck",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "reason",
      +            "state"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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."
      +}
  6. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive/non-idempotent/open-world, and the description adds substantial context beyond them: no separate publish step, per-channel outcome semantics (website CMS step, social queued→scheduled, LinkedIn Article with publish_by_hand), the handoff field with stuck reasons and fixes, a 5-minute stale-read caveat ('trust this result'), and stale-rev refusal. It also discloses the authorization failure mode (non-admins get posts back skipped on admins-only channels), which is exactly the kind of behavioral detail annotations 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?

The core action and input contract are front-loaded in the first sentence, and the gating rule appears near the end where it is easy to miss. The per-channel outcome enumeration is dense and includes some filler ('so you don't have to wait to learn it'), but nearly every sentence carries actionable operational detail for a publish-triggering call.

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 high-stakes mutation with an output schema, the description covers the full decision surface: what approval triggers, what each outcome and handoff state means, failure reasons and fixes, permission constraints, and staleness caveats. Return-value detail is included where it changes agent behavior rather than duplicating the output schema.

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 the baseline is 3, but the description adds real meaning: rev must be the exact revision from get_post/search_posts and a stale rev will be refused, which tells the agent to re-fetch rather than guess. It reinforces the pair structure (postId+rev) without merely restating the schema.

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?

The description opens with a specific verb and resource plus the exact input shape: 'Approves the exact revisions given ([{postId, rev}], where rev comes from get_post/search_posts)'. It also clarifies a key conceptual distinction — 'There is no separate publish step' — so an agent understands approval itself triggers publishing rather than merely flagging a post.

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?

It gives an explicit gating rule ('Only use it when the user has explicitly asked to approve') and names where the required rev comes from (get_post/search_posts), plus the admin-only channel restriction. It lists related tools but does not route the agent to a specific alternative for the adjacent cases (e.g. review_post vs approve_post_from_preview), so it stops short of full 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