Skip to main content
Glama

search_hosts_by_os

Find Foreman hosts by operating system name like 'Windows' or 'Oracle Linux'. Specify OS name to get a list of matching hosts, with a default limit of 10 results.

Instructions

Search hosts by operating system (e.g., 'Windows', 'Oracle Linux').

CONTEXT OPTIMIZATION: Returns max 10 results by default. Use specific OS names like 'Windows Server 2022' for targeted results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
os_nameYes
per_pageNo
Behavior3/5

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

The disclosure that 'Returns max 10 results by default' adds transparency beyond a generic search. However, with no annotations provided, the description does not cover permissions, result structure, or side effects. Given the bare annotations, the behavioral information is adequate but incomplete.

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?

The description is concise: three sentences with a clear purpose, a usage hint, and a constraint. Each sentence adds information without redundancy, and the most critical detail (purpose) comes first.

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

Completeness3/5

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

Given no output schema, the description could specify the return format or how to get more than 10 results (e.g., by adjusting per_page). It mentions the default limit but not how to increase it. This is a notable gap for a search tool, but the core functionality is covered.

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 0%, so the description must compensate. It explains the os_name parameter with examples and implies per_page via the default max results. The per_page parameter is not explicitly described beyond the default, but the context of pagination is hinted. This adds value over the schema but does not fully detail parameters.

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 clearly states the tool searches hosts by operating system, with specific examples like 'Windows' and 'Oracle Linux'. This verb+resource combination distinguishes it from sibling tools that search by other criteria (e.g., environment, fact, hostgroup).

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 explicit guidance on when to use this tool versus alternatives like search_hosts_by_environment or list_hosts. The description provides examples of OS names but does not indicate when to prefer this tool over others or any prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/InfraMCP/foreman-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server