Skip to main content
Glama

Honeyfield Marketing MCP

Strapi: Unpublish entry

strapi_unpublish_entry
Destructive

Einen Strapi-Eintrag depublizieren (aus der öffentlichen API nehmen). v5 (Standard): content-manager unpublish-Action — braucht den Admin Token des Workspace (Strapi Settings → Administration Panel → Admin Tokens, ab Strapi 5.47; NICHT den API-Token aus Settings → API Tokens, der wird auf Admin-Routen abgelehnt). {"error": "admin_token_invalid"}: Token abgelehnt — message sagt, ob im Admin-Token-Feld ein Content-API-Token steckt oder der Token ungültig/abgelaufen ist; der Kunde trägt dann im Portal-Workspace unter Strapi (CMS) → Admin-Token einen Admin Token ein. v4: setzt publishedAt auf null. locale wählt die zu depublizierende Sprachversion (Strapi-i18n, z. B. 'de'; ohne Angabe die Default-Locale). Single Types gehen bei v5 genauso (Singular-API-ID als collection; entry_id wird dabei nicht geprüft — die documentId aus dem Lesen mitgeben); bei v4 werden Single Types nicht unterstützt. collection: API-ID der Collection (Buchstaben, Ziffern, _ und -; keine Plugin-Routen wie users, upload, admin), sonst {"error":"invalid_collection"}. entry_id: documentId bzw. numerische ID (Buchstaben, Ziffern, _ und -), sonst {"error":"invalid_id"}. Antwortet Strapi nicht ({"error": "strapi_timeout"} bzw. "strapi_unreachable"), ist offen, ob die Änderung angekommen ist: erst nachsehen, nicht blind wiederholen. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).

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": {
      "collection": "<collection>",
      "entry_id": "<entry_id>"
    },
    "name": "strapi_unpublish_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNo
entry_idYes
workspaceNo
collectionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds substantial context beyond them: it names the required Admin Token (explicitly not the Content API token, which is rejected on admin routes), decodes specific error payloads (admin_token_invalid, invalid_collection, invalid_id, strapi_timeout, strapi_unreachable), and warns that after a timeout the mutation state is unknown. That is exactly the kind of consequence and auth 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 purpose and version behavior are front-loaded and no sentence is filler, but the admin_token_invalid passage is a long nested sentence that takes effort to parse and is arguably operational runbook text rather than tool-definition text. Dense but not padded.

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 destructive, cross-version, auth-sensitive mutation the description covers credentials, version differences, single-type caveats, per-parameter constraints, and error remediation. An output schema exists, so return values need not be described, and nothing needed to call this correctly 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 carries the full burden and does: collection is the API-ID with allowed characters and a ban on plugin routes, entry_id is a documentId or numeric ID with its character set, locale selects the i18n version with a stated default, and workspace is an optional slug when only one workspace exists. Each parameter gets meaning and failure modes the bare schema lacks.

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?

"Einen Strapi-Eintrag depublizieren (aus der öffentlichen API nehmen)" is a specific verb plus resource, and the parenthetical states the observable effect. It is unambiguously distinguishable from strapi_publish_entry and strapi_delete_entry by the word 'depublizieren' alone.

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?

The description tells the agent which Strapi version path applies (v5 content-manager unpublish action vs v4 publishedAt=null), how to handle single types, and how to react to a timeout (check first, don't blindly retry). It does not explicitly contrast with strapi_publish_entry or strapi_delete_entry, so the when-not-to-use case is left implicit.

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