Skip to main content
Glama
mnmozi

Dynatrace SaaS MCP Server

by mnmozi

query_metric

Retrieve metric data points via Grail DQL timeseries queries. Specify metric key, aggregation, filter, and time range for observability metrics.

Instructions

Query metric data points via Grail DQL 'timeseries' (Gen3-native, platform token). Builds a timeseries query and executes it against the Grail storage API. Works on all Gen3/Grail tenants with the storage:metrics:read scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricKeyYesMetric key, e.g. 'dt.host.cpu.usage'.
aggregationNoAggregation: avg|sum|min|max|count|median|percentile etc. Default 'avg'.
byNoDimensions to split by, e.g. ['dt.entity.host'].
filterNoOptional DQL filter expression, e.g. 'dt.entity.host == "HOST-123"'.
fromNoDQL timeframe start (default 'now()-1h').
toNoDQL timeframe end (default 'now()').
limitNo
Behavior3/5

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

The description explains the tool builds a timeseries query and executes against the Grail storage API, disclosing the required scope. Without annotations, it carries the burden but could add more details like error handling, idempotency, or rate limits. It is adequate but not rich.

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?

Three sentences cover purpose, mechanism, and scope requirement without waste. Each sentence adds value. Slightly more structure could help, but it is already concise and clear.

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?

The tool has moderate complexity (7 params), no output schema, and no annotations. The description covers purpose and scope but does not explain the return format or pagination behavior (considering limit parameter). Adequate but 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 coverage is 100% with detailed descriptions for all 7 parameters. The description adds that it 'builds a timeseries query', which provides context but does not significantly enhance parameter meaning beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool queries metric data points via Grail DQL 'timeseries', specifying it is Gen3-native and uses a platform token. This distinguishes it from sibling tools like get_metric_metadata (metadata) and execute_dql (generic DQL).

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?

The description provides clear prerequisites: works on Gen3/Grail tenants with storage:metrics:read scope. It does not explicitly mention when not to use or alternatives, but the context implies it is for data points rather than metadata or other operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mnmozi/dynatrace-mcp-saas'

If you have feedback or need assistance with the MCP directory API, please join our Discord server