Skip to main content
Glama

Honeyfield Marketing MCP

Strapi: Update media

strapi_update_media
Destructive

Alt-Text, Bildunterschrift oder Namen einer Datei in der Strapi-Mediathek ändern — auch bei Bildern, die schon in Einträgen verwendet werden (die Verknüpfung bleibt). Nur übergebene Felder werden geändert. file_id: NUMERISCHE id der Datei (aus strapi_list_media, strapi_upload_media oder strapi_check_upload_status). Bilder fürs Frontend brauchen einen Alt-Text, der beschreibt, was zu sehen ist (z. B. "Startseite von Rent2B: Buchungsplattform für Verleihbetriebe"). Rückgabe: after (alternative_text, caption, name, url), verified (zurückgelesen). Fehlt dem API-Token die Upload-Berechtigung, kommt ein Hinweis, was in Strapi freizugeben ist. strapi_update_entry auf 'upload/files' funktioniert dafür nicht (405). file_id: numerische ID (aus strapi_list_media), 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": {
      "file_id": "<file_id>"
    },
    "name": "strapi_update_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
captionNo
file_idYes
workspaceNo
alternative_textNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations declare the mutation and destructive/open-world profile, and the description adds genuinely new context on top: partial-update semantics, that entity links survive a rename, the read-back 'verified' field, the permission-error message telling the operator what to grant in Strapi, and explicit advice not to blindly retry after strapi_timeout/strapi_unreachable. It also documents the invalid_id error response. No contradiction with destructiveHint=true — the link-preservation note narrows, not denies, the blast radius.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded in the first sentence, but the body reads like stitched-together fragments: file_id is explained twice (once for provenance, once for the invalid_id error), and the alt-text requirement is asserted with a full example in the middle of what should be a parameter list. Nothing is false, but several lines could be merged.

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

Completeness4/5

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

For a destructive mutation with 5 parameters and 0% schema coverage, the description covers the essentials an agent needs: partial semantics, id sourcing and errors, permission failures, and ambiguous-timeout handling. Since an output schema exists, the return-value enumeration ('after', 'verified') is redundant rather than required, and the file_id string/numeric mismatch remains an unresolved gap.

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 description coverage is 0%, so the description carries the load and does so: it maps alt-text/caption/name onto alternative_text/caption/name, explains workspace is optional with a single workspace, gives file_id's provenance, and states the invalid_id failure. One defect: it insists file_id is a NUMERISCHE id while the schema types it as "string", which can lead an agent to pass an integer that fails validation.

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: change alt-text, caption or file name in the Strapi media library, including files already referenced by entries. It also scopes the operation ("Nur übergebene Felder werden geändert") and explicitly separates itself from siblings strapi_update_entry, strapi_list_media, strapi_upload_media and strapi_check_upload_status.

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 routing guidance: file_id must come from strapi_list_media/strapi_upload_media/strapi_check_upload_status, and strapi_update_entry on 'upload/files' is called out as not working (405), which is exactly the alternative an agent would otherwise try. It also states a usage norm (frontend images need a descriptive alt-text) but does not say when to prefer strapi_upload_media over updating.

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