Skip to main content
Glama

wp_list_shortcodes

List all shortcodes used in a WordPress page by providing page ID or slug. Filter by tag to inspect specific shortcodes and understand page structure.

Instructions

Parse and list all shortcodes found in a page's content. Useful for understanding page structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idNoPage ID
page_slugNoPage slug
filter_tagNoOnly list this shortcode tag

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Parse and list' implies a non-destructive operation, but the description never explicitly confirms the page content is unmodified, discloses failure behavior (page not found, both identifiers provided, or no identifiers given), or hints at the return format—especially problematic since there is no output schema to fall back on.

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?

Two short sentences with the core function front-loaded; there is no fluff or redundant restating of the tool name. The second sentence, 'Useful for understanding page structure,' is somewhat generic but still adds a mild use-case rationale, so the structure earns solid marks without being exemplary.

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?

For a tool with no output schema, no annotations, and three optional parameters, the description leaves significant gaps: it doesn't explain what the returned list looks like, how an agent should identify the page (prefer page_id vs page_slug, or neither), or what happens if no page matches. Given the low complexity, more could easily have been said.

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%, so the schema already documents all three parameters (page_id, page_slug, filter_tag). The description adds no meaning beyond the schema—it doesn't clarify precedence between page_id and page_slug, whether filter_tag matches exact tags only, or whether the parameters are combinable. Baseline 3 applies.

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?

The description states a specific verb+resource: 'Parse and list all shortcodes found in a page's content.' The verb 'list' signals a read/enumeration operation, which visually distinguishes it from mutation siblings like wp_insert_shortcode and wp_replace_shortcode. However, it doesn't explicitly differentiate itself from wp_elementor_get_shortcode_content, another read-oriented shortcode tool, so it falls short of a 5.

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?

The only guidance is 'Useful for understanding page structure,' which is a vague rationale rather than actionable when-to-use direction. It never tells an agent when to pick this tool over the several shortcode-related siblings (wp_elementor_get_shortcode_content, wp_replace_shortcode, wp_insert_shortcode), and gives no exclusions or prerequisites.

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

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/leonardobora/mcp-wordpress'

If you have feedback or need assistance with the MCP directory API, please join our Discord server