Skip to main content
Glama

Export manifest

k8s_export_manifest

Exports live Kubernetes objects as clean manifests for Git persistence, stripping status and runtime metadata. Refuses Secrets, directing sensitive values to OpenBao-backed ExternalSecrets.

Instructions

The live object as a clean manifest to persist in services//k8s/.

Status, managed fields, server ids and rollout bookkeeping annotations are stripped. A Secret is refused: its values belong in OpenBao behind an ExternalSecret, never in git.

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": {
      "api_version": "<api_version>",
      "kind": "<kind>",
      "name": "<name>"
    },
    "name": "k8s_export_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nameYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
namespaceNo
api_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

B3.2/5.0
Behavior3/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), the description adds genuine behavioral value: it discloses exactly what is stripped (status, managed fields, server ids, rollout bookkeeping annotations) and a hard refusal rule for Secrets with a policy rationale. What it does not disclose is whether the manifest is written to disk or merely returned, and what happens when the resource does not exist — both material for a non-readOnly, open-world tool.

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 tight sentences, front-loaded with the core action and followed by the transformation and refusal rules; nothing is wasted. The only structural weakness is the verbless opening fragment, which costs a little clarity for the sake of brevity.

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

Completeness3/5

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

For a five-parameter, no-output-schema tool the description covers the transformation and safety policy well, but leaves the central ambiguity unresolved: does it return the manifest text or write a file into the repository? Combined with 80% undocumented parameters, there are gaps an agent would need to probe to call it correctly.

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

Parameters2/5

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

Schema description coverage is only 20%, with just the 'context' parameter documented, so the description carries the burden of explaining kind, name, namespace, and api_version — and it explains none of them. It adds no meaning about identifier formats, GVK expectations, or namespace defaulting that the bare schema does not already state.

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 names the specific resource and transformation: a live object serialized to a 'clean manifest' intended for persistence under services/<name>/k8s/. That is enough to distinguish it from apply/diff siblings, though the opening clause is a noun fragment with no explicit verb, so the agent must infer 'export/render' from the title.

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

Usage Guidelines3/5

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

Usage is only implied by the destination path (services/<name>/k8s/), which signals a GitOps persistence workflow. There is no explicit when-to-use guidance, no statement of relation to k8s_apply_manifest or k8s_diff_manifest, and no prerequisites or preconditions for invoking it.

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