Skip to main content
Glama
OpenCDR MCP

OpenCDR MCP

Official
by dbnz-io

opencdr_signals_search

Read-onlyIdempotent

Search read-only detection signals by exactly one selector—severity, event ID, category, or integration ID—with date filtering for severity and paginated results.

Instructions

Search detection signals. Read-only.

Provide exactly ONE selector: severity, event_id, category, or integration_id (the backend serves each from a dedicated index and cannot AND-combine them). date_from/date_to (YYYY-MM-DD, UTC, inclusive, max 31-day range) apply ONLY to the severity selector and default to the last 7 days; they are ignored for event_id/category. Paginated via next_token.

Correlating by source_ip / principal / resource / account / region is not yet supported by the backend -- use event_id to pivot on a specific event.

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_signals_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
orderNodesc
date_toNo
agent_idNo
categoryNo
event_idNo
severityNo
date_fromNo
next_tokenNo
integration_idNo

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.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), yet the description adds substantial backend behavior: each selector is served from a dedicated index, selectors cannot be combined, date filters apply only to the severity selector with a 31-day cap and a 7-day default, and results paginate via next_token. These are exactly the constraints an agent would otherwise discover only by failing calls.

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-loaded with purpose, then broken into selector rules, date rules, pagination, and mode handling — each block earns its place. The opening 'Read-only.' is slightly redundant against the annotations, and some line-broken phrasing could be tightened, but there is no 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 10-parameter, zero-required tool with no output schema and no schema descriptions, the description supplies nearly everything needed to invoke it correctly, including the failure modes to avoid. The remaining gaps are the semantics of limit/order and any hint about the shape of returned signal records.

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 full burden and does well: it defines the mutual exclusivity of severity/event_id/category/integration_id, the YYYY-MM-DD UTC inclusive format and range limits for date_from/date_to, the pagination role of next_token, and the fleet/core meaning of agent_id. Only limit and order remain undocumented in both schema and description.

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?

States a specific verb and resource ("Search detection signals") and immediately scopes it as read-only. It does not name sibling tools such as opencdr_logs_search or opencdr_signals_stats, so differentiation from those must be inferred from the 'detection signals' resource, but the tool's own scope is unambiguous.

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?

Gives an explicit operating rule ("Provide exactly ONE selector") with the four valid choices, explains why (the backend cannot AND-combine), and names the fallback path ("use event_id to pivot on a specific event") for unsupported correlation fields. It also disambiguates deployment modes (fleet = supply agent_id; core = leave unset).

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