Skip to main content
Glama

List Snippets

wp_list_snippets
Read-only

List code snippets managed by WPCode or Code Snippets plugin. Shows all PHP/JS/CSS snippets with their status (active/inactive).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by snippet status. Default: "all"
site_idNoSite ID to target (optional if you have only one connected site)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description usefully adds that snippets come from the WPCode / Code Snippets plugin and that status (active/inactive) is included, but says nothing about return format, pagination, or cross-plugin behavior.

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 tight sentences with the core purpose front-loaded and no filler. The second sentence adds meaningful scope (status field) rather than padding.

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 list tool with 100% schema coverage and clear annotations, the description is adequate; the schema covers filtering and the annotations cover behavior. With no output schema, it need not describe return values, though a note on multi-plugin behavior would have been a plus.

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 both parameters are already documented, including the enum for status and the optional site_id. The description's mention of active/inactive status loosely echoes the status param but adds no syntax or default information beyond the schema, so 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?

States a specific verb (list) and resource (code snippets) and names the managing plugins (WPCode / Code Snippets), so the agent knows exactly what entity is returned. It implies a collection vs. the singular wp_get_snippet sibling but never names it explicitly, so it misses full sibling differentiation.

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?

No when-to-use guidance is given, and no alternative is named even though wp_get_snippet exists for retrieving a single snippet. The agent must infer that this is the enumeration counterpart of that tool.

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