Skip to main content
Glama

generate_network_policy

Generate Kubernetes NetworkPolicy for zero-trust pod communication

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": {
      "service": "<service>",
      "namespace": "<namespace>"
    },
    "name": "generate_network_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
serviceYesTarget service name
namespaceYesKubernetes namespace
allowEgressNoServices this pod can send traffic to
allowIngressNoServices allowed to send traffic in

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. 'Zero-trust' hints at default-deny semantics but never states what happens when allowEgress/allowIngress are omitted, whether the generated policy is applied to a cluster or merely emitted as YAML, or whether existing policies are overwritten — all critical for a security-config generator.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though its brevity is partly under-specification rather than disciplined trimming.

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

Completeness2/5

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

For a 4-parameter mutation-style generator with no annotations and no output schema, the description should clarify the return shape (manifest vs applied resource) and default-deny behavior. Neither is present, leaving meaningful gaps for an agent that must call it correctly.

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 description coverage is 100%, so all four parameters (service, namespace, allowEgress, allowIngress) are already documented in the input schema, warranting the baseline 3. The description adds only the vague framing 'zero-trust pod communication' and no extra meaning about how the allow lists interact.

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: generate a Kubernetes NetworkPolicy for zero-trust pod communication. That is enough to separate it from manifest-focused siblings like generate_pod_security_policy or generate_mtls_policy, though the description never names an alternative to route against.

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 statement of when to use this versus the many other generate_* policy tools, and no prerequisites (target cluster context, whether the namespace must already exist, whether the output is applied or returned). The agent must infer all routing from the noun phrase 'Kubernetes NetworkPolicy'.

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.