Skip to main content
Glama

Create notification rule

stack_create_notification_rule

Create a notification rule: the event types and minimum severity that trigger a notification, and the delivery methods that receive it. One rule can target several delivery methods. Calls from MCP and API-key sessions require human approval. When human approval is required and the chat client supports MCP elicitation, the person is asked to confirm the exact change in the client; the change is applied only after they approve, and a rejection changes nothing. Otherwise it returns GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the page for that one approval, and the same payload sent with governance_approval_id after approval applies the change. An approval is single-use, bound to the exact payload, and expires after 24 hours.

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": {
      "destination_ids": "<destination_ids>",
      "events": "<events>"
    },
    "name": "stack_create_notification_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYesEvent types to subscribe to (e.g. passport.flagged, agent.blocked)
min_severityNoMinimum severity threshold (default: warning)
destination_idsYesDelivery method IDs to notify
governance_approval_idNoApproval id (gvr_*) from a GOVERNANCE_APPROVAL_REQUIRED response, after a human approved it in the dashboard

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false); the description goes far beyond by disclosing the human-approval gate for MCP/API-key sessions, the elicitation path, and the fallback GOVERNANCE_APPROVAL_REQUIRED error carrying approval_id and approval_url. It also states the approval is single-use, payload-bound, and expires in 24 hours, which is exactly the kind of constraint an agent needs before retrying.

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 is front-loaded in the first sentence, followed by the approval mechanics in a logical order. It is dense but nearly every clause carries operational information; minor redundancy appears in "the change is applied only after they approve, and a rejection changes nothing," which restates the same guarantee twice.

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?

With no output schema, the description carries the return-path burden and does so for the approval case, including the exact error code and fields. It does not describe what a successful creation returns (e.g., the new rule's identifier), which is a small remaining gap for a mutation tool.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: "One rule can target several delivery methods" clarifies that destination_ids is a multi-target list, and the approval narrative explains the retry payload shape using governance_approval_id. That is real semantic value beyond the field-level descriptions.

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+resource ("Create a notification rule") and immediately defines the rule's composition: event types, minimum severity, and delivery methods. An agent can distinguish this from stack_update_notification_rule or stack_list_notification_rules by the verb alone, though no sibling is named explicitly.

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?

Usage context is implied rather than stated: it explains that calls from MCP and API-key sessions require approval, which tells the agent what to expect, but never says when to create a rule versus updating an existing one or listing them first. The approval workflow guidance is strong; the create-vs-alternative guidance is absent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.