Skip to main content
Glama

Diff Two Helm Release Revisions (Masked)

diff_helm_revisions
Read-onlyIdempotent

Compare two Helm release revisions across user values, merged values, or rendered manifests with server-side secret masking to pinpoint configuration drift without exposing secrets.

Instructions

Compare two revisions of a Helm release across user values, computed values, or rendered manifests with server-side secret masking.

Returns cluster_id, release, namespace, from_revision, to_revision, compare_mode, revision metadata (from_meta, to_meta), masked_server_side=True, and structured diff hunks/lines/stats. Secret values are replaced server-side with SHA-256 change fingerprints so rotations are detectable without leaking plaintext. Set mode to "values" (user overrides, default), "all_values" (merged chart defaults + overrides), or "manifest" (rendered Kubernetes YAML).

Use to pinpoint configuration or manifest drift between two Helm revisions (get revision numbers from get_helm_release_history). Prefer get_helm_release_details to view a single revision in full, or get_rollout_history for native Kubernetes workload revisions.

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>",
      "namespace": "<namespace>",
      "release_name": "<release_name>",
      "from_revision": "<from_revision>",
      "to_revision": "<to_revision>"
    },
    "name": "diff_helm_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoArtifact type to diff between revisions: 'values' (user-supplied overrides only, default), 'all_values' (merged chart defaults + overrides), or 'manifest' (rendered Kubernetes YAML). All secrets are masked server-side in every mode.values
namespaceYesTarget Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on 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').
to_revisionYesTarget (newer) Helm revision number (>=1) to diff against `from_revision`. Obtain valid revision numbers from `get_helm_release_history`.
release_nameYesExact Helm release name inside `namespace` (1-253 chars, e.g. 'ingress-nginx'). Discover installed releases via `get_helm_releases`.
from_revisionYesBase (older) Helm revision number (>=1) to diff from. Obtain valid revision numbers from `get_helm_release_history`.

Output Schema

