Skip to main content
Glama

WordPress and PHP security

wp_security
Read-onlyIdempotent

Checks a WordPress site against known vulnerabilities and tells what to update first. Use when the user asks if a site is safe or up to date, or before advising on updates or hosting: pass the site's WordPress and PHP versions, plugins and themes (slug:version, or the pasted output of wp plugin list / wp theme list) in one call. Returns an ordered urgent list with the fixed versions, the update commands, and only the plugins and themes that need attention (pass detail "full" for every row). Without a site, returns the latest WordPress and PHP security releases and which branches still get fixes. It compares versions with public records (Wordfence, CVE, CISA KEV): it never scans or logs in to a site.

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": "wp_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
phpNoThe PHP version a site runs, e.g. "8.1.30": says if that branch still gets security fixes (a plugin's minimum PHP can be checked here too, as a branch status)
detailNoFor a site check. "short" (default): what to do first, and only the plugins and themes that need attention, the others by name. "full": every row with its records, plus the general security actions and the branch tables.
themesNoThe site's themes: "astra:4.6, twentytwentyfive:1.2", or the raw output of `wp theme list --fields=name,status,version --format=csv`. Up to 10. Checked for known vulnerabilities against the installed version.
pluginsNoThe site's plugins: "akismet:5.3, contact-form-7:6.0.1, woocommerce", or the raw output of `wp plugin list --fields=name,version,status,update_id --format=csv` (or --format=json) pasted as is. Up to 60. Plugins outside WordPress.org (premium, commercial) are checked under their own slug; must-use plugins are skipped and listed.
wordpressNoThe WordPress version a site runs, e.g. "6.8.2": says if that branch still gets security fixes. Not a plugin's minimum requirement: for what changed since a version, use wp_today with since

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "For a site check. \"short\" (default): what to do first, and only the plugins and themes that need attention, the others by name. \"full\": every row with its records, plus the general security actions and the branch tables.",
      +  "enum": [
      +    "short",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / wordpress / description
      Previous value: -"The WordPress version a site runs, e.g. \"6.8.2\": says if that branch still gets security fixes. Not a plugin's minimum requirement: for what changed since a version, use wp_now with since"New value: +"The WordPress version a site runs, e.g. \"6.8.2\": says if that branch still gets security fixes. Not a plugin's minimum requirement: for what changed since a version, use wp_today with since"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations by naming the data sources (Wordfence, CVE, CISA KEV) and stating the critical negative behavior: "it never scans or logs in to a site." It also sketches the return shape (ordered urgent list, fixed versions, update commands, filtering behavior) and the "detail full" switch, though it doesn't mention rate limits or result freshness.

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-loads the purpose, then usage, then input shape, then return values, then a disambiguating scope note — a sensible order with no filler sentences. A few phrases (the slug:version examples, the plugin/theme count limits) duplicate the schema and could be trimmed.

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?

There is no output schema, and the description compensates by describing both return modes (site check vs. no-site latest releases) and what the filtered vs. "full" output contains. For a read-only, five-parameter tool with full schema coverage, nothing an agent needs to call it correctly is missing.

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 an invocation-level instruction the schema cannot express: pass versions, plugins and themes together "in one call," plus the accepted "slug:version or pasted wp plugin list output" pattern. The detail parameter's effect on the response is restated, which is slightly redundant with the enum description.

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?

Opens with a specific verb and resource ("Checks a WordPress site against known vulnerabilities") and states the output's purpose ("tells what to update first"). It also separates itself from the sibling wp_today by scoping that tool to "what changed since a version," so an agent can route correctly without opening a 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?

Gives explicit triggers ("when the user asks if a site is safe or up to date, or before advising on updates or hosting") and an explicit alternative with its condition ("for what changed since a version, use wp_today with since"). It also defines the no-site mode, so both invocation branches are covered.

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