Skip to main content
Glama

MySaaS Blog

Unpublish post

post_unpublish

Move a public or scheduled post back to draft.

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

Input Schema

NameRequiredDescriptionDefault
postIdYes
idempotencyKeyNoOptional retry key. Reuse the same key with the same payload to deduplicate agent retries.

Output Schema

NameRequiredDescriptionDefault
okYes
postNo
errorNo
warningIssuesNo
blockingIssuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false, so safety is largely covered. The description adds the meaningful detail that only published or scheduled posts are affected and that the result is a draft. It omits, however, what happens to an existing schedule, what error occurs for already-draft posts, and that the operation is not idempotent despite the idempotencyKey parameter.

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?

A single front-loaded sentence with no filler, and the state transition is the first thing the reader sees. It is arguably over-compressed for a mutation tool, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. For a state-mutating tool with one undocumented parameter and no permissions or side-effect discussion, however, the description leaves gaps an agent would care about—particularly schedule cancellation and behavior on already-draft posts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%: idempotencyKey is documented in the schema while postId has no description anywhere. The description does not compensate by clarifying what postId refers to (draft ID vs. public ID) or how the state transition interacts with retries, so it adds essentially no meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource plus a state transition: 'Move a public or scheduled post back to draft.' That precisely defines the operation and implicitly scopes it to two source states. It does not name or contrast any sibling (e.g., post_archive_draft or post_update_draft), so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The only implied condition is that the post be public or scheduled, inferred from the phrase 'a public or scheduled post'. An agent must guess whether unpublishing differs from archiving or updating a draft.

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