fettle-mcp 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,12 +7,14 @@ Claude Code, Codex, Claude Desktop, Cursor, Windsurf or anything else that speak
7
7
  [Model Context Protocol](https://modelcontextprotocol.io).
8
8
 
9
9
  Ask your assistant to create a monitor, look up why one went down, acknowledge an
10
- incident or pause checks before a deploy — it calls the same public API you would.
10
+ incident, check a deploy or draft a status page post — it calls the same public API
11
+ you would.
11
12
 
12
13
  ```
13
14
  "Add an HTTP monitor for https://api.acme.dev, check it every 5 minutes from Europe."
14
15
  "Which of my monitors had incidents this week?"
15
- "Pause the checkout monitor — we're deploying for the next 20 minutes."
16
+ "Silence alerts on the checkout monitor for the next 20 minutes — we're deploying."
17
+ "We just deployed a1b2c3d — did any of the API monitors get worse?"
16
18
  ```
17
19
 
18
20
  In the [official MCP registry](https://registry.modelcontextprotocol.io) this
@@ -116,7 +118,7 @@ FETTLE_API_KEY = "fettle_your_key_here"
116
118
 
117
119
  ## Tools
118
120
 
119
- 50 tools, grouped by what they work on. Read-scope keys can call the `read` ones; everything marked `write` needs a write-scope key.
121
+ 56 tools, grouped by what they work on. Read-scope keys can call the `read` ones; everything marked `write` needs a write-scope key.
120
122
 
121
123
  Every tool carries the MCP hints `readOnlyHint`, `destructiveHint`, `idempotentHint` and `openWorldHint`, so a client can tell reads from changes without parsing names and ask for confirmation only where it matters. Only the five `delete_*` tools are destructive. `preview_maintenance_window` and `check_target` are marked read-only although they need a write-scope key: they change nothing. `check_now` and `check_target` reach the target host, so they are open-world.
122
124
 
@@ -127,13 +129,13 @@ Every tool whose result is a JSON object declares an `outputSchema` and returns
127
129
  | Tool | Scope | What it does |
128
130
  | -------------------------- | ----- | --------------------------------------------------------------------------------------------- |
129
131
  | `list_monitors` | read | List monitors compactly; filter by type, status, tags; sort by status, SSL expiry, latency. |
130
- | `get_monitor` | read | Read one monitor's full configuration and current status by id. |
132
+ | `get_monitor` | read | Read one monitor's configuration and status by id, with certificate and domain expiry. |
131
133
  | `check_target` | write | Probe a target once from one region before creating a monitor for it. |
132
- | `create_monitor` | write | Create a monitor that checks a URL, host or port on a schedule. |
134
+ | `create_monitor` | write | Create a monitor that checks a URL, host or port on a schedule; opt in to domain expiry. |
133
135
  | `bulk_create_monitors` | write | Create up to 100 monitors in one call — all of them or none. |
134
136
  | `update_monitor` | write | Change an existing monitor's settings. |
135
137
  | `bulk_update_monitors` | write | Set the same interval, regions, channels or thresholds on up to 100 monitors, all or nothing. |
136
- | `pause_monitor` | write | Stop checking a monitor without deleting it — use before planned downtime. |
138
+ | `pause_monitor` | write | Stop checking a monitor without deleting it. For a deploy, use a maintenance window. |
137
139
  | `bulk_pause_monitors` | write | Pause up to 100 monitors in one call, all or nothing. |
138
140
  | `resume_monitor` | write | Resume checks on a paused monitor. |
139
141
  | `bulk_resume_monitors` | write | Resume up to 100 paused monitors in one call, all or nothing. |
@@ -152,11 +154,21 @@ Every tool whose result is a JSON object declares an `outputSchema` and returns
152
154
 
153
155
  ### Incidents
154
156
 
155
- | Tool | Scope | What it does |
156
- | ---------------------- | ----- | ------------------------------------------------------------------------ |
157
- | `list_incidents` | read | List incidents, optionally filtered by monitor, status, cause or period. |
158
- | `get_incident` | read | Read one incident with its cause and every alert attempt. |
159
- | `acknowledge_incident` | write | Acknowledge an open incident so repeat notifications stop. |
157
+ | Tool | Scope | What it does |
158
+ | ------------------------ | ----- | ---------------------------------------------------------------------------------------------- |
159
+ | `list_incidents` | read | List incidents by monitor, status, cause or period; newest first or open unacknowledged first. |
160
+ | `get_incident` | read | Read one incident with its cause, every alert attempt and how it was acknowledged. |
161
+ | `get_incident_diagnosis` | read | What changed around a monitor incident, with a repro command and the next calls to make. |
162
+ | `get_incident_context` | read | Per-region checks, a timeline, downtime periods and who acknowledged an incident, by name. |
163
+ | `acknowledge_incident` | write | Acknowledge an open incident so repeat notifications stop. |
164
+
165
+ ### Deploys and changes
166
+
167
+ | Tool | Scope | What it does |
168
+ | --------------- | ----- | ------------------------------------------------------------------------------------------ |
169
+ | `record_deploy` | write | Record a deploy so verify_deploy shows it and a later incident can name it as the suspect. |
170
+ | `verify_deploy` | read | Compare monitors before and after a deploy, per region, without running a check. |
171
+ | `list_changes` | read | Confirmed DNS answer and certificate changes; empty until the change feed is on. |
160
172
 
161
173
  ### Heartbeats
162
174
 
@@ -196,9 +208,10 @@ Every tool whose result is a JSON object declares an `outputSchema` and returns
196
208
 
197
209
  | Tool | Scope | What it does |
198
210
  | ----------------------------- | ----- | --------------------------------------------------------------------------------------------- |
199
- | `list_status_pages` | read | List status pages, with each page's slug and whether it is published. |
211
+ | `list_status_pages` | read | List status pages, with each page's slug, whether it is published and Telegram publishing. |
200
212
  | `get_status_page` | read | Read one status page with its groups and components. |
201
213
  | `list_status_page_incidents` | read | List a status page's incidents, posted by a person or opened by Fettle, with their timelines. |
214
+ | `draft_status_page_post` | read | Draft the next incident post from the outages behind it; posts nothing. |
202
215
  | `create_status_page_incident` | write | Open an incident on a status page with a first message. |
203
216
  | `post_status_page_update` | write | Add a message to a status page incident and set its status; RESOLVED closes it. |
204
217
  | `update_status_page_incident` | write | Rename a status page incident; subscribers are not notified. |
@@ -227,51 +240,51 @@ humans and for clients that do not surface server instructions.
227
240
  <!-- prettier-ignore-start -->
228
241
  <!-- agent-guide:start -->
229
242
  ```text
230
- Fettle is an uptime monitoring service. The tools see only the caller's organization: monitors, heartbeats, maintenance windows, incidents, status page incidents, tags, channels (read), regions. Channels, status pages, members, API keys and billing are managed only in the dashboard (https://dashboard.fettle.sh). Read a tool's description (arguments, limits, errors) before its first call.
243
+ Fettle is an uptime monitoring service. The tools see only the caller's organization. Channels, status pages, members, API keys and billing live only in the dashboard (https://dashboard.fettle.sh). Read a tool's description before its first call.
231
244
 
232
245
  FINDING THINGS
233
- - list_monitors: one short row per monitor, to find ids. Filters are JSON arrays. Broken now: status ["DOWN", "DEGRADED"]. Certificates expiring first: type ["SSL"], sort "ssl_expiry".
234
- - tag filters lists; tag_match "all" (default) needs every tag, "any" one of them.
235
- - Pages: page from 1, size 1..100 (default 25).
246
+ list_monitors gives one short row per monitor, to find ids. Broken now: status ["DOWN", "DEGRADED"]. Certificates expiring first: type ["SSL"], sort "ssl_expiry".
236
247
 
237
248
  PLAN LIMITS
238
- Call get_plan_usage before creating anything: limits (null means none) and usage. A broken limit or an unknown region is a 403 naming it: change the request or tell the user; never retry it unchanged.
249
+ Call get_plan_usage before creating anything (null means no limit). A 403 names a broken limit or unknown region: change the request or tell the user; never retry it unchanged.
239
250
 
240
251
  CREATING MONITORS
241
252
  - check_target probes a target once before create_monitor.
242
253
  - regions: unless the user names some, use every limits.allowed_regions code, up to max_regions; SSL, DNS and port-list TCP take one.
243
- - After create, tell the user the interval and regions chosen; offer to change the interval (update_monitor).
244
- - bulk_create_monitors creates up to 100, all or nothing.
245
254
  - type and target never change after create.
246
- - channel_ids: ids from list_channels. Empty or omitted on create alerts every verified, active channel. Email is not a channel: every alert also emails the creator of the monitor or heartbeat.
247
- - update tools change only the fields you pass; omit one to keep it, never send null. A monitor's config is replaced whole: resend every config field to keep.
255
+ - After create, tell the user the interval and regions chosen; offer to change the interval (update_monitor).
256
+ - channel_ids come from list_channels; omitted on create alerts every verified, active channel. Every alert also emails the creator.
257
+ - update tools change only the fields you pass; never send null. A monitor's config is replaced whole: resend every field to keep.
248
258
  - Exposed ports on a server: follow get_exposed_ports_preset.
249
259
 
250
260
  MANY MONITORS AT ONCE
251
- Find ids with list_monitors, then bulk_pause_monitors, bulk_resume_monitors or bulk_update_monitors (interval, timeout, regions, channels, threshold, cooldown) for up to 100 ids, all or nothing. There is no bulk delete.
261
+ Create many with bulk_create_monitors. Find ids with list_monitors, then bulk_pause_monitors, bulk_resume_monitors or bulk_update_monitors, all or nothing. There is no bulk delete.
252
262
 
253
263
  TAGS
254
- Call list_tags first and reuse names. Tags are flat labels such as env:prod, trimmed, lowercased and deduplicated; at most 10 per item. rename_tag and delete_tag act on every monitor and heartbeat. bulk_update_monitor_tags and bulk_update_heartbeat_tags add/remove tags on up to 300 items.
264
+ Call list_tags first and reuse names, such as env:prod.
255
265
 
256
266
  HEARTBEATS
257
- A job calls ping_url when it succeeds. Job every N seconds, alert after T seconds of silence: period_seconds = N, grace_seconds = T - N. Never late before its first success ping. ping_url + "/start" restarts the clock, ping_url + "/fail" marks it DOWN at once.
267
+ A job calls ping_url when it succeeds. Job every N seconds, alert after T seconds of silence: period_seconds = N, grace_seconds = T - N.
258
268
 
259
269
  MAINTENANCE
260
- Before a deploy or reboot, create_maintenance_window (scope ORG or MONITOR) instead of pausing monitors: checks keep running, but no incident opens and no alert goes out. Not for heartbeats. preview_maintenance_window previews a schedule; list_active_maintenance shows what is silenced now.
270
+ Before a deploy or reboot, create_maintenance_window instead of pausing monitors: checks keep running, no incident opens, no alert goes out. Not for heartbeats.
271
+
272
+ DEPLOYS
273
+ After a deploy, offer verify_deploy; run it only if the user agrees, never on your own. If yes: record_deploy, check_now the monitors, wait a minute, verify_deploy with since = deployed_at. Reuse the same deployed_at on every retry. On INSUFFICIENT_DATA wait retry_after_seconds, check_now monitors with needs_fresh_checks, call again; stop when it is null. REGRESSED and FAIL are not monitor statuses. Never roll back without asking.
261
274
 
262
275
  OUTAGES
263
- list_monitors status ["DOWN"] -> list_check_results (status code, error, region per check) -> get_incident. acknowledge_incident stops repeat alerts; the recovery alert still goes out. create_status_page_incident and post_status_page_update can email the page's subscribers: confirm the text with the user first.
276
+ list_monitors status ["DOWN"] -> list_incidents (monitor_id, status "open") -> get_incident_diagnosis (READY: follow agent.next_calls; else list_check_results) -> get_incident_context (regions, timeline, who acknowledged) -> get_incident. Pasted Fettle alert or dashboard /incidents/<uuid> link: call get_incident_diagnosis on it. acknowledge_incident stops repeat alerts. create_status_page_incident and post_status_page_update can email subscribers: confirm the text with the user first. draft_status_page_post writes the text for those two; it never publishes.
264
277
 
265
- ERRORS (start of a failed call's text)
278
+ ERRORS (in a failed call's text)
266
279
  - "Authentication failed": the credential is missing, revoked or expired, the address is not allowed, or its user lost access. Do not retry; tell the user.
267
280
  - "This tool requires an API key with write scope" or "needs write access": read-only; tell the user.
268
- - "Invalid argument(s)": names each failing field. "Invalid request:": the rule broken. Fix, retry.
281
+ - "Invalid argument(s)" or "Invalid request:": fix what it names, retry.
269
282
  - "Forbidden:": a plan limit, an unknown region, or the user's role; the reason says which.
270
283
  - "Not found:": no such id in this organization.
271
- - "Rate limited": wait the seconds given, then retry. All API keys and app connections share the organization's per-minute budget.
272
- - "Tool '<name>' failed: the API returned 5xx": retry once later.
273
- - "Tool '<name>' does not accept argument(s)": drop the ones named.
274
- - "Request failed with status N": read the reason, do not retry unchanged.
284
+ - "Rate limited": wait the seconds given. All API keys and app connections share the organization's per-minute budget.
285
+ - "the API returned 5xx": retry once later.
286
+ - "does not accept argument(s)": drop the ones named.
287
+ - "Request failed with status N": read the reason; do not retry unchanged.
275
288
 
276
289
  ```
277
290
  <!-- agent-guide:end -->
@@ -359,7 +372,8 @@ seconds to wait. Some tools also have their own cap per calling address:
359
372
  `check_now` 10 calls per minute, `bulk_update_monitor_tags` and
360
373
  `bulk_update_heartbeat_tags` 10 per minute between them,
361
374
  `create_status_page_incident` and `post_status_page_update` 10 per minute
362
- between them, and `check_target` its own limit. `get_plan_usage` shows the organization's request budget as
375
+ between them, `record_deploy` and `verify_deploy` 10 per minute each, and
376
+ `check_target` its own limit. `get_plan_usage` shows the organization's request budget as
363
377
  `limits.api_rate_limit_per_minute`. Plan limits are listed at
364
378
  https://fettle.sh/pricing.
365
379