Skip to main content
Glama

Honeyfield Marketing MCP

Strapi: Update entry

strapi_update_entry
Destructive

Einen bestehenden Strapi-Eintrag aktualisieren — schreibt bei v5 NUR den Draft, die veröffentlichte Version bleibt unverändert. Live geht die Änderung erst über strapi_publish_entry (separater, bewusster Schritt). Bei Workspaces mit Strapi v4 gibt es keine getrennte Draft-Kopie: ein Update eines bereits veröffentlichten Eintrags ändert die Live-Version sofort — vorher ggf. strapi_unpublish_entry. entry_id ist bei v4 die numerische id, bei v5 die documentId. locale wählt die zu schreibende Sprachversion (Strapi-v5-i18n, z. B. 'de') — Achtung: ohne locale trifft das Update stillschweigend die Default-Locale; bei lokalisierten Content-Types locale immer explizit angeben. Bild-Nodes in Blocks-Rich-Text brauchen das komplette File-Objekt aus strapi_upload_media(full=True) bzw. strapi_list_media(ids=[...], full=True). Dynamic Zones (z. B. content): Strapi ersetzt das Feld als GANZES — ein Mergen einzelner Sektionen gibt es nicht. Deshalb vorher mit strapi_get_entry(collection, entry_id, status='draft', populate={"content": {"populate": ""}}) komplett lesen (tiefes Populate — populate='' lädt nur eine Ebene, Medien und Repeatables INNERHALB der Sektionen fehlen dann im gelesenen Stand; nur vollständig gelesene Sektionen lassen sich verlustfrei zurückschreiben), die Sektionen ändern und das komplette Array zurückgeben. documentId/Timestamps und volle Media-Objekte aus dem GET können unverändert mitgeschickt werden (Medien auch als {"id": ...}); das Tool sortiert __component an die erste Stelle jeder Sektion und entfernt die ids der Komponenten in Dynamic Zones (Strapi legt sie bei jedem Write neu an — veraltete ids führten sonst zu 400). Frisch lesen bleibt trotzdem nötig, damit der Inhalt aktuell ist. Nur einen Text, Link oder Satz ändern? strapi_replace_text ist kürzer und sicherer als das ganze Feld neu zu schicken. Single Types (z. B. 'impressum', 'footer'): Singular-API-ID als collection; der Server spricht sie automatisch über ihre ID-lose Route an. entry_id wird dabei NICHT geprüft (ein Single Type hat nur ein Dokument) — die documentId aus dem Lesen mitgeben, sie dient nur als Platzhalter. Kontrolle des Drafts: strapi_get_entry(collection, entry_id, status='draft') — ohne status zeigt v5 die alte Live-Version. 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>",
      "data": "<data>"
    },
    "name": "strapi_update_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
localeNo
entry_idYes
workspaceNo
collectionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds substantially more: the v4/v5 draft-vs-live split, that Dynamic Zone fields are replaced wholesale rather than merged, that the tool reorders __component and strips component ids to avoid 400s, and that strapi_timeout/strapi_unreachable leaves the write in an unknown state so blind retries are dangerous. This is exactly the behavioral context annotations cannot convey, and it does not contradict them.

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 critical warning—v5 writes only the draft—is front-loaded, and the paragraphs are organized by concern (version semantics, locale, dynamic zones, alternatives, parameter contracts, failure modes). It is dense and long, with some redundancy around the 'read fresh before writing' advice, but for a destructive write with zero schema documentation nearly every sentence earns its place.

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, open-world mutation with 5 parameters at 0% schema coverage and a nested free-form data object, the description covers prerequisites, failure modes, version-specific behavior and alternative tools. Since an output schema exists, it correctly omits return-value explanation.

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: entry_id is a numeric id on v4 vs a documentId on v5, locale silently falls back to the default locale when omitted, collection must be a plain API id excluding plugin routes like users/upload/admin, and workspace is optional for single-workspace setups. It even constrains the shape of data (media file objects from strapi_upload_media(full=True), complete Dynamic Zone arrays).

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 ('bestehenden Strapi-Eintrag aktualisieren') and immediately scopes the effect: on v5 only the draft is written, the published version is untouched. It explicitly distinguishes itself from siblings strapi_publish_entry, strapi_unpublish_entry and strapi_replace_text, so an agent can tell it apart without opening other schemas.

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 explicit routing rules: use strapi_publish_entry for going live, strapi_unpublish_entry before a v4 write to a published entry, strapi_replace_text for small text/link edits, and strapi_get_entry with status='draft' to verify. It also defines the Single Type case (entry_id not checked) and states when locale must be set explicitly, which is when-to-use guidance at a level most definitions never reach.

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