Skip to main content
Glama

wp_upload_media

Upload files to WordPress media library from local storage. Specify file path, title, alt text, caption, description, and attach to posts.

Instructions

Uploads a file to the WordPress media library.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteNoThe ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured.
file_pathYesThe local, absolute path to the file to upload.
titleNoThe title for the media item.
alt_textNoAlternative text for the media item (for accessibility).
captionNoThe caption for the media item.
descriptionNoThe description for the media item.
postNoThe ID of a post to attach this media to.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Uploads' implies a write operation, it lacks critical details: whether authentication is required, what permissions are needed, if there are file size or format restrictions, how errors are handled, or what the return value contains. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded with the core action and resource, making it easy to parse quickly—every word earns its place.

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

Completeness2/5

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

For a mutation tool with 7 parameters and no annotations or output schema, the description is incomplete. It doesn't address behavioral aspects like authentication needs, error handling, or return values, nor does it provide usage guidance relative to siblings. The high schema coverage helps with parameters, but other critical context is missing.

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%, so the schema already fully documents all 7 parameters with clear descriptions. The tool description adds no additional parameter information beyond what's in the schema, but since the schema does the heavy lifting, the baseline score of 3 is appropriate—adequate but not adding value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Uploads') and target resource ('a file to the WordPress media library'), making the purpose immediately understandable. It doesn't explicitly differentiate from sibling tools like 'wp_update_media' or 'wp_get_media', but the verb 'Uploads' suggests creation rather than modification or retrieval, providing some implicit distinction.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'wp_update_media' for modifying existing media or 'wp_get_media' for retrieval. It also doesn't mention prerequisites such as authentication requirements or file format limitations, leaving the agent with insufficient context for optimal tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/docdyhr/mcp-wordpress'

If you have feedback or need assistance with the MCP directory API, please join our Discord server