Skip to main content
Glama

Upload Media

wp_upload_media

Upload an image to the WordPress media library from a URL. Returns the media ID and URL which can be used as featured images for posts or products.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the image to upload
titleNoTitle for the media item
site_idNoSite ID to target (optional if you have only one connected site)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, open-world, non-idempotent write that is not destructive, so the safety profile is covered. The description adds that input is fetched from a URL and that a media ID and URL are returned, but it does not warn that repeat uploads create duplicates (relevant given idempotentHint=false) or state any permission requirements.

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

Conciseness5/5

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

Two tight sentences with the action front-loaded and the return-value payoff second. No filler, no redundancy.

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?

With no output schema, the description correctly compensates by naming the returned media ID and URL. For a low-complexity, three-parameter tool with full schema coverage this is close to sufficient, though duplicate-creation and permission behavior remain unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all three parameters are documented in the schema, so the baseline is 3. The description restates the URL source but adds no format, constraint, or multi-site behavior beyond what the schema already provides.

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 (upload), resource (image/media library), and source (from a URL), making it immediately distinguishable from siblings like wp_list_media or stock_photo_search. An agent knows exactly what the tool does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The downstream use case ('can be used as featured images for posts or products') implies when the result is useful, but there is no explicit when-to-use guidance, no exclusions, and no mention of alternatives such as stock_photo_search or swiftly_request_upload. Usage must be inferred.

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