Skip to main content
Glama

get_service_status

Read-only

Retrieve the real-time status and state of a specific service in an Ambari cluster to monitor service health and troubleshoot issues.

Instructions

Retrieves the status information for a specific service in an Ambari cluster.

[Tool Role]: Dedicated tool for real-time retrieval of specific service status and state information

[Core Functions]:

  • Retrieve specific service status via Ambari REST API

  • Provide detailed service state information (STARTED, STOPPED, INSTALLING, etc.)

  • Include service configuration and component information

[Required Usage Scenarios]:

  • When users ask about specific service status (e.g., "HDFS status", "YARN state")

  • When troubleshooting service issues

  • When monitoring specific service health

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": {
      "service_name": "<service_name>"
    },
    "name": "get_service_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_nameYesName of the service to check (e.g., "HDFS", "YARN", "HBASE")

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.8.2
    • addedInput schema / properties / service_name / description
      Added value: +"Name of the service to check (e.g., \"HDFS\", \"YARN\", \"HBASE\")"
  2. Changed4 schema fields changedv3.7.5
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / service_name / title
      Removed value: -"Service Name"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"_WrappedResult"
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the description need only add context. It does add that the data comes from the Ambari REST API and enumerates the state values (STARTED, STOPPED, INSTALLING) the agent can expect. It says nothing about behavior on unknown service names, error modes, or latency, so the gain is modest.

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 key sentence is front-loaded and the rest is bulleted, so it is easy to scan. Some lines, especially 'Dedicated tool for real-time retrieval of specific service status and state information', only restate the title and purpose, and the template-style section headers add some overhead, but the cost in length is small.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only tool that has an output schema, this description covers what is needed: the resource, the state values returned, and the situations that call for it. The remaining gap is sibling disambiguation, which matters here given the many similarly named Ambari tools.

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 100%, and the single parameter already carries examples ('HDFS', 'YARN', 'HBASE') in the schema. The description adds no syntax, case-sensitivity, or naming-convention guidance beyond that, so the baseline of 3 applies.

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 first sentence gives a specific verb and resource: 'Retrieves the status information for a specific service in an Ambari cluster.' That is clear enough for an agent to understand it. However, it never distinguishes this tool from close siblings such as get_service_details or get_cluster_services, so the agent must guess which one to use.

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 'Required Usage Scenarios' block gives concrete conditions for using this tool: a specific service's status, troubleshooting, and health monitoring, with example queries like 'HDFS status'. It does not list any exclusions or name alternative sibling tools to use instead for related tasks such as component-level or cluster-wide status.

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