NameRequiredDescriptionDefault
hunksNoStructured diff hunks with unified/side-by-side lines.
statsNoLine-level diff counts (added, removed, changed).
releaseNoHelm release name.
to_metaNoHistory metadata for `to_revision`.
from_metaNoHistory metadata for `from_revision`.
namespaceNoHelm release namespace.
cluster_idNoCluster identifier queried.
has_changesNoTrue when at least one line differs between the two masked revisions.
mask_noticeNoSecurity notice describing server-side secret masking.
to_revisionNoTarget revision number compared to.
compare_modeNoComparison mode executed: values, all_values, or manifest.values
unified_diffNoUnified diff text of the server-side masked YAML.
from_revisionNoBase revision number compared from.
masked_server_sideNoAlways true: secrets were replaced server-side with SHA-256 change fingerprints before diffing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 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 / from_revision / description
      Added value: +"Base (older) Helm revision number (>=1) to diff from. Obtain valid revision numbers from `get_helm_release_history`."
    • addedInput schema / properties / from_revision / minimum
      Added value: +1
    • addedInput schema / properties / mode / description
      Added value: +"Artifact type to diff between revisions: 'values' (user-supplied overrides only, default), 'all_values' (merged chart defaults + overrides), or 'manifest' (rendered Kubernetes YAML). All secrets are masked server-side in every mode."
    • addedInput schema / properties / mode / enum
      Added value: +[
      +  "values",
      +  "all_values",
      +  "manifest"
      +]
    • addedInput schema / properties / namespace / description
      Added value: +"Target Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on the cluster."
    • addedInput schema / properties / namespace / maxLength
      Added value: +63
    • addedInput schema / properties / namespace / minLength
      Added value: +1
    • addedInput schema / properties / namespace / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • addedInput schema / properties / release_name / description
      Added value: +"Exact Helm release name inside `namespace` (1-253 chars, e.g. 'ingress-nginx'). Discover installed releases via `get_helm_releases`."
    • addedInput schema / properties / release_name / maxLength
      Added value: +253
    • addedInput schema / properties / release_name / minLength
      Added value: +1
    • addedInput schema / properties / release_name / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
    • addedInput schema / properties / to_revision / description
      Added value: +"Target (newer) Helm revision number (>=1) to diff against `from_revision`. Obtain valid revision numbers from `get_helm_release_history`."
    • addedInput schema / properties / to_revision / minimum
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "compare_mode": {
      +      "default": "values",
      +      "description": "Comparison mode executed: values, all_values, or manifest.",
      +      "title": "Compare Mode",
      +      "type": "string"
      +    },
      +    "from_meta": {
      +      "additionalProperties": true,
      +      "description": "History metadata for `from_revision`.",
      +      "title": "From Meta",
      +      "type": "object"
      +    },
      +    "from_revision": {
      +      "default": 1,
      +      "description": "Base revision number compared from.",
      +      "title": "From Revision",
      +      "type": "integer"
      +    },
      +    "has_changes": {
      +      "default": false,
      +      "description": "True when at least one line differs between the two masked revisions.",
      +      "title": "Has Changes",
      +      "type": "boolean"
      +    },
      +    "hunks": {
      +      "description": "Structured diff hunks with unified/side-by-side lines.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Hunks",
      +      "type": "array"
      +    },
      +    "mask_notice": {
      +      "default": "",
      +      "description": "Security notice describing server-side secret masking.",
      +      "title": "Mask Notice",
      +      "type": "string"
      +    },
      +    "masked_server_side": {
      +      "default": true,
      +      "description": "Always true: secrets were replaced server-side with SHA-256 change fingerprints before diffing.",
      +      "title": "Masked Server Side",
      +      "type": "boolean"
      +    },
      +    "namespace": {
      +      "default": "",
      +      "description": "Helm release namespace.",
      +      "title": "Namespace",
      +      "type": "string"
      +    },
      +    "release": {
      +      "default": "",
      +      "description": "Helm release name.",
      +      "title": "Release",
      +      "type": "string"
      +    },
      +    "stats": {
      +      "additionalProperties": true,
      +      "description": "Line-level diff counts (added, removed, changed).",
      +      "title": "Stats",
      +      "type": "object"
      +    },
      +    "to_meta": {
      +      "additionalProperties": true,
      +      "description": "History metadata for `to_revision`.",
      +      "title": "To Meta",
      +      "type": "object"
      +    },
      +    "to_revision": {
      +      "default": 1,
      +      "description": "Target revision number compared to.",
      +      "title": "To Revision",
      +      "type": "integer"
      +    },
      +    "unified_diff": {
      +      "default": "",
      +      "description": "Unified diff text of the server-side masked YAML.",
      +      "title": "Unified Diff",
      +      "type": "string"
      +    }
      +  },
      +  "title": "HelmDiffOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, but the description adds behavior those annotations cannot express: secrets are replaced server-side with SHA-256 change fingerprints so rotations remain detectable without leaking plaintext. It also confirms the diff is computed server-side and reports masked_server_side=True. This is meaningful context beyond the structured fields.

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 purpose, then return shape, then mode semantics, then when-to-use alternatives — a sensible order. Some redundancy exists because the mode explanation duplicates the enum documentation in the schema, but no sentence is wasted overall.

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, the enumerated return fields (cluster_id, release, revision metadata, diff hunks/stats) are somewhat redundant, but the masking guarantee and the alternatives guidance make the definition sufficient for correct invocation. A six-parameter read tool is well covered.

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 the mode enum and the revision parameters are already fully documented. The description restates the three mode meanings and the default rather than adding new semantics such as ordering constraints on from/to or what happens when revisions are identical. Baseline 3 applies when 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?

Opens with a specific verb and resource ('Compare two revisions of a Helm release') and immediately scopes the artifact types (user values, computed values, rendered manifests) plus the masking behavior. An agent can distinguish this from get_helm_release_details or get_rollout_history without reading further.

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 ('pinpoint configuration or manifest drift between two Helm revisions'), states the prerequisite for obtaining inputs (get_helm_release_history), and names two alternatives with the condition that selects each (single revision view vs. native K8s workload revisions). 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.