Skip to main content
Glama

Run Rule Now

run_rule_now
Destructive

Run a scheduled rule on demand, bypassing its cron cooldown. Only works on enabled scheduled rules. Dispatches the rule's actions immediately and honours its execution mode (Propose drafts, Autopilot executes, Observe no-ops); the preview says which. Does NOT advance the cron schedule. The commit returns the dispatch count, run ids, and any handler message. Requires Write + automation.execute; company rules need the Admin role and an operator (unpinned) credential.

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": {
      "ruleId": "<ruleId>"
    },
    "name": "run_rule_now"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleIdYesRule id to run (GUID).
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
runNo
ruleIdNo
effectsNo
firedAtNo
previewNo
warningsNo
expiresAtNo
ruleVersionNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations: it explains that execution mode governs the outcome (Propose drafts, Autopilot executes, Observe no-ops), that the schedule is not advanced, and what the commit returns (dispatch count, run ids, handler message). These are exactly the side-effect details an agent needs before triggering a destructiveHint=true write.

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 core purpose and cooldown bypass, then layers constraints and semantics in short clauses with no filler. Dense but purposeful; the phrase 'the preview says which' is slightly compressed and takes a moment to parse.

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?

For a destructive, multi-mode automation trigger the description covers preconditions, side effects, non-effects on the schedule, and commit output, while the output schema and annotations handle return shape and safety signaling. Nothing material an agent needs before calling is missing.

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 description coverage is 100%, so the baseline applies; the schema already explains ruleId, preview, idempotencyKey, and previewReceipt as a two-step write. The description only alludes to the preview ('the preview says which') without clarifying how the parameters combine, so it adds little beyond the structured fields.

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?

States a specific verb and resource ('Run a scheduled rule on demand') plus the distinguishing mechanic ('bypassing its cron cooldown'), and scopes it to 'enabled scheduled rules'. An agent can tell this apart from dry-run, list-runs, or schedule-editing tools 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear preconditions (only enabled scheduled rules, requires Write + automation.execute, Admin plus operator credential for company rules) and a key exclusion ('Does NOT advance the cron schedule'). It stops short of naming the dry_run_rule sibling as the alternative path, so it is strong but not fully routing.

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