Skip to main content
Glama

generate_playbook_from_recipe

Convert Chef recipes to Ansible playbooks for infrastructure migration. Processes Ruby recipe files into complete YAML playbooks with tasks, handlers, and variables.

Instructions

Generate a complete Ansible playbook from a Chef recipe.

Args: recipe_path: Path to the Chef recipe (.rb) file.

Returns: Complete Ansible playbook in YAML format with tasks, handlers, and variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recipe_pathYes

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. It mentions the tool generates a 'complete' playbook with tasks, handlers, and variables, which adds some behavioral context. However, it lacks details on permissions, error handling, or limitations (e.g., supported Chef recipe features). For a conversion tool with zero annotation coverage, this is a significant gap.

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 appropriately sized and front-loaded: the first sentence states the purpose clearly, followed by a structured 'Args' and 'Returns' section. Every sentence adds value without redundancy, making it efficient and easy to parse.

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 (true), the description doesn't need to detail return values, and it adequately covers the single parameter. However, as a conversion tool with no annotations, it could benefit from more behavioral context (e.g., conversion accuracy or prerequisites). The description is mostly complete but has minor gaps.

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%, but the description compensates by explaining the single parameter 'recipe_path' as 'Path to the Chef recipe (.rb) file', adding meaning beyond the schema's basic type. This is sufficient for the one parameter, though it could specify format constraints (e.g., absolute vs. relative paths).

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's purpose with a specific verb ('generate') and resource ('complete Ansible playbook'), and distinguishes it from siblings by focusing on Chef recipe conversion rather than analysis, parsing, or other migration tasks. It explicitly mentions the source (Chef recipe) and output format (Ansible playbook in YAML).

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 description provides clear context for when to use this tool: when converting a Chef recipe to an Ansible playbook. It doesn't explicitly mention when not to use it or name alternatives, but the context is sufficiently clear given the sibling tools, which include other conversion tools like 'convert_resource_to_task' or 'generate_inspec_from_recipe'.

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