Skip to main content
Glama

wp_list_media

Lists WordPress media library items with filters for site, type, status, author, date, parent, and search, plus pagination and sorting controls.

Instructions

List media library items

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>"
    },
    "name": "wp_list_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
siteYesSite id (see list_sites)
slugNoLimit to these slugs
afterNoPublished after this ISO8601 date
orderNoSort directiondesc
authorNoLimit to these author user IDs
beforeNoPublished before this ISO8601 date
offsetNoSkip this many items (overrides page)
parentNoLimit to items attached to these post IDs ([0] = unattached)
searchNoSearch term
statusNoLimit to these statuses (default inherit)
excludeNoExclude these IDs
includeNoLimit to these IDs
orderbyNoSort fielddate
per_pageNoItems per page (max 100)
mime_typeNoLimit to these MIME types, e.g. ['image/webp']
media_typeNoLimit to these media types
author_excludeNoExclude these author user IDs
modified_afterNoModified after this ISO8601 date
parent_excludeNoExclude items attached to these post IDs
search_columnsNoColumns to search (default title, excerpt and content)
modified_beforeNoModified before this ISO8601 date
search_semanticsNo'exact' matches the search term as a whole phrase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changedv3.14.0
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "Published after this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / author
      Added value: +{
      +  "description": "Limit to these author user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / author_exclude
      Added value: +{
      +  "description": "Exclude these author user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / before
      Added value: +{
      +  "description": "Published before this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclude
      Added value: +{
      +  "description": "Exclude these IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "Limit to these IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / media_type / description
      Previous value: -"Filter by type"New value: +"Limit to these media types"
    • removedInput schema / properties / media_type / enum
      Removed value: -[
      -  "image",
      -  "video",
      -  "audio",
      -  "application"
      -]
    • addedInput schema / properties / media_type / items
      Added value: +{
      +  "enum": [
      +    "image",
      +    "video",
      +    "text",
      +    "application",
      +    "audio"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / media_type / type
      Previous value: -"string"New value: +"array"
    • addedInput schema / properties / mime_type
      Added value: +{
      +  "description": "Limit to these MIME types, e.g. ['image/webp']",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / modified_after
      Added value: +{
      +  "description": "Modified after this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / modified_before
      Added value: +{
      +  "description": "Modified before this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many items (overrides page)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / order
      Added value: +{
      +  "default": "desc",
      +  "description": "Sort direction",
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / orderby
      Added value: +{
      +  "default": "date",
      +  "description": "Sort field",
      +  "enum": [
      +    "author",
      +    "date",
      +    "id",
      +    "include",
      +    "modified",
      +    "parent",
      +    "relevance",
      +    "slug",
      +    "include_slugs",
      +    "title"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / parent
      Added value: +{
      +  "description": "Limit to items attached to these post IDs ([0] = unattached)",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / parent_exclude
      Added value: +{
      +  "description": "Exclude items attached to these post IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / per_page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / search_columns
      Added value: +{
      +  "description": "Columns to search (default title, excerpt and content)",
      +  "items": {
      +    "enum": [
      +      "post_title",
      +      "post_content",
      +      "post_excerpt"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / search_semantics
      Added value: +{
      +  "description": "'exact' matches the search term as a whole phrase",
      +  "enum": [
      +    "exact"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Limit to these slugs",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "Limit to these statuses (default inherit)",
      +  "items": {
      +    "enum": [
      +      "inherit",
      +      "private",
      +      "trash"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "site"
      +]
  3. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing beyond the bare verb. It does not mention that results are paginated (default 20, max 100), that status filtering defaults to 'inherit' so trashed/private items are excluded unless requested, or that any permissions/auth are required to read the library.

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

Conciseness3/5

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

The single sentence is free of waste and front-loaded, but for a 23-parameter tool it is under-specified rather than concise. Brevity here costs information rather than saving it.

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?

With 23 parameters, no annotations, and no output schema, the description should at minimum explain the default status behavior, pagination model, and how this differs from the other media-listing siblings. None of that is present, leaving the agent to reconstruct behavior entirely from parameter names.

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% across all 23 parameters, so the schema already explains page, offset, mime_type, parent, status and the rest. The description adds no filtering semantics, defaults, or interaction notes (e.g. offset overriding page), which is the baseline 3 when the schema does the heavy lifting.

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

Purpose3/5

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

The phrase "List media library items" does name a verb and a resource, so the basic operation is inferable. However, it is indistinguishable from siblings such as mcp_list_media and media_list_attachments, and the word "items" adds no precision about what a media library item is or what scope is returned.

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 when-to-use guidance, no exclusions, and no mention of alternatives despite the presence of several closely named list/get media siblings. The agent must guess whether this or mcp_list_media is the correct entry point.

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

Deploy Server

Other Tools