Skip to main content
Glama

Read observed cluster status

cluster_status_get
Read-onlyIdempotent

Reads observed cluster status such as phase, conditions, members and versions, and compares observedGeneration with desired generation to track configuration convergence.

Instructions

Read observed cluster status

Returns phase, conditions, observedGeneration, members and available version, backup, placement and maintenance observations without secret credentials. Compare observedGeneration with generation from cluster_get to track convergence of accepted configuration.

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": {
      "cluster": "<cluster>"
    },
    "name": "cluster_status_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterYesManaged cluster name; the RBAC object is namespace/cluster.
namespaceNoNamespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter.

Output Schema

NameRequiredDescriptionDefault
fcvNo
phaseYesRestoring means an in-place recovery operation is executing and normal traffic may be unavailable; Ready is False with reason Restoring. After completion, Ready remains False with reason RestoreFinished until ordinary reconciliation observes database health. Suspended means runtime services are removed; member allocation is historical and agents are not connected.
agentsNo
backupNo
dataMcpNo
membersYes
messageNo
versionNoObserved binary version from runtime members, not the desired spec.version. Absent when no version can be observed; during a mixed-version rollout it reports the oldest observed version.
placementNo
conditionsYes
connectionNo
maintenanceNo
operationIdNo
observedGenerationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cluster / description
      Added value: +"Managed cluster name; the RBAC object is namespace/cluster."
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "AgentRolloutStatus_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "outdated": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "targetBuild": {
      +          "type": "string"
      +        },
      +        "targetVersion": {
      +          "type": "string"
      +        },
      +        "unknown": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "targetBuild",
      +        "targetVersion",
      +        "outdated",
      +        "unknown"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentStatus_depth14": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "build": {
      +          "type": "string"
      +        },
      +        "commit": {
      +          "type": "string"
      +        },
      +        "configVersion": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "connected": {
      +          "type": "boolean"
      +        },
      +        "lastSeenAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "version": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "connected"
      +      ],
      +      "type": "object"
      +    },
      +    "ClusterBackupStatus_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "lastBackup": {
      +          "maxLength": 128,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "pitrWindow": {
      +          "$ref": "#/$defs/PITRWindow_depth14"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "Condition_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "lastTransitionTime": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "True",
      +            "False",
      +            "Unknown"
      +          ],
      +          "type": "string"
      +        },
      +        "type": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "status",
      +        "reason",
      +        "message",
      +        "lastTransitionTime"
      +      ],
      +      "type": "object"
      +    },
      +    "ConnectionSummary_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "endpoints": {
      +          "items": {
      +            "$ref": "#/$defs/Endpoint_depth14"
      +          },
      +          "type": "array"
      +        },
      +        "hosts": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "publicHosts": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "replicaSet": {
      +          "type": "string"
      +        },
      +        "uri": {
      +          "description": "Connection URI without a password.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "hosts",
      +        "uri"
      +      ],
      +      "type": "object"
      +    },
      +    "DataMcpStatus_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "access": {
      +          "enum": [
      +            "read",
      +            "readWrite"
      +          ],
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "companion",
      +            "native"
      +          ],
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "phase": {
      +          "enum": [
      +            "Disabled",
      +            "Provisioning",
      +            "Ready",
      +            "Degraded"
      +          ],
      +          "type": "string"
      +        },
      +        "upstream": {
      +          "type": "string"
      +        },
      +        "upstreamVersion": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "phase"
      +      ],
      +      "type": "object"
      +    },
      +    "Endpoint_depth14": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "public": {
      +          "type": "boolean"
      +        },
      +        "url": {
      +          "description": "Connection URL without a password.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "url",
      +        "public"
      +      ],
      +      "type": "object"
      +    },
      +    "MaintenanceStatus_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "currentWindowEnd": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "nextWindowStart": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "open": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "open"
      +      ],
      +      "type": "object"
      +    },
      +    "Member_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "agent": {
      +          "$ref": "#/$defs/AgentStatus_depth14"
      +        },
      +        "autoscaling": {
      +          "allOf": [
      +            {
      +              "$ref": "#/$defs/Resources_depth14"
      +            }
      +          ],
      +          "description": "Effective runtime vertical autoscaling configuration read from the platform, distinct from desired spec and current allocation. Disk bounds refer to the disposable runtime root disk, not the persistent database volume.",
      +          "readOnly": true
      +        },
      +        "componentVersion": {
      +          "description": "Service-component version, independent of the PostgreSQL data-member version.",
      +          "type": "string"
      +        },
      +        "cpuUsage": {
      +          "type": "number"
      +        },
      +        "diskTotalBytes": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "diskUsageBytes": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "group": {
      +          "description": "Distributed PostgreSQL group; 0 is coordinator, positive groups are workers. Absent for other members.",
      +          "minimum": 0,
      +          "readOnly": true,
      +          "type": "integer"
      +        },
      +        "health": {
      +          "type": "boolean"
      +        },
      +        "lagSeconds": {
      +          "type": "number"
      +        },
      +        "name": {
      +          "maxLength": 128,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "optime": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "placementGroup": {
      +          "type": "string"
      +        },
      +        "publicHost": {
      +          "description": "Member public host:port when public exposure is enabled.",
      +          "readOnly": true,
      +          "type": "string"
      +        },
      +        "ramUsageBytes": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "resources": {
      +          "allOf": [
      +            {
      +              "$ref": "#/$defs/ObservedResources_depth14"
      +            }
      +          ],
      +          "description": "CPU, memory, and root disk the member container currently has. Each value comes from the member agent's live reading of its container (cgroup CPU set and quota, cgroup memory limit, root filesystem size) when the agent is reachable and reports it; otherwise from the service's effective vertical autoscaling (start or minimum CPU, minimum RAM, minimum root disk). Absent when neither is known.",
      +          "readOnly": true
      +        },
      +        "role": {
      +          "description": "Provider data-member or service-component role.",
      +          "enum": [
      +            "primary",
      +            "secondary",
      +            "arbiter",
      +            "config-primary",
      +            "config-secondary",
      +            "router",
      +            "broker",
      +            "unknown",
      +            "master",
      +            "data",
      +            "master,data",
      +            "kibana",
      +            "logstash",
      +            "apm",
      +            "replica",
      +            "standalone",
      +            "proxy",
      +            "gateway",
      +            "auth",
      +            "rest",
      +            "realtime",
      +            "storage",
      +            "imgproxy",
      +            "meta",
      +            "studio",
      +            "functions",
      +            "pooler",
      +            "analytics",
      +            "vector"
      +          ],
      +          "type": "string"
      +        },
      +        "set": {
      +          "type": "string"
      +        },
      +        "state": {
      +          "type": "string"
      +        },
      +        "uptime": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "version": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "set",
      +        "role",
      +        "state",
      +        "health"
      +      ],
      +      "type": "object"
      +    },
      +    "ObservedResources_depth14": {
      +      "additionalProperties": false,
      +      "description": "Current container allocation, distinct from desired autoscaling limits.",
      +      "properties": {
      +        "cpuCores": {
      +          "description": "Usable CPU cores.",
      +          "type": "number"
      +        },
      +        "diskGB": {
      +          "description": "Runtime root disk size in GiB, not the persistent database volume.",
      +          "type": "number"
      +        },
      +        "memoryGB": {
      +          "description": "Memory limit in GiB.",
      +          "type": "number"
      +        }
      +      },
      +      "readOnly": true,
      +      "required": [
      +        "cpuCores",
      +        "memoryGB",
      +        "diskGB"
      +      ],
      +      "type": "object"
      +    },
      +    "PITRInterval_depth13": {
      +      "additionalProperties": false,
      +      "description": "A continuous engine-verified restorable interval, optionally attributed to its anchoring full backup.",
      +      "properties": {
      +        "backup": {
      +          "description": "Name of the full backup anchoring this interval; omitted when provenance is unavailable.",
      +          "type": "string"
      +        },
      +        "end": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "start": {
      +          "format": "date-time",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "start",
      +        "end"
      +      ],
      +      "type": "object"
      +    },
      +    "PITRWindow_depth14": {
      +      "additionalProperties": false,
      +      "description": "Legacy start/end describe the latest-ending continuous interval; intervals lists every restorable range.",
      +      "properties": {
      +        "available": {
      +          "type": "boolean"
      +        },
      +        "end": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "intervals": {
      +          "description": "All engine-verified restorable intervals, sorted by start, end, then backup name. Intervals anchored by different full backups are not merged. Omitted or empty when unavailable.",
      +          "items": {
      +            "$ref": "#/$defs/PITRInterval_depth13"
      +          },
      +          "type": "array"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "start": {
      +          "format": "date-time",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "available"
      +      ],
      +      "type": "object"
      +    },
      +    "PlacementGroup_depth14": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "members": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "members"
      +      ],
      +      "type": "object"
      +    },
      +    "Placement_depth15": {
      +      "additionalProperties": false,
      +      "description": "Observed placement; anti-affinity is guaranteed only when supported by the backend and all authoritative placement groups are distinct.",
      +      "properties": {
      +        "groups": {
      +          "items": {
      +            "$ref": "#/$defs/PlacementGroup_depth14"
      +          },
      +          "type": "array"
      +        },
      +        "guaranteedAntiAffinity": {
      +          "type": "boolean"
      +        },
      +        "source": {
      +          "enum": [
      +            "backend",
      +            "best-effort",
      +            "unavailable"
      +          ],
      +          "type": "string"
      +        },
      +        "warning": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "warning",
      +        "groups",
      +        "guaranteedAntiAffinity"
      +      ],
      +      "type": "object"
      +    },
      +    "Resources_depth14": {
      +      "additionalProperties": false,
      +      "description": "Resource configuration returned by the control plane. Observed member autoscaling describes runtime root disks, not persistent data volumes; request-only resource bounds do not apply.",
      +      "properties": {
      +        "cpuMode": {
      +          "enum": [
      +            "SHARED",
      +            "DEDICATED"
      +          ],
      +          "type": "string"
      +        },
      +        "maxCpu": {
      +          "type": "number"
      +        },
      +        "maxDisk": {
      +          "description": "GiB",
      +          "type": "number"
      +        },
      +        "maxRam": {
      +          "description": "GiB",
      +          "type": "number"
      +        },
      +        "minCpu": {
      +          "type": "number"
      +        },
      +        "minDisk": {
      +          "description": "GiB",
      +          "type": "number"
      +        },
      +        "minRam": {
      +          "description": "GiB",
      +          "type": "number"
      +        },
      +        "startCpu": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "cpuMode",
      +        "minCpu",
      +        "maxCpu",
      +        "minRam",
      +        "maxRam",
      +        "minDisk",
      +        "maxDisk"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "agents": {
      +      "$ref": "#/$defs/AgentRolloutStatus_depth15"
      +    },
      +    "backup": {
      +      "$ref": "#/$defs/ClusterBackupStatus_depth15"
      +    },
      +    "conditions": {
      +      "items": {
      +        "$ref": "#/$defs/Condition_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "connection": {
      +      "$ref": "#/$defs/ConnectionSummary_depth15"
      +    },
      +    "dataMcp": {
      +      "$ref": "#/$defs/DataMcpStatus_depth15"
      +    },
      +    "fcv": {
      +      "type": "string"
      +    },
      +    "maintenance": {
      +      "$ref": "#/$defs/MaintenanceStatus_depth15"
      +    },
      +    "members": {
      +      "items": {
      +        "$ref": "#/$defs/Member_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "observedGeneration": {
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "phase": {
      +      "description": "Restoring means an in-place recovery operation is executing and normal traffic may be unavailable; Ready is False with reason Restoring. After completion, Ready remains False with reason RestoreFinished until ordinary reconciliation observes database health. Suspended means runtime services are removed; member allocation is historical and agents are not connected.",
      +      "enum": [
      +        "Creating",
      +        "Initializing",
      +        "Ready",
      +        "Updating",
      +        "Scaling",
      +        "Upgrading",
      +        "Restoring",
      +        "Degraded",
      +        "Error",
      +        "Deleting",
      +        "Suspended"
      +      ],
      +      "type": "string"
      +    },
      +    "placement": {
      +      "$ref": "#/$defs/Placement_depth15"
      +    },
      +    "version": {
      +      "description": "Observed binary version from runtime members, not the desired spec.version. Absent when no version can be observed; during a mixed-version rollout it reports the oldest observed version.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "phase",
      +    "observedGeneration",
      +    "conditions",
      +    "members"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so safety is covered structurally; the description adds the non-obvious trait that the payload excludes secret credentials, plus which observation categories are included. It does not discuss authorization requirements or any staleness/refresh characteristics of 'observed' data, leaving a modest gap.

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

Conciseness4/5

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

Two front-loaded sentences: the first defines scope and content, the second defines how to use the result. Efficient, though the field enumeration partially duplicates what the output schema already provides.

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?

With annotations, full parameter documentation and an output schema present, the description needs only to orient the agent, and it does so by explaining the observed-vs-desired distinction and the convergence workflow. Minor omissions like error behavior or refresh semantics are acceptable given the surrounding structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both cluster and namespace are already documented in full, including the namespace defaulting and authorization-narrowing behavior. The description adds no syntax or format meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource (read observed cluster status) and immediately enumerates what comes back: phase, conditions, observedGeneration, members, version, backup, placement and maintenance observations. It also explicitly contrasts itself with cluster_get (desired configuration) by naming the observedGeneration/generation comparison, so an agent can separate the two without opening schemas.

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

Usage Guidelines4/5

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

Guidance is concrete: pair this with cluster_get and compare observedGeneration against generation to track convergence of accepted configuration. That names the relevant alternative and the condition that motivates the call. No explicit when-not or exclusion case is stated, which keeps it short of a 5.

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

Deploy Server

Other Tools