Skip to main content
Glama

List media

list_media
Read-only

List WordPress media library items with filters for type, date, author, and keyword search, plus pagination to browse results.

Instructions

List items in the media library with search, type filtering, date filtering and pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoWhich page of results to return.
afterNoUploaded after this ISO 8601 date.
orderNoSort direction.desc
authorNoUser ID of the author.
beforeNoUploaded before this ISO 8601 date.
parentNoOnly attachments attached to this content ID.
searchNoMatch against title, caption, alt text and filename.
orderbyNoWhich field to sort by.date
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.
per_pageNoHow many results per page.
mime_typeNoFilter by exact MIME type, e.g. "image/png".
media_typeNoFilter by broad media type.
missing_alt_textNoReturn only images with empty alt text — useful for an accessibility or SEO sweep.
Behavior3/5

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

The annotations already provide readOnlyHint=true and destructiveHint=false, so the description need not restate that it is read-only. The description adds no additional behavioral context beyond what the schema and annotations convey, such as return format or pagination defaults. It does not contradict the annotations and provides a baseline level of 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 front-loads the core purpose ('List items in the media library') and then lists the key capabilities. There is zero wasted wording, and it is easy to scan. This is exemplary conciseness.

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?

Given that this is a read-only list operation with a fully described schema and safety annotations, the description is mostly complete. It omits explicit return format and does not differentiate from siblings, but those are minor gaps because the purpose is clear and the schema covers all parameter behavior. It is adequate for an agent to call the tool correctly.

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?

All 13 parameters have schema descriptions with 100% coverage, so the baseline is 3. The description does mention 'search, type filtering, date filtering and pagination', which groups some parameters, but it does not add any meaning beyond what the schema already states for each parameter. No additional semantic value is provided.

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 clearly states the verb ('List'), the resource ('items in the media library'), and key capabilities (search, type filtering, date filtering, pagination). It is immediately distinguishable from sibling tools like list_content (content library) and get_media (single item), so an agent can tell what it does without inspecting 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 Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives. The description does not mention get_media for single-item retrieval or list_content for posts, nor does it state any contexts where this tool is preferred. The only context is implied by the name and purpose, but no explicit usage direction is provided.

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