Skip to main content
Glama

List images

wp_list_media
Read-only

Lists Media Library images with their alt text and supports filtering to find images missing alt text. Use it to audit image accessibility and identify items needing descriptions.

Instructions

Lists images from the Media Library with their alt text. Set missing_alt_only to find images that need alt text (the filter applies to the current page of results, so check the next pages too).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
pageNo
searchNo
per_pageNo
missing_alt_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is handled. The description adds a non-obvious behavioral caveat that the annotation and schema cannot convey: missing_alt_only filters only the current page, so the agent must page through. It stops short of describing the returned record shape or how many items come back.

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?

Two tight sentences, front-loaded with the core action, and the parenthetical caveat is attached to the exact parameter it modifies. Nothing is redundant or padded.

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

Completeness3/5

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

For a simple read-only list tool with no output schema, the description covers purpose and the main paging gotcha but omits the return shape (what fields accompany alt text) and pagination bounds like the per_page maximum. Adequate to call correctly, incomplete for interpreting results.

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 0%, so the description carries the burden, and it only explains one of four parameters (missing_alt_only, including its page-scoping subtlety). Page, per_page and search are left to be inferred from names and defaults, which is workable but not compensating for the coverage gap.

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?

States a specific verb and resource ('Lists images from the Media Library') plus the distinguishing payload ('with their alt text'), which separates it from wp_list_content. It never names a sibling explicitly, so the differentiation is implied rather than guaranteed.

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?

Gives a clear task-oriented trigger for one parameter ('set missing_alt_only to find images that need alt text'), which is genuinely actionable usage guidance. It does not say when to pick this over wp_list_content or wp_get_content, and offers no exclusions, so guidance remains implied for anything beyond the alt-text workflow.

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