Skip to main content
Glama

Read detected member co-location and placement warnings

cluster_placement_get
Read-onlyIdempotent

Retrieve detected member co-location and placement warnings for a cluster to verify observed placement groups and anti-affinity guarantees.

Instructions

Read detected member co-location and placement warnings

Returns observed placement groups, a warning, guaranteedAntiAffinity and the observation source when available. Distinct hosts are guaranteed only when the backend supports authoritative placement and all observed groups are distinct.

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_placement_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
groupsYes
sourceNo
warningYes
operationIdNo
guaranteedAntiAffinityYes

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": {
      +    "PlacementGroup_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "members": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "members"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "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_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "guaranteedAntiAffinity": {
      +      "type": "boolean"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "enum": [
      +        "backend",
      +        "best-effort",
      +        "unavailable"
      +      ],
      +      "type": "string"
      +    },
      +    "warning": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "warning",
      +    "groups",
      +    "guaranteedAntiAffinity"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description does add genuine behavioral context beyond that: it names the returned components (placement groups, warning, guaranteedAntiAffinity, observation source) and, more importantly, qualifies that distinct hosts are only guaranteed when the backend supports authoritative placement and observed groups are distinct. That caveat is the real value-add, but the description stops short of saying what happens when the backend is not authoritative (empty groups? warning only?).

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 compact sentences, with the purpose front-loaded before the return detail. The opening sentence duplicates the title verbatim, which is mild waste, but the caveat sentence is well-placed and earns its space.

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 an output schema present, enumerating return fields is largely redundant, and the description recovers by focusing on the guarantee semantics that the schema cannot express. For a single-required-parameter read-only diagnostic, the only gap is guidance on when this output is meaningful versus other cluster placement/diagnostic tools.

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%, including a detailed note on namespace scoping and 404 behavior, so the schema carries the parameter burden. The description adds nothing about how cluster or namespace affect the placement query, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Read') plus a precise resource ('detected member co-location and placement warnings'), which is far more than a restatement of the name. It implicitly distinguishes itself from member-inventory siblings like cluster_member_get by focusing on placement groups and warnings, but it never names an alternative to sharpen that boundary.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no when-not-to-use, and no mention of sibling tools such as cluster_balancer_get or cluster_diagnose that an agent might reach for instead. The only signal is the implied context of 'detected co-location', which requires the caller to infer the diagnostic scenario.

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