Skip to main content
Glama

Get Read-Only Resource YAML Manifest

get_manifest
Read-onlyIdempotent

Fetch the read-only raw YAML manifest for one non-Secret Kubernetes resource to inspect exact specs, annotations, and env or volume mounts.

Instructions

Retrieve the read-only raw YAML manifest (kubectl get -o yaml) for one non-Secret Kubernetes resource.

Returns cluster_id, namespace, kind, name, and yaml. Pass namespace for namespaced resources (Pod, Deployment, Service, ConfigMap, PVC) or omit it for cluster-scoped resources (Node, StorageClass, PV, Namespace). Requests for Secret resources are hard-blocked with HTTP 403 Forbidden.

Use when you need exact raw spec fields, annotations, or env/volume mounts not present in summarized views. Prefer get_pod_details for structured pod diagnostics, get_namespace_resources to list Secret metadata safely, or get_helm_release_details for masked Helm-rendered manifests.

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>",
      "kind": "<kind>",
      "name": "<name>"
    },
    "name": "get_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesKubernetes resource kind or plural/group name (e.g. 'Deployment', 'Pod', 'Service', 'ConfigMap', 'Ingress', 'HTTPRoute', 'Node'). Requests for 'Secret' / 'secrets' are permanently blocked with HTTP 403.
nameYesExact Kubernetes metadata.name of the resource to inspect (1-253 chars).
namespaceNoKubernetes namespace name (1-63 chars) for namespaced resources (Pod, Deployment, Service, ConfigMap, PVC). Omit or pass null for cluster-scoped resources (Node, Namespace, PersistentVolume, StorageClass).
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
kindNoKubernetes resource kind queried.
nameNoKubernetes resource name.
yamlNoRead-only YAML manifest returned by `kubectl get -o yaml`.
namespaceNoResource namespace, or null for cluster-scoped objects.
cluster_idNoCluster identifier queried.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 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}$"
    • addedInput schema / properties / kind / description
      Added value: +"Kubernetes resource kind or plural/group name (e.g. 'Deployment', 'Pod', 'Service', 'ConfigMap', 'Ingress', 'HTTPRoute', 'Node'). Requests for 'Secret' / 'secrets' are permanently blocked with HTTP 403."
    • addedInput schema / properties / kind / maxLength
      Added value: +128
    • addedInput schema / properties / kind / minLength
      Added value: +1
    • addedInput schema / properties / kind / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
    • addedInput schema / properties / name / description
      Added value: +"Exact Kubernetes metadata.name of the resource to inspect (1-253 chars)."
    • addedInput schema / properties / name / maxLength
      Added value: +253
    • addedInput schema / properties / name / minLength
      Added value: +1
    • addedInput schema / properties / name / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
    • 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: +"Kubernetes namespace name (1-63 chars) for namespaced resources (Pod, Deployment, Service, ConfigMap, PVC). Omit or pass null for cluster-scoped resources (Node, Namespace, PersistentVolume, StorageClass)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "default": "",
      +      "description": "Kubernetes resource kind queried.",
      +      "title": "Kind",
      +      "type": "string"
      +    },
      +    "name": {
      +      "default": "",
      +      "description": "Kubernetes resource name.",
      +      "title": "Name",
      +      "type": "string"
      +    },
      +    "namespace": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Resource namespace, or null for cluster-scoped objects.",
      +      "title": "Namespace"
      +    },
      +    "yaml": {
      +      "default": "",
      +      "description": "Read-only YAML manifest returned by `kubectl get -o yaml`.",
      +      "title": "Yaml",
      +      "type": "string"
      +    }
      +  },
      +  "title": "ManifestOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral facts beyond them: Secret requests are hard-blocked with HTTP 403, and namespace omission behavior differs for cluster-scoped kinds, plus the exact output keys returned. It does not cover error behavior for other failures (e.g. not-found or forbidden kinds), leaving a small 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?

Front-loaded with the core action and scope, then return keys, then usage guidance and alternatives — a logical progression. The middle paragraph on Namespace/Secret blocking partially duplicates schema text, which is the only minor waste; no filler sentences.

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?

With annotations, a 100%-covered schema, and an output schema present, the description needn't explain return values — yet it still signals the YAML shape. For a read-only fetch with a security carve-out, everything an agent needs to invoke it correctly (scope, namespace rule, Secret block, alternatives) is stated.

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 each parameter's format and constraints are already documented in the schema. The description reinforces the namespaced vs cluster-scoped rule for `namespace` and the non-Secret restriction on `kind`, but adds no format or syntax detail beyond what the schema carries. Baseline 3 is appropriate.

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 ('Retrieve the read-only raw YAML manifest (`kubectl get -o yaml`)') and immediately bounds scope to 'one non-Secret Kubernetes resource'. It also names the return keys and the block on Secrets, so an agent can distinguish this from summarize-style siblings without opening a 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 use case ('when you need exact raw spec fields, annotations, or env/volume mounts not present in summarized views') and then routes to three named alternatives with the conditions that select them: get_pod_details for structured diagnostics, get_namespace_resources for Secret metadata, get_helm_release_details for Helm-rendered manifests.

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