Skip to main content
Glama

Update a media item

update_media

Update WordPress media metadata like title, alt text, caption, and description without re-uploading files.

Instructions

Update a media item's title, alt text, caption, description or attachment — without re-uploading the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe attachment ID.
postNoRe-attach to this content ID.
slugNoURL slug.
titleNoDisplay title.
authorNoUser ID of the author.
captionNoCaption shown beneath the item.
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
alt_textNoAlternative text for accessibility and SEO.
descriptionNoLonger descriptive text.
Behavior3/5

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

Annotations already declare readOnlyHint=false (mutation) and idempotentHint=false (non-idempotent), so the behavioral baseline is known. The description adds the 'without re-uploading' nuance and lists fields, but does not disclose side effects such as whether unspecified fields are preserved or reset. This is adequate but not rich, given the annotation coverage.

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?

A single, clear sentence front-loaded with the action and resource, and it avoids repeating schema details. No wasted words; the key constraint (no re-upload) is included efficiently.

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?

For a 9-parameter mutation tool with full schema coverage and annotations covering the safety profile, the description covers the core purpose and a key constraint. However, the presence of edit_media introduces ambiguity about which tool to use, and the description does not resolve this, slightly reducing completeness.

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 every parameter is documented with a description. The tool description lists several fields (title, alt text, caption, description, attachment) but adds no new semantic meaning beyond the schema. Baseline 3 is appropriate when the schema carries the parameter documentation burden.

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?

The description states a specific verb (update), resource (media item), and enumerates the fields (title, alt text, caption, description, attachment). It distinguishes from create by noting 'without re-uploading the file'. Although it doesn't address the edit_media sibling, the purpose is unambiguous and clear.

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 description implies usage when updating existing media metadata without re-uploading, but it does not explicitly name alternatives or exclusion criteria. With an edit_media sibling present, there is no guidance on when to choose this tool over that one, leaving the agent to infer.

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/alokemajumder/wpxmcp'

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