Skip to main content
Glama
raviraj-ntp

Dynatrace MCP

by raviraj-ntp

List Kubernetes Namespaces

dynatrace_list_namespaces

List Kubernetes namespaces in a Dynatrace tenant, optionally filtered by cluster, to inventory workloads before running log or metric queries.

Instructions

List namespaces in this tenant, optionally filtered by cluster.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd: now or ISO-8601
fromNoStart: now-30m or ISO-8601
aroundNoPivot timestamp for a window
windowNoHalf-window around pivot, e.g. 2m
clusterNoDynatrace k8s.cluster.name. Discover with dynatrace_list_clusters; do not assume a cluster.
endDateNoCalendar end YYYY-MM-DD (UTC day)
startDateNoCalendar start YYYY-MM-DD (UTC day)
connectionNoNamed connection from env (default, optional stage/prod aliases, or a DYNATRACE_CONNECTIONS key)
allowLongRangeNoAllow ranges longer than the default cap

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It never states that this is a read-only listing, says nothing about pagination or result caps despite an allowLongRange flag implying a default range cap, and does not explain the default time window applied when no range parameters are supplied.

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?

A single front-loaded sentence with zero filler; the primary action and the one optional refinement are both stated immediately.

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 9-parameter tool with no annotations and no output schema, the description is thin: it leaves the agent without any explanation of the six overlapping time-window parameters, the default range and the long-range cap, or the shape of the returned namespace list. The schema covers parameter syntax, but the behavioral picture is incomplete.

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 9 parameters (including the from/to/around/window/startDate/endDate time family and the cluster discovery hint) are already documented in the schema. The description only restates the cluster filter, adding no syntax, defaults, or interplay between the time-window parameters beyond the schema. Baseline 3 applies.

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 (List) and resource (namespaces) with the tenant as scope, which cleanly separates it from dynatrace_list_clusters, dynatrace_list_nodes and dynatrace_list_pods. It does not explicitly name those siblings or explain how the k8s entity tools relate, so it stops short of a 5.

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?

"optionally filtered by cluster" hints at one usage mode but gives no when-to-use framing, no prerequisites, and no guidance on when to reach for this versus dynatrace_list_clusters (which the cluster param points to) or the pod/node listers. Nothing tells the agent when this tool is the right choice.

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