Skip to main content
Glama

Honeyfield Marketing MCP

WordPress: Upload media

wp_upload_media

Datei in die WordPress-Medienbibliothek hochladen — per source_url (Server lädt sie) ODER file_base64 (nur für kleine Dateien, deren Bytes der Agent selbst erzeugt oder besitzt). Genau eines angeben. Chat-Anhänge und lokale Dateien des Kunden erreichen den Server nicht — das Protokoll hat keinen Binärkanal; liegt die Datei online, source_url verwenden — als DIREKTLINK auf die Datei (bei Google Drive https://drive.google.com/uc?export=download&id=, NICHT der Freigabe-Link, der liefert die HTML-Ansicht). source_url: nur öffentliche http(s)-URLs, max. 25 MB; filename und mime_type werden daraus abgeleitet. Bei file_base64 filename MIT Dateiendung angeben (z. B. bild.jpg) — WordPress lehnt Dateien ohne erlaubte Endung ab; mime_type (z. B. image/jpeg) empfohlen. Optional title/alt_text. Liefert {success, media:{id,url,mime,title}}. alt_text wird per Folge-Update gesetzt und nicht zurückgemeldet — bei Bedarf mit wp_list_media(search=...) gegenprüfen. file_base64 hoechstens 25 MB (sonst {'error': 'too_large'}) — groessere Dateien per source_url oder Upload-Link. Bei {"error": "wp_timeout"} oder "wp_unreachable" ist offen, ob die Änderung angekommen ist — erst nachsehen, nicht blind wiederholen. {"error": "source_unreachable"}: source_url war nicht abrufbar, in WordPress wurde nichts angelegt. Dasselbe bei {"error": "download_timeout"}: source_url muss binnen 90 s vollständig geladen sein. Timeout nur beim Folge-Update von title/alt_text: Upload ist erfolgreich ({"success": true, "media": {...}}) plus {"warning": "..."} — nicht neu hochladen. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wp_upload_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
alt_textNo
filenameNo
mime_typeNo
workspaceNo
source_urlNo
file_base64No

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?

Goes far beyond the annotations: 25 MB size ceilings per input mode, a 90 s download budget, a list of concrete error payloads (too_large, source_unreachable, download_timeout, wp_timeout, wp_unreachable) and what each implies about whether anything was created. The retry guidance ("erst nachsehen, nicht blind wiederholen") and the note that a follow-up timeout still leaves the upload successful with a warning are exactly the operational context annotations cannot convey. No contradiction with readOnlyHint=false.

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 core decision, then grouped by parameter, then by error case — a logical order with no filler sentences. It is dense and slightly repetitive (the 25 MB limit appears for both input modes, error handling spans several lines), and the German text paired with an English tool name adds minor friction, but nothing is genuinely wasteful.

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?

Despite an output schema existing, the description adds information the schema cannot express: alt_text is applied by a follow-up update and is not echoed back, so it must be verified via wp_list_media(search=...). Combined with the timeout semantics, an agent has everything needed to call this correctly and to recover from partial failures.

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: source_url constraints and auto-derivation of filename/mime_type, the requirement that filename include an extension for file_base64 (WordPress rejects otherwise), mime_type as recommended, title/alt_text as optional, and workspace as a slug optional when only one workspace exists. All seven parameters receive meaning beyond their bare types.

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 ("Datei in die WordPress-Medienbibliothek hochladen") and immediately splits it into the two mutually exclusive input modes (source_url vs. file_base64). Sibling disambiguation is implicit but effective: it names wp_list_media for verification and frames this as the creation path versus the listing/deletion tools.

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 selection rules ("Genau eines angeben") plus a hard exclusion with an alternative: chat attachments and local client files cannot reach the server, so use source_url if the file is online. It even specifies the exact direct-link form for Google Drive and warns against the share link, which returns HTML instead of the file.

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