Skip to main content
Glama

List managed snippets

wp_snippet_list
Read-only

List bridge-stored PHP snippets with version, scope, and active status to manage custom WordPress behavior without editing theme files.

Instructions

List PHP snippets stored by the bridge. Snippets are versioned PHP blocks with a scope (init, admin_init, wp_head, wp_footer, manual) and an active flag — the safe way to add behaviour without editing theme files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered structurally. The description adds real domain context (versioned blocks, scope enum values, active flag) that tells the agent what a listed item represents, but it says nothing about ordering, pagination, or result size — minor gaps given the safety profile is already disclosed.

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 sentences, front-loaded with the action and resource. The second sentence is partly domain education rather than invocation-critical information, but it is short and directly supports interpreting the result, so it still earns its place.

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 zero-parameter, read-only list tool with no output schema, the description supplies the concept model (scope values, active flag) an agent needs to reason about results. It stops short of describing what a returned record looks like or how results are ordered, which would be the only remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the schema carries no semantic burden and the baseline is 4. The description does not need to explain arguments, and none are omitted.

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?

Names a specific verb+resource ('List PHP snippets stored by the bridge') and then defines what a snippet actually is (versioned PHP blocks with a scope and active flag), so the agent understands the domain object without opening anything else. The read-only retrieval framing is unmistakable against wp_snippet_save/wp_snippet_run/wp_snippet_delete.

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?

The description contextualizes snippets as 'the safe way to add behaviour without editing theme files', which implies the intended workflow, but it never states when to call this versus wp_snippet_run or wp_snippet_save, nor any prerequisite such as inspecting snippets before running one. Usage is inferable but not spelled out.

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