Skip to main content
Glama

Send Structured Ops Alert (Slack)

send_ops_alert

Dispatches structured Slack operational alerts with severity badges, KPI fields, runbook links, and retry handling to notify teams about incidents and pipeline issues.

Instructions

Dispatches structured Slack Block Kit operational alerts with severity badges, KPI fields, runbook links, and exponential-backoff retry.

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": {
      "title": "<title>",
      "message": "<message>"
    },
    "name": "send_ops_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesShort alert headline.
dryRunNoWhen true, returns the formatted Slack Block Kit payload without sending.
messageYesDetailed diagnostic or operational summary.
metricsNoOptional compact key-value metrics displayed as structured Slack fields.
serviceNoOriginating service, workflow, or pipeline name.mcp-ops-toolkit
severityNoOperational severity level mapped to Slack Block Kit visual cues.info
actionUrlNoOptional runbook, dashboard, or workflow execution URL.
dedupeKeyNoOptional deduplication/correlation key shown in the alert footer.
environmentNoTarget runtime environment.production
webhookEnvVarNoEnvironment variable storing the Slack Incoming Webhook URL.SLACK_WEBHOOK_URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true, destructiveHint=false, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing exponential-backoff retry behavior, but it omits what a failed dispatch looks like, that a Slack webhook environment variable must exist, and that dedupeKey relates to the declared non-idempotency.

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?

A single sentence, front-loaded with the verb and resource, with no filler or redundancy. It is dense but each clause carries a distinct fact, so nothing is wasted.

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?

With 10 parameters, a nested metrics object, and no output schema, the description should say what a call returns (a send confirmation, a dryRun payload, or an error) and how the webhook is resolved. Those gaps matter for an open-world mutation tool, and the retry disclosure alone does not close them.

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 100%, so every parameter is already documented in the schema, which sets the baseline at 3. The description loosely maps features to parameters (severity badges → severity, KPI fields → metrics, runbook links → actionUrl) but adds no format, constraint, or interaction detail beyond the schema.

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 gives a specific verb ('Dispatches') and a specific resource ('structured Slack Block Kit operational alerts'), then enumerates the content it carries (severity badges, KPI fields, runbook links). It is unambiguous against the listed siblings (a sheet-row appender and an API-metrics fetcher), though it never explicitly states the differentiation.

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 is only implied by the word 'operational alerts' – an agent can infer this is for notifying humans in Slack about ops events, but there is no statement of when to prefer it over another channel, no prerequisites (webhook must be configured), and no when-not-to-use conditions.

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