Skip to main content
Glama
OpenCDR MCP

OpenCDR MCP

Official
by dbnz-io

opencdr_signals_stats

Read-onlyIdempotent

Summarize signal counts by severity for a date range (defaults to last 7 days, max 31 days) to provide a read-only dashboard view; specify agent_id in fleet mode.

Instructions

Signal counts by severity for a date range. Read-only.

A dashboard/summary view, not a substitute for opencdr_signals_search's paginated item listing. Defaults to the last 7 days if neither date is given (YYYY-MM-DD, UTC, inclusive; max range 31 days -- the same date-range bound the severity selector of opencdr_signals_search uses). Returns {date_from, date_to, counts: {: , ...}, total}.

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

Input Schema

NameRequiredDescriptionDefault
date_toNo
agent_idNo
date_fromNo

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
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety behavior is covered structurally. The description still adds real context beyond that: the 7-day default window, UTC inclusive date semantics, the 31-day max range, and the exact return shape (counts keyed by severity plus total). It does not describe error behavior when the range exceeds 31 days, which is the main remaining gap.

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 alternatives, then defaults and return shape — a sensible order with mostly zero-waste sentences. The nested-clause date-range sentence (with a parenthetical cross-reference to the sibling's severity selector) and extra blank lines make it slightly denser than necessary.

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?

No output schema exists, and the description supplies the return shape anyway ({date_from, date_to, counts, total}). With three optional parameters fully explained and the read-only/aggregate nature established by annotations, nothing an agent needs to call this correctly is missing.

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 must carry parameter meaning and largely does: date_from/date_to are YYYY-MM-DD, UTC, inclusive, default to the last 7 days, capped at 31 days. agent_id gets mode-conditional semantics (fleet vs core). Minor gap: agent_id's format/valid values are not described.

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 opens with a specific verb+resource+grouping: "Signal counts by severity for a date range." It then explicitly differentiates itself from opencdr_signals_search by stating it is "A dashboard/summary view, not a substitute for ... paginated item listing," so an agent can pick the right tool without opening either schema.

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?

It gives both sides of the routing decision: use this for aggregate/dashboard views, use opencdr_signals_search for paginated item listings. It also supplies deployment-mode guidance ("In fleet mode, supply agent_id explicitly. Core mode leaves agent_id unset"), which is exactly the conditional usage context an agent needs.

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