Skip to main content
Glama
crowdsecurity

crowdsec-local-mcp

Official

explain_scenario

Shows how CrowdSec processes a log line: what parsers extract and which scenarios match. Use to understand scenario behavior without generating an alert.

Instructions

    Shows how crowdsec processes a single log line: what is extracted by the parsers, and which scenarios match.
    A match does not mean an alert is generated, only that the event was of interest for the scenario.
    This tool MUST NEVER be called with multiple log lines. If you need to test whether a scenario generates an alert, use the `test_scenario` tool instead.
    The scenario stack (manage_scenario_stack) must be running to use this tool.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
log_lineYesA single example log line that should trigger the scenario
log_typeYesType of logs the scenario is intended to analyze
collectionsYesList of CrowdSec collections to install alongside the scenario
scenario_yamlYesScenario YAML to explain
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that a match does not imply an alert, that it shows internal processing, and requires a running scenario stack. Does not detail output format but is otherwise transparent about behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, no fluff, front-loaded with main purpose. Every sentence provides essential information (purpose, constraint, alternative, prerequisite). Very concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description explains enough to use the tool: purpose, constraints, prerequisites, and alternative. Could mention output format, but not critical for usage. Sufficient for a diagnostic tool.

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% with self-explanatory parameter descriptions. The tool description adds no additional semantic nuance beyond what the schema provides, so baseline score of 3 is appropriate.

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 clearly states the tool shows how CrowdSec processes a single log line (extraction and matching), and differentiates from the sibling `test_scenario` tool, making the purpose unmistakable.

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?

Explicitly says MUST NEVER be called with multiple log lines, directs to `test_scenario` for alert testing, and notes the prerequisite that the scenario stack must be running. Provides clear when-to-use and when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crowdsecurity/crowdsec-local-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server