Skip to main content
Glama

Test Wazuh rule on a real manager

test_wazuh_rule
Read-onlyIdempotent

Runs log lines through a real wazuh-manager 4.14.9 (fresh logtest session) with your custom rules and decoders: which decoder and rule matched, whether YOUR rule fired, and load warnings such as 7617/7619. Logtest engine: frequency/timeframe rules and some live-only behaviour are out of scope. Free: 1 log line with your files (3 with the stock ruleset only), summary. 10 lines with decoded fields and full alerts: POST https://atkvn.com/agent/v1/wazuh-testfire (x402, USD 0.008 per call).

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": {
      "logs": "<logs>"
    },
    "name": "test_wazuh_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
logsYesRaw log lines exactly as the agent would forward them, one event per item.
rulesNoOptional custom rule files: [{"filename": "0096-local.xml", "xml": "<group>...</group>"}]. Filename order matters: files load by name together with the stock ruleset.
decodersNoOptional custom decoder files, same shape as rules.
log_formatNoWazuh log_format, e.g. syslog or json.syslog

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: each call uses a fresh logtest session, certain engine behaviors are out of scope, calls are metered by tier, and the paid path requires x402 payment at a stated price. Rate-limit and cost disclosure is exactly what annotations cannot convey. It does not describe latency or failure modes for the remote call, keeping it at 4.

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?

The capability statement is front-loaded and the caveats are appended compactly. The pricing/endpoint tail is dense but each clause carries operational information an agent needs before calling.

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 still explains what comes back: matched decoder and rule, whether the custom rule fired, load warnings, and that higher tiers add decoded fields and full alerts. Combined with full schema coverage, an agent has everything needed to decide and invoke.

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 all four parameters are already documented in the schema, including the filename-ordering caveat and the log_format example. The description adds no per-parameter meaning beyond what is structured, so the baseline 3 applies.

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 ('Runs log lines through a real wazuh-manager 4.14.9') and enumerates the exact outputs: matched decoder, matched rule, whether the user's own rule fired, and load warnings like 7617/7619. This clearly separates it from audit_wazuh_rules, which inspects rules statically rather than executing log lines through a live engine.

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 explicit scope exclusions ('frequency/timeframe rules and some live-only behaviour are out of scope') and lays out the access tiers (1 free line, 3 with stock ruleset, 10 with decoded fields/full alerts). It stops short of naming a sibling alternative or stating the precondition that both rules and decoders are already written, so it falls just short of a 5.

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