Skip to main content
Glama

Test dns connectivity

k8s_test_dns_connectivity

Tests DNS connectivity to a target from a specified Kubernetes namespace, helping diagnose resolution failures within a container workload context.

Instructions

Test DNS connectivity to a target.

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>",
      "target": "<target>"
    },
    "name": "k8s_test_dns_connectivity"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond them: it does not say what the test does in the cluster, what counts as success or failure, whether it creates any transient resource, or whether it needs elevated permissions for an open-world network probe.

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?

The single sentence is front-loaded and free of waste, which is structurally fine. But its brevity comes from under-specification rather than disciplined editing, so it is concise without being informative.

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?

The tool is an open-world network probe with no output schema, so the description carries the burden of explaining what a result looks like and how failure is reported. With two of three parameters undocumented and no behavioral detail, the definition is not complete enough for an agent to call it confidently.

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

Parameters2/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 in the schema, while 'namespace' and 'target' are bare strings. The description mentions 'target' but adds no syntax or format guidance (hostname? FQDN? service.namespace.svc?) and never explains the namespace parameter, so the coverage gap is not compensated.

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?

The description states a verb and resource ('Test DNS connectivity to a target'), so the basic action is identifiable. However, it gives no detail about what the test actually does (resolve a name? TCP/UDP? from which pod?) and does nothing to distinguish it from likely siblings such as k8s_check_dns_resolution or k8s_test_network_policy_connectivity.

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: no prerequisites, no conditions, and no named alternative for related checks. An agent must infer entirely from the name whether this is the right tool versus another connectivity/resolution test.

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