Skip to main content
Glama

get_current_alerts

Read-only

Retrieve current Ambari cluster alerts with optional filters by host, service, state, or definition to monitor cluster health.

Instructions

Retrieve current alerts from Ambari cluster.

DEPRECATED: This function is deprecated in favor of get_alerts_history with mode="current". This wrapper is maintained for backward compatibility.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_current_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNodetailed
host_nameNo
cluster_nameNo
service_nameNo
state_filterNo
definition_nameNo
maintenance_stateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv3.7.5
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / cluster_name / title
      Removed value: -"Cluster Name"
    • removedInput schema / properties / definition_name / title
      Removed value: -"Definition Name"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / host_name / title
      Removed value: -"Host Name"
    • removedInput schema / properties / maintenance_state / title
      Removed value: -"Maintenance State"
    • removedInput schema / properties / service_name / title
      Removed value: -"Service Name"
    • removedInput schema / properties / state_filter / title
      Removed value: -"State Filter"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"_WrappedResult"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered, and the output schema covers return shape. The description's added value is lifecycle context: the tool is deprecated, frozen as a compatibility shim, and will not track new behavior. It does not discuss result volume, filtering semantics, or maintenance_state effects, so it stops short of rich behavioral detail.

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, zero filler, with the deprecation warning given its own paragraph so it cannot be skimmed past. Every sentence 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?

For a seven-parameter filtering tool with no schema descriptions whatsoever, the definition says nothing about how filters interact, what happens when they conflict, or what values are accepted. The deprecation routing is complete, but the invocation contract is not.

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?

All seven parameters (host_name, cluster_name, service_name, state_filter, definition_name, maintenance_state, format) have 0% schema description coverage, and the description supplies no meaning for any of them. In particular the format default of 'detailed' and the allowed values for state_filter and maintenance_state are left entirely unexplained, so the burden falls on guesswork.

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 states a specific verb and resource ('Retrieve current alerts from Ambari cluster') and immediately distinguishes itself from the sibling get_alerts_history by declaring itself a deprecated backward-compatibility wrapper for that tool's mode="current" path. An agent can identify both what it does and where it sits in the family without opening any schema.

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 gives explicit negative guidance: do not adopt this, use get_alerts_history with mode="current" instead, and this wrapper exists only for backward compatibility. What it lacks is any positive guidance on when the current wrapper is still the right call, or how the filter parameters should be combined.

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