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"}. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).

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.9/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: partial-update semantics ('nur übergebene Felder werden geändert'), the fact that existing entry links survive the edit, the read-back 'verified' field in the response, the invalid-id error shape, and a permission-failure hint naming what must be enabled in Strapi. The destructiveHint=true annotation is not contradicted — the description merely clarifies that only supplied fields change.

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 purpose and scope, then param notes, then return/permission behavior — a sensible order with no filler prose. It loses a point because file_id is documented twice with overlapping content (source tools, then numeric ID plus error), which is avoidable repetition.

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 mutation tool with five parameters, no schema descriptions and a destructive annotation, the definition covers purpose, partial-update semantics, parameter sourcing, error behavior, permission failure, and read-back verification. Nothing an agent needs before calling it is missing, even though an output schema already exists.

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 coverage is 0%, but the description covers every parameter: file_id (numeric, its source tools, and the invalid_id error), workspace (customer slug, optional when there is only one workspace), and the three editable fields name/caption/alternative_text via the opening sentence. It even supplies editorial guidance and an example for alternative_text.

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: changing alt text, caption or file name in the Strapi media library, and immediately scopes it to images already used in entries (the link is preserved). It also explicitly separates itself from strapi_update_entry, which it says does not work for 'upload/files' (405).

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?

Tells the agent when this is the right tool (metadata edits on existing media, including in-use images) and names the alternative that fails, so the agent will not route around it. It also points to where a valid file_id comes from (strapi_list_media, strapi_upload_media, strapi_check_upload_status).

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