Skip to main content
Glama

Diagnose an incident

get_incident_diagnosis
Read-onlyIdempotent

Read what changed around a monitor incident from existing checks to diagnose DOWN alerts, returning incident state, reason, summary, per-region findings, repro command, and next calls.

Instructions

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 (), 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 (), 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. repro.notes is plain text for people; repro.agent_notes holds the tool-specific counterparts (get_monitor, check_target), so read both. 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); a READY OPEN answer's BLAST_RADIUS finding and summary may be added or widened once, up to about twenty minutes after confirmation, and diagnosis.refined_at is set then; 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.

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": {
      "incident_id": "<incident_id>"
    },
    "name": "get_incident_diagnosis"
  }
}

Input Schema

NameRequiredDescriptionDefault
phaseNoOPEN (default): what changed when it failed. RECOVERY: what changed when it came back (how each region recovered, slower responses, a new DNS answer or certificate, a deploy during the outage); PENDING for a few minutes after the resolve. Anything else is a 422.
incident_idYesThe incident's uuid from list_incidents. An id that is not an incident of this organization is a 404.

Output Schema

NameRequiredDescriptionDefault
agentNo
stateYesKnown values: READY, PENDING, UNAVAILABLE.
reasonNo
summaryNo
diagnosisNo
incident_idYes
finding_textsNo
refinement_pendingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.9.4
    • changedOutput schema / properties / diagnosis / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "context": {
      -        "properties": {
      -          "blast_radius_monitor_ids": {
      -            "items": {
      -              "format": "uuid",
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "repeat_incident_ids": {
      -            "items": {
      -              "format": "uuid",
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "route_hint": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "suspect_deploy": {
      -            "anyOf": [
      -              {
      -                "properties": {
      -                  "compare_url": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "deployed_at": {
      -                    "type": "string"
      -                  },
      -                  "marker_id": {
      -                    "format": "uuid",
      -                    "type": "string"
      -                  },
      -                  "ref": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "marker_id",
      -                  "deployed_at"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "detail_level": {
      -        "type": "string"
      -      },
      -      "engine_version": {
      -        "type": "string"
      -      },
      -      "findings": {
      -        "items": {
      -          "properties": {
      -            "facts": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "kind": {
      -              "type": "string"
      -            },
      -            "rank": {
      -              "type": "integer"
      -            },
      -            "regions": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "kind",
      -            "rank"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "interval_seconds": {
      -        "type": "integer"
      -      },
      -      "layer": {
      -        "type": "string"
      -      },
      -      "layer_basis": {
      -        "type": "string"
      -      },
      -      "monitor_type": {
      -        "type": "string"
      -      },
      -      "phase": {
      -        "type": "string"
      -      },
      -      "platform": {
      -        "anyOf": [
      -          {
      -            "properties": {
      -              "cache_first_red": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "cache_last_green": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "edge_location": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "error_code": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "error_code_known": {
      -                "type": "boolean"
      -              },
      -              "name": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "name"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "refined_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "regions": {
      -        "items": {
      -          "properties": {
      -            "baseline": {
      -              "anyOf": [
      -                {
      -                  "properties": {
      -                    "failure_rate": {
      -                      "anyOf": [
      -                        {
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "p50_ms": {
      -                      "anyOf": [
      -                        {
      -                          "type": "integer"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "p95_ms": {
      -                      "anyOf": [
      -                        {
      -                          "type": "integer"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "first_red": {
      -              "anyOf": [
      -                {
      -                  "properties": {
      -                    "cause": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "checked_at": {
      -                      "type": "string"
      -                    },
      -                    "error": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "response_time_ms": {
      -                      "anyOf": [
      -                        {
      -                          "type": "integer"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "status": {
      -                      "type": "string"
      -                    },
      -                    "status_code": {
      -                      "anyOf": [
      -                        {
      -                          "type": "integer"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "checked_at",
      -                    "status"
      -                  ],
      -                  "type": "object"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "last_green": {
      -              "anyOf": [
      -                {
      -                  "properties": {
      -                    "checked_at": {
      -                      "type": "string"
      -                    },
      -                    "response_time_ms": {
      -                      "anyOf": [
      -                        {
      -                          "type": "integer"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "status": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "status_code": {
      -                      "anyOf": [
      -                        {
      -                          "type": "integer"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "checked_at"
      -                  ],
      -                  "type": "object"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "onset_at": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "region": {
      -              "type": "string"
      -            },
      -            "state": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "region",
      -            "state"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "schema_version": {
      -        "type": "integer"
      -      },
      -      "window": {
      -        "properties": {
      -          "baseline_checks": {
      -            "type": "integer"
      -          },
      -          "baseline_from": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "baseline_to": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "confirmed_at": {
      -            "type": "string"
      -          },
      -          "incident_started_at": {
      -            "type": "string"
      -          },
      -          "outage_started_at": {
      -            "type": "string"
      -          },
      -          "precursor_from": {
      -            "type": "string"
      -          },
      -          "precursor_to": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "incident_started_at",
      -          "outage_started_at",
      -          "confirmed_at",
      -          "precursor_from"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "schema_version",
      -      "engine_version",
      -      "monitor_type",
      -      "interval_seconds",
      -      "window"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "context": {
      +        "properties": {
      +          "blast_radius_monitor_ids": {
      +            "items": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "repeat_incident_ids": {
      +            "items": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "route_hint": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "suspect_deploy": {
      +            "anyOf": [
      +              {
      +                "properties": {
      +                  "compare_url": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "deployed_at": {
      +                    "type": "string"
      +                  },
      +                  "marker_id": {
      +                    "format": "uuid",
      +                    "type": "string"
      +                  },
      +                  "ref": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "marker_id",
      +                  "deployed_at"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "detail_level": {
      +        "type": "string"
      +      },
      +      "engine_version": {
      +        "type": "string"
      +      },
      +      "findings": {
      +        "items": {
      +          "properties": {
      +            "facts": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "rank": {
      +              "type": "integer"
      +            },
      +            "regions": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "kind",
      +            "rank"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "interval_seconds": {
      +        "type": "integer"
      +      },
      +      "layer": {
      +        "type": "string"
      +      },
      +      "layer_basis": {
      +        "type": "string"
      +      },
      +      "monitor_type": {
      +        "type": "string"
      +      },
      +      "phase": {
      +        "type": "string"
      +      },
      +      "platform": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "cache_first_red": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "cache_last_green": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "edge_location": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "error_code": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "error_code_known": {
      +                "type": "boolean"
      +              },
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "name"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "refined_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "regions": {
      +        "items": {
      +          "properties": {
      +            "baseline": {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "failure_rate": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "p50_ms": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "p95_ms": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "dominant_red": {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "cause": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "checked_at": {
      +                      "type": "string"
      +                    },
      +                    "checks": {
      +                      "type": "integer"
      +                    },
      +                    "error": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "failed_phase": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "of_checks": {
      +                      "type": "integer"
      +                    },
      +                    "response_time_ms": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "status": {
      +                      "type": "string"
      +                    },
      +                    "status_code": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "checked_at",
      +                    "status"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "first_red": {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "cause": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "checked_at": {
      +                      "type": "string"
      +                    },
      +                    "error": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "failed_phase": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "response_time_ms": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "status": {
      +                      "type": "string"
      +                    },
      +                    "status_code": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "checked_at",
      +                    "status"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "last_green": {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "checked_at": {
      +                      "type": "string"
      +                    },
      +                    "response_time_ms": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "status": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "status_code": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "checked_at"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "onset_at": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "region": {
      +              "type": "string"
      +            },
      +            "state": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "region",
      +            "state"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "schema_version": {
      +        "type": "integer"
      +      },
      +      "window": {
      +        "properties": {
      +          "baseline_checks": {
      +            "type": "integer"
      +          },
      +          "baseline_from": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "baseline_to": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "confirmed_at": {
      +            "type": "string"
      +          },
      +          "incident_started_at": {
      +            "type": "string"
      +          },
      +          "outage_started_at": {
      +            "type": "string"
      +          },
      +          "precursor_from": {
      +            "type": "string"
      +          },
      +          "precursor_to": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "incident_started_at",
      +          "outage_started_at",
      +          "confirmed_at",
      +          "precursor_from"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "schema_version",
      +      "engine_version",
      +      "monitor_type",
      +      "interval_seconds",
      +      "window"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changedv1.4.2
    • changedOutput schema / properties / agent / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "layer": {
      -        "type": "string"
      -      },
      -      "layer_basis": {
      -        "type": "string"
      -      },
      -      "next_calls": {
      -        "items": {
      -          "properties": {
      -            "arguments": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "tool": {
      -              "type": "string"
      -            },
      -            "why": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "tool",
      -            "arguments",
      -            "why"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "repro": {
      -        "anyOf": [
      -          {
      -            "properties": {
      -              "check_target": {
      -                "additionalProperties": true,
      -                "type": "object"
      -              },
      -              "command": {
      -                "type": "string"
      -              },
      -              "kind": {
      -                "description": "Known values: CURL, DIG, OPENSSL, NC, PING.",
      -                "type": "string"
      -              },
      -              "notes": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "command",
      -              "check_target"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "window": {
      -        "properties": {
      -          "first_bad_at": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_bad_at": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_good_at": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "onset_at": {
      -            "type": "string"
      -          },
      -          "recovered_at": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "onset_at"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "layer",
      -      "layer_basis",
      -      "window"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "layer": {
      +        "type": "string"
      +      },
      +      "layer_basis": {
      +        "type": "string"
      +      },
      +      "next_calls": {
      +        "items": {
      +          "properties": {
      +            "arguments": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "tool": {
      +              "type": "string"
      +            },
      +            "why": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "tool",
      +            "arguments",
      +            "why"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "repro": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "agent_notes": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "check_target": {
      +                "additionalProperties": true,
      +                "type": "object"
      +              },
      +              "command": {
      +                "type": "string"
      +              },
      +              "kind": {
      +                "description": "Known values: CURL, DIG, OPENSSL, NC, PING.",
      +                "type": "string"
      +              },
      +              "notes": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "command",
      +              "check_target"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "window": {
      +        "properties": {
      +          "first_bad_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "last_bad_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "last_good_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "onset_at": {
      +            "type": "string"
      +          },
      +          "recovered_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "onset_at"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "layer",
      +      "layer_basis",
      +      "window"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changedv1.4.0
    • addedOutput schema / properties / finding_texts
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "group": {
      +        "description": "Known values: changed, before, around, recovery.",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "rank": {
      +        "type": "integer"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "rank",
      +      "kind",
      +      "group",
      +      "label",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  4. Addedv1.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the readOnly/idempotent annotations by disclosing the full state machine: READY/PENDING/UNAVAILABLE with NOT_APPLICABLE, NOT_COMPUTED, NOT_RESOLVED reasons, refinement_pending timing (~12 minutes after resolve, poll again), BLAST_RADIUS widening up to ~20 minutes with refined_at. It also discloses redaction behavior of the repro command (headers, body, userinfo, token-like path segments, secret-named query params, fragment dropped) and the write-scope requirement for check_target/check_now, plus null cases for deleted monitors and portless TCP monitors.

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

Conciseness3/5

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

The purpose and routing are correctly front-loaded, but the body is roughly 450 words delivered as a single paragraph of semicolon-chained clauses with no headings or bullets for the state machine. Most sentences do carry operational information, yet the density makes key facts (flat-output contract, polling cadence, redaction) easy to miss on a single read.

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?

An output schema exists, yet the description spends substantial length enumerating return fields (incident_id, state, reason, summary, diagnosis, agent, finding_texts) that the schema already documents, which is redundant rather than missing. Everything an agent needs for correct invocation and interpretation is otherwise covered, including deploy-finding semantics and the caution that observations are not proven causes.

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; the description still adds value by telling the agent where incident_id comes from (list_incidents filtered by monitor_id and status 'open') and by restating phase semantics such as PENDING landing a few minutes after the resolve. The phase paragraph largely duplicates the enum description already in the schema, so the addition is modest rather than decisive.

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?

Opens with a specific verb+resource+scope: 'Read what changed around a monitor incident, computed from the checks Fettle already holds.' It then explicitly separates itself from siblings: 'Start here ... before get_incident or list_check_results' and 'For raw checks use list_check_results, for the incident row and alerts get_incident.' An agent can pick this tool without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete entry conditions (a DOWN monitor's open incident id from list_incidents with monitor_id and status 'open', or a pasted alert) and names the two alternatives it precedes, plus where to go instead for raw checks and for the incident row. When-not guidance is present via the state explanations (PENDING, UNAVAILABLE reasons) and the ignore-unknown-kinds instruction.

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