Skip to main content
Glama

security_kubeconfig_check

Read-only

Kubeconfig security audit — Offline security audit of a Kubernetes kubeconfig (text= YAML or JSON, or url=). Checks insecure-skip-tls-verify, plain-HTTP / legacy 8080 API servers, public-IP endpoints, CA and client-cert expiry, client certs in system:masters (unrevocable cluster-admin, parsed from the X.509 subject), long-lived certs, embedded private keys, static and non-expiring service-account tokens (JWT decoded locally), basic auth, deprecated gcp/azure auth-providers with inline refresh tokens, exec plugins (v1alpha1, untrusted paths, remote scripts, inline secrets in env/args), broken contexts and a production default context. Secrets are never echoed; you may replace token values with REDACTED. Returns PASS/REVIEW/FAIL, score, grade, shareable flag, per-cluster/user summary and findings with fixes. Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_kubeconfig_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesapiVersion: v1 kind: Config clusters: - name: dev cluster: server: https://203.0.113.10:6443 insecure-skip-tls-verify: true users: - name: ci user: token: REDACTED contexts: - name: dev context: cluster: dev user: ci current-context: dev

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description goes well beyond by enumerating the exact checks performed, guaranteeing secrets are never echoed with a REDACTED substitution option, and specifying return values (PASS/REVIEW/FAIL, score, grade, shareable flag, findings with fixes) plus a per-call price of $0.006 USDC via x402.

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

Conciseness3/5

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

Purpose is front-loaded, but the body is one enormous run-on sentence with a very long comma-separated checklist, which is hard to scan. The enumeration is informative yet could be grouped or trimmed for readability.

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 no output schema, the description compensates by describing the return shape and verdict levels, and it covers the single required parameter's formats. The only completeness gap is the implied url parameter that the schema does not define, and no mention of size limits for large kubeconfigs.

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% on the single 'text' parameter, so baseline is 3. The description adds accepted formats (YAML or JSON) and the REDACTED convention, but also references a 'url=' input that does not appear in the input schema, muddying rather than clarifying parameter semantics.

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?

States a specific verb and resource: 'Offline security audit of a Kubernetes kubeconfig'. The scope (kubeconfig file, offline) is clear, though it never explicitly distinguishes itself from the sibling security_k8s_check, which an agent could plausibly confuse with this one.

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?

The word 'Offline' and the accepted input forms imply when this applies, but there is no explicit when-to-use/when-not guidance and no named alternative such as security_k8s_check. Usage is inferable but not stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources