Skip to main content
Glama

Evaluate pod security

k8s_evaluate_pod_security

Evaluate a Kubernetes pod specification against security policies to identify violations before deployment.

Instructions

Evaluate pod security against policies.

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": {
      "namespace": "<namespace>",
      "pod_spec": "<pod_spec>"
    },
    "name": "k8s_evaluate_pod_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
pod_specYes
namespaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.8/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, but the description adds nothing about what the evaluation does: whether it reads cluster state, which cluster objects or policy engines it contacts, whether it has side effects, or what it returns on pass/fail. The word "evaluate" also reads as a pure read while readOnlyHint is false, an unresolved tension the text does not explain. For a tool touching an open-world cluster API, this is a substantial disclosure gap.

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

Conciseness2/5

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

It is a single short sentence with no filler, but the brevity is under-specification rather than conciseness. Nothing is front-loaded beyond the name, and no second sentence clarifies policy source or result shape.

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

Completeness1/5

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

The tool takes a required nested pod_spec object, runs open-world against a cluster context, and has no output schema, so the description carries the full burden of explaining inputs and outcome semantics. It explains none of that. The definition is not complete enough for an agent to invoke it correctly.

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

Parameters1/5

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

Schema description coverage is only 33% (only the context parameter is documented), so the description must compensate and does not. It never mentions namespace, the required pod_spec nested object, or which spec fields drive the evaluation — the single most important thing to know before calling this tool. It adds zero meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Evaluate pod security against policies" names a verb and resource, so an agent can tell it is an assessment rather than a policy CRUD operation like the k8s_*_pod_security_policy siblings. However, "policies" is undefined: no indication whether this means Pod Security Standards/PSA labels, PodSecurityPolicy objects, OPA/Gatekeeper constraints, or an internal rule set. The scope of the evaluation is left entirely to inference.

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

Usage Guidelines1/5

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

The description contains no when-to-use guidance, no preconditions, and no mention of alternatives. With siblings such as k8s_describe_pod_security_policy and k8s_describe_pod available, an agent has no basis in the text for choosing this tool over inspecting a policy or a pod directly.

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