Skip to main content
Glama

List plugin files

wp_list_plugin_files
Read-onlyIdempotent

List the files inside one installed plugin's folder (wp-content/plugins/), recursively; the plugins themselves are listed by wp_list_plugins, a file's content is read by wp_read_plugin_file. Returns plugin and files: paths relative to the folder, sorted, at most 800 (the answer does not say whether more exist). An unknown folder is an error, and so is a single-file plugin without a folder (hello.php). Requires edit_plugins; runs only with the site's write access on. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault
pluginYesPlugin folder name, the part before the slash in the file wp_list_plugins returns (e.g. "akismet" for akismet/akismet.php).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / plugin / description
      Previous value: -"Plugin folder, e.g. \"akismet\"."New value: +"Plugin folder name, the part before the slash in the file wp_list_plugins returns (e.g. \"akismet\" for akismet/akismet.php)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the 800-item cap and, importantly, that truncation is not signalled in the response — a caveat an agent would otherwise misread as a complete listing. It adds the capability requirement (edit_plugins), the site write-access precondition, and the AlphaBridge Connect forwarding scope, none of which appear in structured fields.

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

Conciseness4/5

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

Front-loaded with purpose, then alternatives, then return shape, then failure modes and prerequisites — a sensible ordering with essentially no filler. It is a dense semicolon-chained block that borders on run-on, which slightly hurts scannability but nothing is expendable.

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

Completeness5/5

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

There is no output schema, so the description correctly carries the return shape: 'plugin and files', paths relative to the folder, sorted, capped at 800. Combined with the error conditions and permission requirements, an agent has everything needed to call it and interpret the result.

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 the schema already supplies the derivation (the part before the slash in the wp_list_plugins path) plus an akismet example. The description adds no syntax, validation, or edge-case meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource with precise scope: files inside one installed plugin's folder, recursively, with the path template given. It explicitly names the siblings it is not (wp_list_plugins for the plugin inventory, wp_read_plugin_file for content), so an agent can distinguish all three without opening a schema.

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

Usage Guidelines5/5

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

Routes explicitly: use wp_list_plugins to enumerate plugins and wp_read_plugin_file to read a file's content, leaving this tool for folder structure only. It also states the conditions under which it fails (unknown folder, single-file plugin like hello.php) and the access prerequisites, which lets an agent avoid predictable errors.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources