fettle-mcp 1.3.0 → 1.4.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
@@ -149,7 +149,7 @@ Every tool whose result is a JSON object declares an `outputSchema` and returns
149
149
  | ----------------------------- | ----- | ------------------------------------------------------------------------------------------ |
150
150
  | `get_uptime_summary` | read | Uptime, average response time and incident counts over 24h / 7d / 30d at once. |
151
151
  | `get_uptime_daily` | read | A monitor's uptime for each UTC day, oldest first. |
152
- | `get_response_time_by_region` | read | A monitor's average response time over 24h, 7d or 30d, one series per region. |
152
+ | `get_response_time_by_region` | read | Per-region response time over 24h, 7d or 30d with percentiles, plus the current slowdown. |
153
153
  | `list_check_results` | read | Individual check results of a monitor, newest first, filtered by region, status or period. |
154
154
 
155
155
  ### Incidents
@@ -608,7 +608,7 @@
608
608
  "maxLength": 2048,
609
609
  "minLength": 1,
610
610
  "type": "string",
611
- "description": "What to check, up to 2048 characters. HTTP: an http:// or https:// URL (https:// is added when the scheme is missing; port, path and query are kept). PING, SSL, TCP and DNS: a bare public hostname or IP address with no :port and no path (the port goes in config): host:port is a 422, and a full URL is cut down to its host, losing its port. Hostnames are ASCII (punycode for internationalized domains). localhost, *.localhost and addresses that are not public (private, loopback, link-local, CGNAT 100.64.0.0/10, reserved, unspecified) are a 422. Cannot be changed after create."
611
+ "description": "What to check, up to 2048 characters. HTTP: an http:// or https:// URL (https:// is added when the scheme is missing; port, path and query are kept). PING, SSL, TCP and DNS: a bare public hostname or IP address with no :port and no path (the port goes in config): host:port is a 422, and a full URL is cut down to its host, losing its port. Hostnames are ASCII (punycode for internationalized domains). DNS names may also carry underscore labels, as in _dmarc.example.com; other types refuse them. localhost, *.localhost and addresses that are not public (private, loopback, link-local, CGNAT 100.64.0.0/10, reserved, unspecified) are a 422. Cannot be changed after create."
612
612
  },
613
613
  "interval_seconds": {
614
614
  "maximum": 86400,
@@ -6781,7 +6781,7 @@
6781
6781
  {
6782
6782
  "name": "get_response_time_by_region",
6783
6783
  "title": "Get a monitor's response time by region",
6784
- "description": "Chart one monitor's average response time over time, one series per region, to see where it is slow and since when. Returns monitor_id, window, bucket_seconds and regions, each with region, display_name and points (oldest first, the same buckets in every series: bucket_start, avg_response_time_ms, null when the bucket had no successful check, and sample_count). Every configured region has a series, even an empty one, followed by removed regions that still had checks; points start at the window's start or at the monitor's creation. For uptime use get_uptime_summary; for single checks use list_check_results.",
6784
+ "description": "Chart one monitor's average response time over time, one series per region, to see where it is slow and since when. Returns monitor_id, window, bucket_seconds, regions and slowdown. Each region has region, display_name, points (oldest first, the same buckets in every series: bucket_start, avg_response_time_ms, null when the bucket had no successful check, and sample_count) and percentiles over the whole window (p50_response_time_ms, p95_response_time_ms, p99_response_time_ms and sample_count; interpolated from histograms, so usually within about 5% of the exact value and 15% or more on a sparse tail; p95 is null under 20 checks, p99 under 100). Every configured region has a series, even an empty one, followed by removed regions that still had checks; points start at the window's start or at the monitor's creation. slowdown compares each configured region's last window_minutes with its own median of the past week, whatever window you asked for: scope is none, one_region, some_regions or all_regions, and regions lists region, display_name, state (slow, elevated, normal or unknown), recent_p50_response_time_ms and baseline_p50_response_time_ms. slowdown is null when fewer than two regions can be compared. For uptime use get_uptime_summary; for single checks use list_check_results.",
6785
6785
  "scope": "read",
6786
6786
  "input_schema": {
6787
6787
  "type": "object",
@@ -6872,16 +6872,130 @@
6872
6872
  "type": "object"
6873
6873
  },
6874
6874
  "type": "array"
6875
+ },
6876
+ "percentiles": {
6877
+ "properties": {
6878
+ "p50_response_time_ms": {
6879
+ "anyOf": [
6880
+ {
6881
+ "type": "integer"
6882
+ },
6883
+ {
6884
+ "type": "null"
6885
+ }
6886
+ ]
6887
+ },
6888
+ "p95_response_time_ms": {
6889
+ "anyOf": [
6890
+ {
6891
+ "type": "integer"
6892
+ },
6893
+ {
6894
+ "type": "null"
6895
+ }
6896
+ ]
6897
+ },
6898
+ "p99_response_time_ms": {
6899
+ "anyOf": [
6900
+ {
6901
+ "type": "integer"
6902
+ },
6903
+ {
6904
+ "type": "null"
6905
+ }
6906
+ ]
6907
+ },
6908
+ "sample_count": {
6909
+ "type": "integer"
6910
+ }
6911
+ },
6912
+ "required": [
6913
+ "p50_response_time_ms",
6914
+ "p95_response_time_ms",
6915
+ "p99_response_time_ms",
6916
+ "sample_count"
6917
+ ],
6918
+ "type": "object"
6875
6919
  }
6876
6920
  },
6877
6921
  "required": [
6878
6922
  "region",
6879
6923
  "display_name",
6880
- "points"
6924
+ "points",
6925
+ "percentiles"
6881
6926
  ],
6882
6927
  "type": "object"
6883
6928
  },
6884
6929
  "type": "array"
6930
+ },
6931
+ "slowdown": {
6932
+ "anyOf": [
6933
+ {
6934
+ "properties": {
6935
+ "scope": {
6936
+ "type": "string",
6937
+ "description": "Known values: none, one_region, some_regions, all_regions."
6938
+ },
6939
+ "window_minutes": {
6940
+ "type": "integer"
6941
+ },
6942
+ "regions": {
6943
+ "items": {
6944
+ "properties": {
6945
+ "region": {
6946
+ "type": "string"
6947
+ },
6948
+ "display_name": {
6949
+ "type": "string"
6950
+ },
6951
+ "state": {
6952
+ "type": "string",
6953
+ "description": "Known values: slow, elevated, normal, unknown."
6954
+ },
6955
+ "recent_p50_response_time_ms": {
6956
+ "anyOf": [
6957
+ {
6958
+ "type": "integer"
6959
+ },
6960
+ {
6961
+ "type": "null"
6962
+ }
6963
+ ]
6964
+ },
6965
+ "baseline_p50_response_time_ms": {
6966
+ "anyOf": [
6967
+ {
6968
+ "type": "integer"
6969
+ },
6970
+ {
6971
+ "type": "null"
6972
+ }
6973
+ ]
6974
+ }
6975
+ },
6976
+ "required": [
6977
+ "region",
6978
+ "display_name",
6979
+ "state",
6980
+ "recent_p50_response_time_ms",
6981
+ "baseline_p50_response_time_ms"
6982
+ ],
6983
+ "type": "object"
6984
+ },
6985
+ "type": "array"
6986
+ }
6987
+ },
6988
+ "required": [
6989
+ "scope",
6990
+ "window_minutes",
6991
+ "regions"
6992
+ ],
6993
+ "type": "object"
6994
+ },
6995
+ {
6996
+ "type": "null"
6997
+ }
6998
+ ]
6885
6999
  }
6886
7000
  },
6887
7001
  "required": [
@@ -7650,7 +7764,7 @@
7650
7764
  {
7651
7765
  "name": "get_incident_diagnosis",
7652
7766
  "title": "Diagnose an incident",
7653
- "description": "Read what changed around a monitor incident, computed from the checks Fettle already holds. Start here for a DOWN monitor's open incident (its id from list_incidents with monitor_id and status \"open\") or a pasted alert, before get_incident or list_check_results. Returns incident_id, state, reason, summary (one line) and diagnosis (window, per-region baseline and state, layer, platform and findings, each with kind, rank, regions and facts) and agent (layer, window with last_good_at, first_bad_at and onset_at, repro: a shell command that repeats the probe from the current config, plus check_target with the type, target and non-secret config to send to check_target; and next_calls: up to three tool calls with ready arguments, to follow in order). The command hides header values (<redacted>), the body (read from body.txt), the target's userinfo, token-like path segments and the values of query parameters named like key, token, secret, sig, password, pass, auth, credential or session (<redacted>), and drops the fragment; check_target leaves the userinfo and those query values out, so for such a target take the full one from get_monitor. check_target and check_now need the write scope. agent is null when the monitor was deleted; repro is null when no command fits (a TCP monitor without a port). A deploy recorded with record_deploy for this monitor up to 2 h before the onset is the finding DEPLOY_BEFORE_ONSET (minutes_before_onset); on RECOVERY, one between the outage start and the first green check is DEPLOY_DURING_OUTAGE; its ref and compare_url are in diagnosis.context.suspect_deploy and next_calls then offers verify_deploy. A deploy close in time is not proof it caused the failure. These are observations, not proven causes: say what was seen, not why. state READY has summary, diagnosis and agent (see above); PENDING means it is still being computed (ask again in a minute); a READY RECOVERY answer with refinement_pending true has no verdict yet on slower responses (RECOVERED_SLOWER needs the 10 minutes after the first green check and lands about 12 minutes after the resolve; ask again then, and a minute later while refinement_pending is still true); UNAVAILABLE has a reason: NOT_APPLICABLE (a heartbeat has no probes), NOT_COMPUTED (none will come) or NOT_RESOLVED (RECOVERY asked of an open incident). Ignore finding kinds and fields you do not know. HTTP detail depends on diagnosis.detail_level: BASIC has no redirect, final-URL, TLS or header-change findings; the edge-block and PLATFORM_ERROR findings need only the first failed check's details. platform and PLATFORM_ERROR are hints from response headers, not causes. For raw checks use list_check_results, for the incident row and alerts get_incident.",
7767
+ "description": "Read what changed around a monitor incident, computed from the checks Fettle already holds. Start here for a DOWN monitor's open incident (its id from list_incidents with monitor_id and status \"open\") or a pasted alert, before get_incident or list_check_results. Returns incident_id, state, reason, summary (one line) and diagnosis (window, per-region baseline and state, layer, platform and findings, each with kind, rank, regions and facts) and agent (layer, window with last_good_at, first_bad_at and onset_at, repro: a shell command that repeats the probe from the current config, plus check_target with the type, target and non-secret config to send to check_target; and next_calls: up to three tool calls with ready arguments, to follow in order) and finding_texts (each finding in one line of words: rank, kind, group, label and text, literals in backticks; a finding without words has no line). The repro command hides header values (<redacted>), the body (read from body.txt), the target's userinfo, token-like path segments and the values of query parameters named like key, token, secret, sig, password, pass, auth, credential or session (<redacted>), and drops the fragment; check_target leaves the userinfo and those query values out, so for such a target take the full one from get_monitor. check_target and check_now need the write scope. agent is null when the monitor was deleted; repro is null when no command fits (a TCP monitor without a port). A deploy recorded with record_deploy for this monitor up to 2 h before the onset is the finding DEPLOY_BEFORE_ONSET (minutes_before_onset); on RECOVERY, one between the outage start and the first green check is DEPLOY_DURING_OUTAGE; its ref and compare_url are in diagnosis.context.suspect_deploy and next_calls then offers verify_deploy. A deploy close in time is not proof it caused the failure. These are observations, not proven causes: say what was seen, not why. state READY has summary, diagnosis, agent and finding_texts (see above; other states have an empty finding_texts); PENDING means it is still being computed (ask again in a minute); a READY RECOVERY answer with refinement_pending true has no verdict yet on slower responses (RECOVERED_SLOWER needs the 10 minutes after the first green check and lands about 12 minutes after the resolve; ask again then, and a minute later while refinement_pending is still true); UNAVAILABLE has a reason: NOT_APPLICABLE (a heartbeat has no probes), NOT_COMPUTED (none will come) or NOT_RESOLVED (RECOVERY asked of an open incident). Ignore finding kinds and fields you do not know. HTTP detail depends on diagnosis.detail_level: BASIC has no redirect, final-URL, TLS or header-change findings; the edge-block and PLATFORM_ERROR findings need only the first failed check's details. platform and PLATFORM_ERROR are hints from response headers, not causes. For raw checks use list_check_results, for the incident row and alerts get_incident.",
7654
7768
  "scope": "read",
7655
7769
  "input_schema": {
7656
7770
  "type": "object",
@@ -8304,6 +8418,37 @@
8304
8418
  }
8305
8419
  ]
8306
8420
  },
