Skip to main content
Glama

Get Ambari Metrics

get_ambari_metrics
Read-only

Fetch exact time-series metrics from Ambari Metrics to monitor Hadoop cluster performance. Query specified metric names with optional host, time range, duration, and aggregation filters.

Instructions

Fetch time-series metrics (exact metric names only) from Ambari Metrics.

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": {
      "metric_names": "<metric_names>"
    },
    "name": "get_ambari_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idNo
durationNo1h
end_timeNo
hostnamesNo
precisionNo
max_pointsNo
start_timeNo
metric_namesYes
group_by_hostNo
include_pointsNo
temporal_aggregatorNo
temporal_granularityNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.9.0

TDQS

C2.7/5.0
Behavior2/5

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

The annotations already establish that this is a read-only, non-open-world operation, so the description does not need to repeat that. Beyond annotations, it adds only the exact-metric-name constraint and says nothing about time-window defaults, aggregation behavior, point truncation, host grouping, or result limits. For a 12-parameter metrics query tool, that leaves significant behavioral gaps.

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?

The definition is a single front-loaded sentence with no filler, and the key constraint appears immediately. It is efficient and easy to parse, though its brevity is a liability for such a complex schema. The sentence itself earns its place.

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?

This is a complex 12-parameter query tool with 0% schema description coverage, and the description explains almost none of it. An output schema exists, so return values need not be described, but defaults, time-range semantics, aggregation, and limiting behavior remain opaque. The description is far from complete for correct invocation.

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 0%, so the description must carry parameter meaning itself. It clarifies only metric_names by saying exact names are required, while app_id, duration, start_time, end_time, hostnames, precision, max_points, group_by_host, include_points, temporal_aggregator, and temporal_granularity are left unexplained. That is useful for one parameter but inadequate for the other eleven.

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 a specific verb and resource: fetching time-series metrics from Ambari Metrics. The parenthetical 'exact metric names only' adds a meaningful scoping constraint. It does not explicitly distinguish this tool from the metadata or catalog siblings, so it falls 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?

The only usage guidance is the caveat that exact metric names are required. There is no explicit guidance on when to use this tool versus get_ambari_metrics_metadata, get_ambari_metric_apps, or get_common_metrics_catalog. It also omits prerequisites such as discovering valid metric names first.

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