Skip to main content
Glama

Honeyfield Marketing MCP

Strapi: Publish entry

strapi_publish_entry
Destructive

Einen Strapi-Eintrag veröffentlichen. v5 (Standard): content-manager publish-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 jetzt. locale wählt die zu veröffentlichende 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_publish_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.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description adds substantial context beyond them: required auth scope, the exact meaning of admin_token_invalid, v4 vs. v5 side effects, and the crucial warning that on strapi_timeout/strapi_unreachable the change may or may not have landed so the agent must re-read instead of retrying. That is meaningful operational behavior an agent would otherwise get wrong, though no return-shape info is given (output schema covers that).

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 purpose, then moves through version behavior, auth, and per-parameter rules in a logical order with no filler sentences. It is dense and interleaves error-handling prose into parameter explanations, which makes it harder to scan than a bulleted layout, but nothing is redundant.

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, version-dependent mutation behind a privileged token, the description covers the failure modes an agent must handle and the parameter constraints that the schema leaves undocumented. Return values are handled by the existing output schema, so nothing an agent needs to call it 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 (API-ID, allowed characters, plugin routes like users/upload/admin forbidden → invalid_collection), entry_id (documentId or numeric ID, allowed characters → invalid_id), locale (i18n language version, defaults to default locale), workspace (slug, optional with a single workspace). It also notes entry_id is not validated for Single Types, which is behavior the schema cannot express.

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 ('Einen Strapi-Eintrag veröffentlichen') and immediately explains the two implementation paths (v5 content-manager publish action vs. v4 setting publishedAt). An agent can distinguish this from the sibling strapi_unpublish_entry/strapi_update_entry by the verb alone, though no sibling is named explicitly.

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 concrete preconditions for use: an Admin Token from the Administration Panel is required (explicitly NOT the Content-API token), and it explains locale selection and Single Type handling. It lacks explicit routing ('use strapi_unpublish_entry to revert'), so it is strong context rather than full 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