Skip to main content
Glama

get_service_components

Read-only

Retrieve detailed component information, states, and host assignments for a specific Ambari service to troubleshoot service health, scaling, or component breakdown.

Instructions

Retrieves detailed components information for a specific service in the Ambari cluster.

[Tool Role]: Dedicated tool for retrieving service component details and host assignments.

[Core Functions]:

  • List all components for a service, including state and category

  • Show host assignments and instance counts

  • Provide formatted output for LLM automation and troubleshooting

[Required Usage Scenarios]:

  • When users request service component details or host info

  • When troubleshooting service health or scaling

  • When users mention component list, host assignments, or service breakdown

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_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_nameYesName of the service (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 (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?

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context about what is returned (state, category, host assignments, instance counts) and that output is LLM-formatted, but it says nothing about permissions, failure modes when a service name is invalid, or latency/pagination considerations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and useful, but the bracketed [Tool Role] and [Core Functions] sections largely restate the first sentence and the third bullet ('formatted output for LLM automation') is filler. The markdown scaffolding consumes space without adding information an agent could act on.

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 one-parameter read-only tool with full schema coverage, existing annotations, and an output schema, the description covers purpose, triggers, and the shape of the result well enough to call correctly. The remaining gap is sibling differentiation, which matters given the many adjacent get_service_* 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?

There is a single required parameter with 100% schema coverage and concrete examples ('HDFS', 'YARN', 'HBASE') already in the schema. The description only says 'for a specific service', adding no meaning about case sensitivity, accepted aliases, or behavior for unknown services, so the baseline 3 is appropriate.

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 states a specific verb and resource: 'Retrieves detailed components information for a specific service in the Ambari cluster', and the [Tool Role] line reinforces it as the component/host-assignment tool. It does not explicitly contrast itself with likely neighbors such as get_service_details or get_service_status, so an agent must infer the boundary between 'components' and 'service details'.

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 triggers: user requests component details or host info, troubleshooting service health or scaling, mentions of component list/host assignments. That is clear positive guidance, but there is no exclusion or named alternative, so an agent facing 'show me HDFS status' must still guess between this and get_service_status.

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