list_alerts
Read one fixed Core page of at most 100 recent alerts, optionally filtered by resource kind and stable ID. Follow next_page with the same target.
Availability
Available under the default capability policy
The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.
Effect annotations
readOnlyHint—truedestructiveHint—falseidempotentHint—true
Inputs
The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.
page- Zero-based Core page. Pass next_page unchanged with the same target.
type "integer"·minimum 0·maximum 4294967294·default 0 target- Omit to inspect all visible resources; no arbitrary Mongo queries are accepted.
default null
Show input JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"page": {
"default": 0,
"description": "Zero-based Core page. Pass next_page unchanged with the same target.",
"format": "uint32",
"maximum": 4294967294,
"minimum": 0,
"type": "integer"
},
"target": {
"anyOf": [
{
"$ref": "#/$defs/HistoryTarget"
},
{
"type": "null"
}
],
"default": null,
"description": "Omit to inspect all visible resources; no arbitrary Mongo queries are accepted."
}
},
"$defs": {
"HistoryTarget": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Stable resource ID; System uses its literal system identifier.",
"type": "string"
},
"kind": {
"$ref": "#/$defs/ResourceKind"
}
},
"required": [
"kind",
"id"
],
"type": "object"
},
"ResourceKind": {
"enum": [
"system",
"swarm",
"server",
"stack",
"deployment",
"build",
"repo",
"procedure",
"action",
"builder",
"alerter",
"resource_sync"
],
"type": "string"
}
}
}Output
The registered output schema covers structured results and tool errors.
HistoryPageitems,next_page,page,page_sizeAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/HistoryPage"
},
{
"$ref": "#/$defs/AppError"
}
],
"$defs": {
"AlertSummary": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"level": {
"type": "string"
},
"resolved": {
"type": "boolean"
},
"resolved_ts": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"target": {
"$ref": "#/$defs/HistoryTarget"
},
"ts": {
"description": "Unix milliseconds.",
"format": "int64",
"type": "integer"
},
"variant": {
"description": "Alert variant only; raw variant payloads, messages and error chains are omitted.",
"type": "string"
}
},
"required": [
"id",
"ts",
"resolved",
"resolved_ts",
"level",
"target",
"variant"
],
"type": "object"
},
"AppError": {
"additionalProperties": false,
"description": "Only application-owned messages and selected, nonsensitive metadata survive.",
"properties": {
"candidates": {
"items": {
"$ref": "#/$defs/Candidate"
},
"type": [
"array",
"null"
]
},
"correction": {
"type": [
"string",
"null"
]
},
"field": {
"type": [
"string",
"null"
]
},
"kind": {
"$ref": "#/$defs/ErrorKind"
},
"message": {
"type": "string"
},
"operation": {
"type": "string"
},
"status": {
"format": "uint16",
"maximum": 65535,
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"kind",
"message",
"operation"
],
"type": "object"
},
"Candidate": {
"additionalProperties": false,
"description": "A bounded ambiguity hint, never a raw upstream resource.",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"ErrorKind": {
"description": "Stable public categories. No variant contains a raw upstream error.",
"enum": [
"invalid_arguments",
"not_found",
"ambiguous_target",
"incomplete_resolution",
"configuration",
"authentication",
"permission_denied",
"timeout",
"unreachable",
"upstream",
"invalid_response",
"response_too_large",
"capability_disabled",
"unsupported_target",
"stale_preview",
"invalid_preview"
],
"type": "string"
},
"HistoryPage": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"$ref": "#/$defs/AlertSummary"
},
"type": "array"
},
"next_page": {
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"page": {
"format": "uint32",
"minimum": 0,
"type": "integer"
},
"page_size": {
"description": "Core's fixed maximum records per page.",
"format": "uint",
"minimum": 0,
"type": "integer"
}
},
"required": [
"items",
"page",
"page_size",
"next_page"
],
"type": "object"
},
"HistoryTarget": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Stable resource ID; System uses its literal system identifier.",
"type": "string"
},
"kind": {
"$ref": "#/$defs/ResourceKind"
}
},
"required": [
"kind",
"id"
],
"type": "object"
},
"ResourceKind": {
"enum": [
"system",
"swarm",
"server",
"stack",
"deployment",
"build",
"repo",
"procedure",
"action",
"builder",
"alerter",
"resource_sync"
],
"type": "string"
}
}
}