Skip to main content
Glama

List pod security policies

k8s_list_pod_security_policies
Read-onlyIdempotent

Lists Kubernetes PodSecurityPolicies, including deprecated policies, for a specified context or the default context to assess cluster security settings.

Instructions

List PodSecurityPolicies (deprecated).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "k8s_list_pod_security_policies"
  }
}

Input Schema

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

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered elsewhere. The description's only added behavioral signal is '(deprecated)', which usefully warns the resource may not exist on modern clusters, but it says nothing about failure behavior when the API is missing or about the shape of the results.

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?

One short sentence with zero padding and the essential caveat parenthesized right where it is needed. It is efficient rather than verbose, though it borders on under-specification.

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?

A simple read-only list with one fully documented optional parameter and rich annotations needs little prose, so this is close to adequate. Still missing for a deprecated-API tool is any note about cluster-version dependence or what an empty/error result implies, which an agent would want before calling it.

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?

Only one optional parameter (context) and the schema documents it at 100% coverage, including a pointer to cm_multi_context list_contexts. Baseline 3 applies since the schema does all the work and the description adds nothing about how context selection affects this cluster-scoped list.

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: lists PodSecurityPolicies. That distinguishes it from the create/delete/describe siblings by verb alone, but it gives no scope detail (cluster-wide, all namespaces, filtering) and no explicit sibling differentiation.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all — nothing says to prefer k8s_describe_pod_security_policy for a single policy, or k8s_evaluate_pod_security for admission checks. The '(deprecated)' tag hints the API may be absent on newer clusters, but that implication is never spelled out as a usage condition.

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