Skip to main content
Glama
raviraj-ntp

Dynatrace MCP

by raviraj-ntp

Get Trace

dynatrace_get_trace

Fetch spans for a trace ID from a log line, plus optional linked logs, to investigate distributed requests and errors.

Instructions

Fetch spans for a trace_id (from a log line) plus optional linked logs.

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)
traceIdYes
startDateNoCalendar start YYYY-MM-DD (UTC day)
connectionNoNamed connection from env (default, optional stage/prod aliases, or a DYNATRACE_CONNECTIONS key)
includeLogsNo
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 exist, so the description carries the full behavioral burden, and it discloses very little. It does not say what permissions or connection are required, what happens when the trace is not found, how limit/pagination behaves (max 100), or that allowLongRange overrides a default range cap that is never stated. Only the return shape (spans plus optionally linked logs) is hinted at.

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?

One dense, front-loaded sentence with no filler, and the core identifier is stated first. It is arguably over-terse for an 11-parameter tool, but the dimension rewards structure and economy, both of which are good here.

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?

With 11 parameters, no annotations, no output schema, and several mutually interacting time-range parameters, the description should explain the windowing model and the default range cap implied by allowLongRange. None of that is present, so an agent is left to guess how to bound the query.

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?

Eleven parameters with 73% schema coverage and overlapping time-window options (from/to, startDate/endDate, around/window, allowLongRange). The description only implicitly touches traceId and includeLogs ('optional linked logs'); it adds no meaning for the ambiguous windowing or range-cap parameters, so it does not compensate for the moderate coverage gap.

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: fetch spans for a given trace_id, with the useful qualifier that the id typically comes from a log line, plus optional linked logs. It distinguishes itself from the span-search siblings (slow_spans, failed_spans) by being id-scoped, though it never names those alternatives explicitly.

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

Usage Guidelines3/5

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

The parenthetical '(from a log line)' implies the prerequisite context for calling it, which is genuine implied usage guidance. However there is no when-not guidance, no mention of how it relates to dynatrace_slow_spans/dynatrace_failed_spans/dynatrace_logs_surrounding, and no note on which time-window mode to pick.

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