Skip to main content
Glama
OpenCDR MCP

OpenCDR MCP

Official
by dbnz-io

opencdr_rules_list

Read-onlyIdempotent

Retrieve a paginated, read-only list of detection or correlation rules, optionally filtered by rule kind or agent ID, to inspect configured OpenCDR rules.

Instructions

List detection/correlation rules. Read-only.

kind: "signal" or "correlation" (omit for both; detection lists use opencdr_lists_list). Paginated: pass the returned next_token to continue.

In fleet mode, supply agent_id explicitly. Core mode leaves agent_id unset.

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

Input Schema

NameRequiredDescriptionDefault
kindNo
agent_idNo
page_sizeNo
next_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Agent Id"
      +}
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description's added value is in the operational details: pagination via 'pass the returned next_token to continue' and the fleet-vs-core requirement for agent_id. Those are behaviors not derivable from the annotations. It doesn't say anything about ordering, filtering semantics, or result volume, which would have earned a 5.

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?

Purpose and read-only status are front-loaded, followed by parameter caveats and pagination in a short, scannable block. The line breaks and quoted enum text are slightly awkward, but no sentence is filler.

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?

For a four-parameter list tool with no output schema, the description covers routing, the optional filter, pagination continuation, and the mode-dependent identifier capture. What's missing is a hint about what a returned rule object contains and the default page size behavior, but nothing blocks correct invocation.

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 description coverage is 0%, so the description carries the burden and largely does: it explains the kind enum values and the 'omit for both' default, the next_token continuation contract, and the fleet-mode meaning of agent_id. Only page_size is left with no explanation beyond its name and default.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('List detection/correlation rules') and immediately tags it 'Read-only'. It also names the sibling that handles the adjacent resource type (detection lists -> opencdr_lists_list), so an agent can distinguish it from the look-alike. The only gap is that it never frames itself against opencdr_rules_get for single-rule fetches, so it stops short of full sibling differentiation.

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 an explicit exclusion: for detection lists use opencdr_lists_list instead. It also states the mode-dependent condition for agent_id ('In fleet mode, supply agent_id explicitly. Core mode leaves agent_id unset'), which is real selection/usage guidance. It does not explicitly state when to reach for rules_get or rules_metrics instead, keeping it below a 5.

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