Skip to main content
Glama

Audit the media library

audit_media
Read-only

Check media library for images missing alt text and identify unused attachments. Fix accessibility gaps and free up disk space by targeting high-value alt text and unreferenced media.

Instructions

Audit the media library for images missing alt text and for attachments not referenced by any content. Alt text is the highest-value accessibility fix on most sites, and unused media is where disk usage quietly accumulates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many attachments to examine.
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.
check_unusedNoAlso check which attachments no content references. Slower — it scans content bodies.
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering the safety profile. The description adds the specific checks performed (alt text and unused media) and the reasoning behind them, which is useful behavioral context. However, it does not mention any operational behavior like pagination, limits, or output format, so it adds only modest value beyond annotations.

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 two sentences: the first states the exact scope, and the second offers a concise rationale. No wasted words, and the core functionality is front-loaded.

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 read-only audit tool with three optional parameters and no output schema, the description is reasonably complete. It explains what the tool checks and why it matters. While it does not describe the return format, the agent can infer it from the audit purpose and the well-documented parameters. Slightly more detail on output would make it perfect, but it is adequate.

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 coverage is 100% and each parameter already has a descriptive comment (limit range, site_id selection logic, check_unused slow behavior). The tool description reinforces the purpose of check_unused by mentioning unused media, but it adds little beyond what the schema provides. Baseline 3 is appropriate given the high schema coverage.

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 uses a specific verb ('Audit') and resource ('media library'), and clearly lists the two distinct checks: images missing alt text and attachments not referenced by content. This distinguishes it from siblings like list_media (which only lists) and audit_content (which audits content, not media).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description provides strong contextual rationale for when the tool is valuable (accessibility and disk usage) and implicitly distinguishes it from listing or content audits. It does not explicitly name alternatives or say 'use this instead of X', but the purpose is clear enough for an agent to select it appropriately.

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