Skip to main content
Glama

parse_template

Convert Chef ERB templates to Jinja2 format for Ansible migration, extracting variables to simplify infrastructure configuration transitions.

Instructions

Parse a Chef ERB template file and convert to Jinja2.

Args: path: Path to the ERB template file.

Returns: JSON string with extracted variables and Jinja2-converted template.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It mentions the return format ('JSON string with extracted variables and Jinja2-converted template') but omits critical details like error handling, file access permissions, whether the original file is modified, or performance considerations. For a file-processing tool with zero annotation coverage, this is inadequate.

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 Args and Returns sections. It avoids redundancy, though the 'Args' and 'Returns' labels are slightly verbose. Every sentence adds value, making it efficient and well-organized.

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 the tool's complexity (file parsing and format conversion), no annotations, and an output schema (which handles return values), the description is minimally adequate. It covers purpose and parameters but lacks behavioral details like side effects or error cases, leaving gaps for safe and effective use.

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 'path' as 'Path to the ERB template file', adding meaningful context beyond the schema's generic 'Path' title. Since there's only one parameter, this clarification is sufficient to elevate the score above baseline.

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 ('Parse a Chef ERB template file and convert to Jinja2'), identifies the resource (template file), and distinguishes from siblings like parse_recipe or parse_attributes which handle different Chef components. It precisely communicates the transformation purpose.

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 Chef-to-Jinja2 conversion scenarios but provides no explicit guidance on when to use this versus alternatives like generate_playbook_from_recipe or other parse_* tools. It lacks context about prerequisites or exclusions, leaving usage inferred from the purpose alone.

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