Skip to main content
Glama

get_threat_patterns

Identify and break down recurring threat patterns across security scans over a chosen period, showing which attack types appear frequently and where to focus defenses.

Instructions

Get a breakdown of threat patterns detected across scans. Useful for understanding what types of attacks are most common.

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

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of days to look back (default 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full disclosure burden. It reveals that results span multiple scans but says nothing about the scope of aggregation (account-wide vs. workspace), required permissions, whether counts are per-pattern or time-bucketed, or how the response is shaped — all material for an unannotated read tool.

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?

Two short sentences, front-loaded with the core purpose, with no filler or marketing language. The second sentence partially restates the first ('breakdown' vs. 'what types of attacks'), costing it a point but it still earns its place as a usage cue.

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

Completeness3/5

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

For a one-parameter, zero-required read tool this covers the essentials, and no output schema means return values need not be spelled out. Still, it omits the aggregation scope and whether results depend on previously completed scans — details an agent would want before calling it.

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?

With a single parameter at 100% schema description coverage, the schema already explains that 'days' is the lookback window with a default of 30. The description adds no additional meaning about how the window affects the breakdown, so the baseline of 3 applies.

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?

The description uses a specific verb ('Get') with a specific resource ('a breakdown of threat patterns detected across scans') and clarifies that the output is aggregate attack-type data. It implicitly contrasts with the scan_* siblings by being an analytics/rollup rather than a scanner, but never names an alternative tool to disambiguate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The sentence 'Useful for understanding what types of attacks are most common' gives a genuine use case, so the intent is implied rather than absent. However, there is no when-not guidance, no mention of prerequisites (e.g., scans must have run first), and no routing to sibling tools like get_scan for per-scan detail.

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