fleet_health
Inspect one bounded page of fleet health, utilization and workload services. Keep partial results and resource-specific gaps when a source fails; continue with next_page.
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 page in each inventory family; continue with the same size.
type "integer"·minimum 0·default 0 page_size- Maximum resources per family, 1..100. A full page may have a continuation.
type "integer"·minimum 1·maximum 100·default 30
Show input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"page": {
"default": 0,
"description": "Zero-based page in each inventory family; continue with the same size.",
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"page_size": {
"default": 30,
"description": "Maximum resources per family, 1..100. A full page may have a continuation.",
"format": "uint64",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"type": "object"
}Output
The registered output schema covers structured results and tool errors.
FleetHealthdeployments,gaps,has_more,next_page,page,page_size,servers,stacksAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/FleetHealth"
},
{
"$ref": "#/$defs/AppError"
}
],
"$defs": {
"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"
},
"FleetHealth": {
"additionalProperties": false,
"properties": {
"deployments": {
"items": {
"$ref": "#/$defs/WorkloadHealth"
},
"type": "array"
},
"gaps": {
"description": "Failed inventory families are recorded here; successful families survive.",
"items": {
"$ref": "#/$defs/HealthGap"
},
"type": "array"
},
"has_more": {
"description": "True if any family filled its page. Continue to establish exhaustion.",
"type": "boolean"
},
"next_page": {
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"page": {
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"page_size": {
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"servers": {
"items": {
"$ref": "#/$defs/ServerHealth"
},
"type": "array"
},
"stacks": {
"items": {
"$ref": "#/$defs/WorkloadHealth"
},
"type": "array"
}
},
"required": [
"servers",
"stacks",
"deployments",
"gaps",
"page",
"page_size",
"has_more",
"next_page"
],
"type": "object"
},
"HealthGap": {
"additionalProperties": false,
"properties": {
"error": {
"$ref": "#/$defs/AppError"
},
"resource_id": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"source",
"resource_id",
"error"
],
"type": "object"
},
"HealthStatus": {
"enum": [
"healthy",
"unhealthy",
"unavailable",
"unknown"
],
"type": "string"
},
"ServerHealth": {
"additionalProperties": false,
"properties": {
"gaps": {
"items": {
"$ref": "#/$defs/HealthGap"
},
"type": "array"
},
"health": {
"$ref": "#/$defs/HealthStatus"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"state": {
"description": "Inventory state, replaced by GetServerState when that read succeeds.\n`health` and `gaps` disclose whether the current check was available.",
"type": "string"
},
"template": {
"type": "boolean"
},
"utilization": {
"anyOf": [
{
"$ref": "#/$defs/Utilization"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"template",
"state",
"health",
"utilization",
"gaps"
],
"type": "object"
},
"ServiceHealth": {
"additionalProperties": false,
"properties": {
"container_name": {
"type": [
"string",
"null"
]
},
"container_status": {
"type": [
"string",
"null"
]
},
"health": {
"$ref": "#/$defs/HealthStatus"
},
"service": {
"type": "string"
},
"state": {
"type": "string"
}
},
"required": [
"service",
"state",
"health",
"container_name",
"container_status"
],
"type": "object"
},
"Utilization": {
"additionalProperties": false,
"properties": {
"cpu_percent": {
"format": "double",
"type": [
"number",
"null"
]
},
"disk_percent": {
"format": "double",
"type": [
"number",
"null"
]
},
"memory_percent": {
"format": "double",
"type": [
"number",
"null"
]
},
"refresh_ts": {
"description": "Core's cache refresh timestamp in milliseconds, not the time of this call.",
"format": "int64",
"type": "integer"
}
},
"required": [
"cpu_percent",
"memory_percent",
"disk_percent",
"refresh_ts"
],
"type": "object"
},
"WorkloadHealth": {
"additionalProperties": false,
"properties": {
"gaps": {
"items": {
"$ref": "#/$defs/HealthGap"
},
"type": "array"
},
"health": {
"$ref": "#/$defs/HealthStatus"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"server_id": {
"description": "A Swarm association takes precedence over a Server association.",
"type": [
"string",
"null"
]
},
"service_count": {
"description": "Expected distinct Stack service names from inventory; None for Deployments.",
"format": "uint",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"services": {
"items": {
"$ref": "#/$defs/ServiceHealth"
},
"type": "array"
},
"services_truncated": {
"type": "boolean"
},
"state": {
"type": "string"
},
"swarm_id": {
"type": [
"string",
"null"
]
},
"template": {
"type": "boolean"
}
},
"required": [
"id",
"name",
"template",
"state",
"health",
"server_id",
"swarm_id",
"service_count",
"services",
"services_truncated",
"gaps"
],
"type": "object"
}
}
}