Skip to main content
Glama
raviraj-ntp

Dynatrace MCP

by raviraj-ntp

Failed Spans

dynatrace_failed_spans

Group error spans by service, span, and pod to triage failures and compare latency versus errors after service health checks flag issues.

Instructions

Error spans grouped by service/span/pod. Use after service_health shows failures or for latency vs error triage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd: now or ISO-8601
fromNoStart: now-30m or ISO-8601
limitNo
aroundNoPivot timestamp for a window
windowNoHalf-window around pivot, e.g. 2m
endDateNoCalendar end YYYY-MM-DD (UTC day)
serviceNoService name substring
namespaceNoKubernetes namespace (k8s.namespace.name). Discover with dynatrace_list_namespaces.
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

A3.5/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 discloses only the output grouping but says nothing about read-only safety, permissions, rate limits, cost, pagination, or how time-range caps are enforced, leaving major behavioral traits undisclosed.

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?

Two short sentences with no wasted words. The core purpose and usage condition are front-loaded, making it easy to parse quickly.

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?

For an 11-parameter query tool with no output schema and no annotations, the description covers purpose and one usage condition but does not explain return fields beyond grouping, how time parameters interact, or what the connection parameter affects. It is minimally adequate but leaves clear gaps.

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 91%, so the schema already documents almost every parameter thoroughly. The description adds no parameter-level meaning, which is acceptable at this coverage level but provides no extra value.

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?

The description states the resource ('error spans') and its grouping ('by service/span/pod'), which is specific and distinguishes it from a general trace tool. However, it lacks an explicit verb and does not directly contrast with the close sibling dynatrace_slow_spans, leaving some differentiation to inference.

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

Usage Guidelines4/5

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

It names one alternative (service_health) and two clear conditions: after service_health shows failures, or for latency vs error triage. It omits when-not-to-use guidance and does not mention the slow-spans tool as a mutually exclusive alternative.

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