Skip to main content
Glama

sa__CreateAlertRule

Creates a Security Analysis alert rule that schedules queries against a pipeline and fires triggers when conditions match, enabling automated detection and notification of security events.

Instructions

[SA] Create alert rule

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pipe_id": "<pipe_id>",
      "project_id": "<project_id>",
      "query": "<query>",
      "rule_name": "<rule_name>",
      "schedule": "<schedule>",
      "triggers": "<triggers>",
      "workspace_id": "<workspace_id>"
    },
    "name": "sa__CreateAlertRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesquery
statusNostatus. ENABLED, DISABLEDENABLED
pipe_idYespipe_id
scheduleYes
severityNoseverity. TIPS, LOW, MEDIUM, HIGH, FATALTIPS
triggersYestriggers
rule_nameYesrule_name
alert_typeNoalert_type
project_idYesproject_id
query_typeNoquery_type. SQL, CBSL.SQL
simulationNosimulation
descriptionNodescription
suspressionNosuspression
workspace_idYesworkspace_id
event_groupingNoevent_grouping
accumulated_timesNoaccumulated_times
custom_propertiesNocustom_properties

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.1/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden for a complex mutating tool, and it provides none. It says nothing about side effects, whether the rule is immediately active, what the schema's simulation/suspression/event_grouping flags do, or what happens on failure. A single noun phrase is far below what a 17-parameter write operation requires.

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

Conciseness2/5

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

The definition is five words long, so it is certainly concise, but the issue is under-specification rather than efficiency. An unhelpful vendor prefix consumes part of the already-minimal text, and no useful information is front-loaded because none exists.

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

Completeness1/5

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

Given 17 parameters, 7 required fields, nested schedule and triggers objects, three enums, no output schema, and no annotations, this description is nowhere near sufficient. An agent gets no help deciding how to populate required scheduling and trigger structures or what the result of a successful create looks like.

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 description coverage is 94%, so the input schema already documents nearly every parameter, and the baseline of 3 applies. The description itself adds no meaning for any parameter — notably it does not clarify the important simulation default or the triggers/accumulated_times interaction — but it is not penalized heavily because the schema does the work.

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

Purpose3/5

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

The description gives a bare verb+resource pair, "Create alert rule", which tells an agent it makes a new rule rather than showing/updating one. However, it never distinguishes this from the sibling sa__CreateAlertRuleSimulation, and the "[SA]" tag is opaque. It is minimally identifiable but does not meaningfully separate it from its closest sibling.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus a simulation, versus Enable/Disable, or versus UpdateAlertRule, and no prerequisites (permissions, workspace scope) are mentioned. The agent must infer everything from the tool name alone.

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

Deploy Server

Other Tools