Skip to main content
Glama

mcp_run_cron

Run a WordPress cron hook's earliest scheduled event now, moving recurring events to their next slot or unscheduling single events.

Instructions

Run the earliest scheduled event of a cron hook now, like wp cron event run: a recurring event moves to its next slot, a single event is unscheduled, then the hook fires (404 if not scheduled). Returns next_run_timestamp (null for a single event). Audit-logged. cvrt-mcp-endpoints 1.16.0+; older versions leave the event due.

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": {
      "site": "<site>",
      "hook": "<hook>"
    },
    "name": "mcp_run_cron"
  }
}

Input Schema

NameRequiredDescriptionDefault
hookYesCron hook name to run
siteYesSite id (see list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "hook"
      -]New value: +[
      +  "site",
      +  "hook"
      +]
  2. First observedv2.0.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the state transitions (recurring event rescheduled to next slot, single event unscheduled), the error condition (404 if not scheduled), the return field next_run_timestamp with its null case, audit logging, and a version caveat where older plugin versions leave the event due. This is exactly the behavioral context annotations would normally supply.

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?

Content is front-loaded with the action, then side effects, return value, and version note in descending importance, and every clause conveys real behavior. The multi-clause sentence is dense and slightly run-on, which costs it a point on readability.

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?

Complete for a single-purpose mutation tool: it covers the mutation semantics, failure mode, return value (important since there is no output schema), audit trail, and version-dependent edge behavior. An agent has everything needed to call it and interpret the result.

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 coverage is 100%, so both parameters are already documented, and the description adds little beyond the schema: 'hook fires' reinforces that the hook name selects the scheduled event. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description states a specific verb and resource: run the earliest scheduled event of a given cron hook immediately, with a concrete wp-cli analogue (`wp cron event run`). That scope is narrow enough to distinguish it from the read-oriented mcp_get_cron_status without opening either schema.

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 is implied by 'run ... now' and the '(404 if not scheduled)' precondition, which tells the agent when the call will fail. However, it never names an alternative (e.g. mcp_get_cron_status or mcp_run_action_scheduler) or states when-not to use this tool, leaving routing to inference.

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

Deploy Server

Other Tools