Skip to main content
Glama

ezstat-mcp-server

create_alert

Create an alert on a stat: webhook fires when the condition is met (above/below threshold, % change, heartbeat/missing data, sustained). Deliveries retry with backoff and carry a stable idempotency_key so receivers can dedup. The stat is referenced by NAME; it must already exist.

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": {
      "stat": "<stat>",
      "condition_type": "<condition_type>",
      "threshold": "<threshold>",
      "webhook_url": "<webhook_url>"
    },
    "name": "create_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
statYesName of the stat to alert on (as shown by list_stats).
thresholdYesThe boundary value (for heartbeat/missing_data use 0).
webhook_urlYesPublic HTTPS receiver for the alert payload (private/internal targets are refused). Email delivery is coming soon — webhook/Slack only for now.
condition_typeYesabove/below: value crosses threshold. pct_change: % move over window_minutes. heartbeat/missing_data: no data for window_minutes. sustained: above threshold for consecutive evaluations.
window_minutesNoStaleness window for heartbeat/missing_data, lookback for pct_change (minutes).
cooldown_minutesNoMinimum minutes between repeat fires (default 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses retry-with-backoff delivery, a stable idempotency_key for receiver-side dedup, and the precondition that the named stat must pre-exist. It omits permissions/auth requirements and what a partial failure looks like, keeping it short of a 5.

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

Conciseness5/5

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

Three sentences, front-loaded with verb and resource, then delivery behavior, then the precondition. No filler or restatement of the title.

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?

No output schema exists, and the description never says what a successful create returns (an alert id or handle the caller would need for later update/delete). Everything else an agent needs to invoke it correctly — condition types, stat existence rule, webhook constraint by reference — is present.

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 already 100%, so the baseline is 3; the description nonetheless adds constraints not encoded in the schema — the stat is name-referenced and must already exist — plus delivery semantics tied to the webhook. It does not add format guidance for threshold or the window/cooldown interplay, but the added meaning is genuine.

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?

States a specific verb+resource ('Create an alert on a stat') and immediately enumerates the condition semantics (above/below, % change, heartbeat/missing data, sustained), which makes it unmistakable against siblings like list_alerts or delete_alert.

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?

Gives a real prerequisite — the stat is referenced by NAME and 'must already exist' — but never states when to choose this over track_metric or how it relates to the existing-alert tools. Usage is implied rather than directed.

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.