Skip to main content
Glama

wordpress_upload_media_from_base64

Upload base64-encoded files directly to your WordPress media library. Use for files under 10 MB; larger files should use URL upload.

Instructions

[UNIFIED] Upload a base64-encoded file directly to the WordPress media library. For chat-attached images/files smaller than ~10 MB. Use upload_media_from_url for larger files or chunked path later.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
mimeNo
siteYes
titleNo
captionNo
alt_textNo
filenameYes
convert_toNo
set_featuredNo
skip_optimizeNo
attach_to_postNo
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only states the basic action of uploading, lacking details about side effects, permissions, idempotency, error handling, or return values. For a mutation tool with 11 parameters, this is insufficient.

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?

The description is brief and front-loaded with key purpose and usage guidance. However, given the tool's complexity, the conciseness sacrifices necessary detail for parameter semantics and behavior.

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

Completeness1/5

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

Despite 11 parameters and no output schema or annotations, the description does not cover return values, error conditions, prerequisites, or the processing of base64 data. It is insufficient for an agent to use the tool reliably.

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

Parameters1/5

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

Schema description coverage is 0% and the description only mentions 'base64-encoded data' and 'filename', ignoring the other 8 parameters (mime, title, caption, alt_text, convert_to, set_featured, skip_optimize, attach_to_post). This fails to provide meaningful guidance beyond the schema.

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 verb 'Upload' and resource 'base64-encoded file to WordPress media library', and distinguishes from a sibling (upload_media_from_url) by specifying small file size (<10 MB) and chat-attached use case. However, it does not differentiate from chunked upload siblings.

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?

Explicitly states when to use this tool (for chat-attached images/files <10 MB) and when not (for larger files), with an explicit alternative mentioned (upload_media_from_url) and a note about chunked path later.

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/airano-ir/mcphub'

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