Skip to main content
Glama
johsem

Semaphore UI MCP server

by johsem

list_task_ansible_hosts

Read-onlyIdempotent

Retrieve the Ansible hosts associated with a specific task in a Semaphore UI project by supplying the project and task IDs.

Instructions

Get Ansible Task Hosts. GET /project/{project_id}/tasks/{task_id}/ansible/hosts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered structurally. The description adds nothing beyond that—no mention of pagination, empty results for pending tasks, availability only after a certain task stage, or permissions. The endpoint path is the only marginal addition.

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?

Two short fragments with zero filler, and the resource is front-loaded before the endpoint. The brevity is efficient rather than padded, though it edges toward under-specification.

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

Completeness5/5

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

For a two-parameter read tool with full annotation coverage and no output schema, the description does not need to explain return values or safety. Still, it leaves the agent without any sense of the response shape or failure modes, which a single added sentence could have fixed.

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% for both required integer parameters, so the description carries the full burden—but it only echoes the path placeholders {project_id} and {task_id} without explaining valid values, whether the task must belong to the project, or what the minimum-1 constraint implies. It adds essentially no meaning beyond the schema field names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a generic verb 'Get' with the resource 'Ansible Task Hosts', which narrowly restates the tool name. The REST endpoint path confirms it returns hosts associated with a specific task, but it never explains what a 'host' means here (inventory hosts targeted by the Ansible run) or how it differs from the sibling list_task_ansible_errors.

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?

There is no statement of when to use this tool, no prerequisites, and no pointer to alternatives such as list_task_stages, list_task_ansible_errors, or get_task. The agent must infer the use case entirely from the name.

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

Deploy Server

Other Tools