Skip to main content
Glama

List WordPress sites

list_wordpress_sites
Read-only

Lists the sites the WordPress.com login connected to a workspace can see (WordPress.com sites and self-hosted sites connected through Jetpack). Use this to find the siteId to pass in update_post / batch_update_posts platform_settings for a WordPress post (omit it to post to the primary site). Returns id, name, url, jetpack, private, can_publish and primary per site; only sites with can_publish true accept posts. Pass site_id to also get that site's categories (id, name, parent), for the optional categoryIds.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_id": "<workspace_id>"
    },
    "name": "list_wordpress_sites"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idNoOptional. A site id from this list; the response then includes its categories.
workspace_idYesWorkspace whose WordPress connection to use. Get one from list_workspaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, non-destructive and openWorld, but the description adds real substance: the per-site return fields, the `can_publish` gate ('only sites with can_publish true accept posts'), and the side effect that passing `site_id` expands the response with categories. It stops short of pagination, ordering, or permission/rate-limit details, which keeps it at a strong 4 rather than a 5.

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 the core action and scope, then usage, then return contract. Dense but every clause carries information; the middle sentence listing return fields is long but justified in the absence of an output schema. Slightly packed rather than padded.

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?

With no output schema, the description carries the burden of describing the return shape and does so field by field, plus the semantic constraint on can_publish and the conditional category payload. An agent has everything needed to call this correctly and use the result.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining why `site_id` matters (it triggers category results used for the optional `categoryIds`) and by framing the primary-site default when no site is supplied. That is genuine semantic value, not a restatement.

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?

Specific verb plus resource ('Lists the sites...'), with scope narrowed to what the WordPress.com login connected to a workspace can see, and it explicitly covers both WordPress.com and Jetpack-connected self-hosted sites. An agent can distinguish this from siblings like list_workspaces or update_post without opening any 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?

States the downstream purpose directly: find the `siteId` to pass in update_post / batch_update_posts platform_settings, and gives the fallback behavior (omit it to post to the primary site). It also names the conditional case for `site_id` (fetch categories for `categoryIds`), and the schema routes to list_workspaces for workspace_id.

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.