Skip to main content
Glama

Get Logical Applications

get_applications
Read-onlyIdempotent

Groups Kubernetes workloads and services into logical applications with aggregated replica health, using standard labels or name prefixes; scope by namespace or scan the cluster.

Instructions

Group Deployments, StatefulSets, DaemonSets, Services, and Pods into logical applications with aggregated replica health.

Correlates resources using standard application labels (such as app.kubernetes.io/name, app) or the resource name's leading hyphen prefix, returning cluster_id, namespace, count, healthy_count, and grouped items. Omit namespace (null) to scan across namespaces, or pass a namespace to scope.

Use for an application-centric view of services and their backing workloads. Prefer get_workloads_overview for raw counts by Kubernetes kind, get_workloads_catalog for ungrouped workload lists, or get_namespace_map for explicit pod-to-config/secret/PVC dependency edges.

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_id": "<cluster_id>"
    },
    "name": "get_applications"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceNoOptional Kubernetes namespace name (1-63 chars) to scope results to a single namespace. Omit or pass null to query across all namespaces in the cluster.
cluster_idYesUnique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging').

Output Schema

NameRequiredDescriptionDefault
countNoTotal number of logical applications discovered.
itemsNoLogical application groups correlated by app labels or name prefix, each with name, namespace, healthy, total_replicas, ready_replicas, deployments, statefulsets, daemonsets, services, and pods.
namespaceNoFiltered namespace name, or null when grouped across namespaces.
cluster_idNoCluster identifier queried.
healthy_countNoNumber of logical applications currently healthy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.1
    • addedInput schema / properties / cluster_id / description
      Added value: +"Unique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging')."
    • addedInput schema / properties / cluster_id / maxLength
      Added value: +63
    • addedInput schema / properties / cluster_id / minLength
      Added value: +1
    • addedInput schema / properties / cluster_id / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • changedInput schema / properties / namespace / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 63,
      +    "minLength": 1,
      +    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / namespace / description
      Added value: +"Optional Kubernetes namespace name (1-63 chars) to scope results to a single namespace. Omit or pass null to query across all namespaces in the cluster."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "count": {
      +      "default": 0,
      +      "description": "Total number of logical applications discovered.",
      +      "title": "Count",
      +      "type": "integer"
      +    },
      +    "healthy_count": {
      +      "default": 0,
      +      "description": "Number of logical applications currently healthy.",
      +      "title": "Healthy Count",
      +      "type": "integer"
      +    },
      +    "items": {
      +      "description": "Logical application groups correlated by app labels or name prefix, each with name, namespace, healthy, total_replicas, ready_replicas, deployments, statefulsets, daemonsets, services, and pods.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Items",
      +      "type": "array"
      +    },
      +    "namespace": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Filtered namespace name, or null when grouped across namespaces.",
      +      "title": "Namespace"
      +    }
      +  },
      +  "title": "ApplicationsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so the safety profile is covered. The description adds substantive behavior beyond that: the correlation strategy (standard app labels such as `app.kubernetes.io/name`, `app`, or the leading hyphen prefix of the resource name) and the shape of the aggregate. It doesn't mention performance or label-precedence when both heuristics disagree, which keeps it off a 5.

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

Conciseness5/5

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

Front-loaded with what is grouped and how, then scoping, then sibling routing — each paragraph has a distinct job and there is no filler. Dense but every sentence carries information an agent needs to choose correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read tool with full schema coverage, an output schema, and complete annotations, the description covers purpose, correlation logic, scoping semantics, and alternatives. An agent has everything needed to select and call it correctly.

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 coverage is 100% and the schema already documents both parameters, including that null scans across all namespaces. The description's 'Omit `namespace` (`null`) to scan across namespaces' restates that, adding no new syntax or constraint. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

Names a specific verb and resource ('Group Deployments, StatefulSets, DaemonSets, Services, and Pods into logical applications') and states the output dimension ('aggregated replica health'). An agent can distinguish this application-centric grouping from raw workload listing 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 an explicit positive cue ('Use for an application-centric view of services and their backing workloads') and then routes three named siblings to their respective cases: raw counts, ungrouped lists, and pod-to-config/secret/PVC edges. Nothing is left to inference.

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