Skip to main content
Glama

convert_chef_search_to_inventory

Convert Chef search queries into Ansible inventory patterns and groups for infrastructure migration.

Instructions

Convert a Chef search query to Ansible inventory patterns and groups.

Args: search_query: Chef search query (e.g., "role:web AND environment:production").

Returns: JSON string with Ansible inventory patterns and group definitions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
search_queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the input and output types but lacks details on error handling, performance, or constraints (e.g., rate limits, authentication needs). The description does not contradict annotations, but it is insufficient for a mutation-like conversion tool.

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 description is front-loaded with the core purpose, followed by structured sections for Args and Returns. It is efficient with minimal waste, though the formatting could be slightly more streamlined (e.g., integrating the example directly into the main sentence).

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?

Given the tool has an output schema (Returns JSON string), the description does not need to detail return values. It covers the input parameter semantics adequately. However, for a conversion tool with no annotations, it could benefit from more behavioral context (e.g., transformation rules or limitations).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 adds meaning by explaining the parameter 'search_query' with an example ('role:web AND environment:production'), clarifying its format beyond the schema's basic string type. With only one parameter, this provides adequate semantic context.

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 specific action ('Convert') with precise resources ('Chef search query' to 'Ansible inventory patterns and groups'), distinguishing it from sibling tools like 'convert_chef_databag_to_vars' or 'generate_inventory_from_chef_environments' by focusing on search queries rather than databags or environments.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for converting Chef search queries to Ansible formats, but does not explicitly state when to use this tool versus alternatives like 'generate_awx_inventory_source_from_chef' or 'generate_dynamic_inventory_script'. It provides basic context without exclusions or detailed guidance.

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/kpeacocke/souschef'

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