8421
+ "finding_texts": {
8422
+ "items": {
8423
+ "properties": {
8424
+ "rank": {
8425
+ "type": "integer"
8426
+ },
8427
+ "kind": {
8428
+ "type": "string"
8429
+ },
8430
+ "group": {
8431
+ "type": "string",
8432
+ "description": "Known values: changed, before, around, recovery."
8433
+ },
8434
+ "label": {
8435
+ "type": "string"
8436
+ },
8437
+ "text": {
8438
+ "type": "string"
8439
+ }
8440
+ },
8441
+ "required": [
8442
+ "rank",
8443
+ "kind",
8444
+ "group",
8445
+ "label",
8446
+ "text"
8447
+ ],
8448
+ "type": "object"
8449
+ },
8450
+ "type": "array"
8451
+ },
8307
8452
  "refinement_pending": {
8308
8453
  "type": "boolean"
8309
8454
  }
@@ -9613,7 +9758,7 @@
9613
9758
  "maxLength": 2048,
9614
9759
  "minLength": 1,
9615
9760
  "type": "string",
9616
- "description": "What to check, up to 2048 characters. HTTP: an http:// or https:// URL (https:// is added when the scheme is missing; port, path and query are kept). PING, SSL, TCP and DNS: a bare public hostname or IP address with no :port and no path (the port goes in config): host:port is a 422, and a full URL is cut down to its host, losing its port. Hostnames are ASCII (punycode for internationalized domains). localhost, *.localhost and addresses that are not public (private, loopback, link-local, CGNAT 100.64.0.0/10, reserved, unspecified) are a 422."
9761
+ "description": "What to check, up to 2048 characters. HTTP: an http:// or https:// URL (https:// is added when the scheme is missing; port, path and query are kept). PING, SSL, TCP and DNS: a bare public hostname or IP address with no :port and no path (the port goes in config): host:port is a 422, and a full URL is cut down to its host, losing its port. Hostnames are ASCII (punycode for internationalized domains). DNS names may also carry underscore labels, as in _dmarc.example.com; other types refuse them. localhost, *.localhost and addresses that are not public (private, loopback, link-local, CGNAT 100.64.0.0/10, reserved, unspecified) are a 422."
9617
9762
  },
9618
9763
  "config": {
9619
9764
  "additionalProperties": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fettle-mcp",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "mcpName": "sh.fettle/mcp",
5
5
  "description": "Fettle uptime monitoring (https://fettle.sh) for any MCP client — manage monitors, incidents, heartbeats, maintenance windows, status page incidents and deploy checks from Claude, Cursor or Codex.",
6
6
  "keywords": [