Skip to main content
Glama

get_request_tasks

Read-only

Retrieve host-by-host task details for an Ambari request to identify failed, pending, or in-progress roles, with optional hostname and status filters.

Instructions

Retrieves task-level details for a specific Ambari request (host-by-host breakdown).

[Tool Role]: Provides granular, per-host task information for an Ambari request, going beyond the summary level offered by get_request_status.

[Core Functions]:

  • List all tasks (host/role/status/timing) belonging to a request

  • Filter tasks by status (e.g. FAILED, IN_PROGRESS) or exclude a status (not:COMPLETED)

  • Filter tasks by hostname to inspect a specific host

  • Identify which hosts/roles are failing, pending, or still running

[Required Usage Scenarios]:

  • When users want to know which hosts or roles failed/are pending in an operation

  • When debugging a partially-failed bulk operation (e.g. "Start all services")

  • When users ask for task details, host-level progress, or remaining tasks

  • When request progress is near 100% but not complete and user wants to know what's left

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": {
      "request_id": "<request_id>"
    },
    "name": "get_request_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesID of the Ambari request to inspect (integer string)
host_filterNoOptional hostname substring to restrict results to matching hosts.
status_filterNoOptional status to filter on. Use exact status names (PENDING, IN_PROGRESS, COMPLETED, FAILED, ABORTED, TIMEDOUT) or prefix with "not:" to exclude that status (e.g. "not:COMPLETED" shows only unfinished tasks).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.8.2
    • addedInput schema / properties / host_filter / description
      Added value: +"Optional hostname substring to restrict results to matching hosts."
    • addedInput schema / properties / request_id / description
      Added value: +"ID of the Ambari request to inspect (integer string)"
    • addedInput schema / properties / status_filter / description
      Added value: +"Optional status to filter on. Use exact status names (PENDING,\nIN_PROGRESS, COMPLETED, FAILED, ABORTED, TIMEDOUT) or prefix with \"not:\"\nto exclude that status (e.g. \"not:COMPLETED\" shows only unfinished tasks)."
  2. Addedv3.7.5

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds value beyond that by disclosing the returned dimensions (host/role/status/timing) and the filter negation semantics ('not:COMPLETED shows only unfinished tasks'). It does not mention result-size limits or pagination for requests touching many hosts, which is the remaining gap.

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?

Front-loaded first sentence is excellent, but the bracketed section headers and bullet lists are heavy for a three-parameter read tool. Some bullets are near-duplicates — 'Identify which hosts/roles are failing, pending, or still running' overlaps with the first usage scenario about which hosts or roles failed or are pending.

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?

An output schema exists, so return-value details are not required, and the description covers purpose, filters, and triggering situations for a simple read tool. It is essentially complete; only edge-case behavior for very large task lists is unaddressed.

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 schema itself already documents request_id format, hostname substring matching, and the exact status names plus the 'not:' prefix. The description largely restates those filters ('Filter tasks by status... or exclude a status') rather than adding new meaning, so the baseline of 3 applies.

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 first sentence names a specific verb and resource ('Retrieves task-level details for a specific Ambari request') and immediately adds the scope qualifier 'host-by-host breakdown'. The Tool Role section explicitly positions it against the sibling get_request_status ('going beyond the summary level'), so an agent can distinguish the two without opening either 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?

The 'Required Usage Scenarios' section gives four concrete triggering conditions (identifying failing/pending hosts, debugging partially-failed bulk operations, host-level progress, near-complete requests). It also names the coarser alternative get_request_status implicitly. What's missing is an explicit inverse statement such as 'use get_request_status instead when you only need overall request state'.

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