Skip to main content
Glama
razvanmacovei

Multi Cluster Kubernetes MCP Server

k8s_get_network_policies

List Kubernetes NetworkPolicies to view pod-to-pod and pod-to-external traffic rules, including selectors, policy types, and rule counts.

Instructions

List NetworkPolicies that control pod-to-pod and pod-to-external traffic. Shows pod selectors, policy types (Ingress/Egress), and rule counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextYes
namespaceNo
Behavior3/5

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

The description indicates a read-only listing operation but lacks details on scope (e.g., whether it lists across all namespaces when namespace is omitted), potential pagination, or required permissions. With no annotations, the description carries the full burden but only partially addresses it.

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

Conciseness5/5

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

The description is concise with two sentences, the first clearly stating the purpose and the second adding specifics about the output. It is front-loaded and contains no wasted words.

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?

The description provides basic information about the output but omits details on error handling, permissions, default behavior for the namespace parameter, or response format. Given no output schema, more context would be beneficial.

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?

The description does not explain the parameters 'context' and 'namespace'. Since schema description coverage is 0%, the description should provide meaning for these parameters but fails to do so, leaving their semantics unclear.

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?

The description clearly states the tool lists NetworkPolicies, specifies what they control (pod-to-pod and pod-to-external traffic), and outlines the displayed details (pod selectors, policy types, rule counts). This distinguishes it from sibling tools that handle other Kubernetes resources.

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?

No guidance is provided on when to use this tool versus alternatives like k8s_describe or other resource-specific listings. There is no mention of prerequisites, filtering behavior, or contrast with related tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/razvanmacovei/k8s-multicluster-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server