Skip to main content
Glama

snippet_list

Read-only

List and filter WordPress code snippets by tag, type, active state, or search term, and return the site label needed to copy snippets between sites.

Instructions

List code snippets with their tags, purpose, impact, type, location, active state, portable uid, origin and any last error. Also returns this site's label, which is the handle to use when copying snippets between sites. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "snippet_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoExact tag match.
activeNo
searchNoMatch against name, description and purpose.
snippet_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

B3.2/5.0
Behavior3/5

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

The description enumerates the full return payload (tags, purpose, impact, type, location, active, portable uid, origin, last error, site label), which is genuinely useful given there is no output schema. However, "Read-only" merely restates the readOnlyHint annotation, and it says nothing about pagination, result limits, ordering, or error behavior when no snippets match.

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 compact sentences, front-loaded with the primary action and the payload list. The long field enumeration earns its place because no output schema exists, though it reads as a run-on list rather than a structured breakdown.

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

Completeness3/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 no output schema, the description does well on return contents, but with four optional filters at 50% schema coverage it is incomplete on the input side — filter combination semantics, defaults, and result size limits are all absent.

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

Parameters2/5

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

Schema coverage is only 50%: 'tag' and 'search' are documented, but 'active' and 'snippet_type' have no schema descriptions. The description discusses return fields only and adds no meaning about how the four filters behave, whether they combine with AND semantics, or what the defaults are — so it fails to compensate for the coverage gap.

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 and resource ("List code snippets") and enumerates the returned fields, so the agent knows exactly what the tool produces. It does not explicitly contrast itself with snippet_get or other siblings, leaving that differentiation to be inferred from the list-vs-single naming.

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?

Usage context is only implied: the note that the response includes the site label "to use when copying snippets between sites" hints at a cross-site migration workflow. There is no explicit statement of when to prefer this over snippet_get, or whether filtering is required or optional.

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