Skip to main content
Glama

convert_inspec_to_test

Convert InSpec controls to Ansible test format for infrastructure compliance testing during Chef-to-Ansible migration.

Instructions

Convert InSpec controls to Ansible test format.

Args: inspec_path: Path to InSpec profile or control file. output_format: Output format ('testinfra' or 'ansible_assert').

Returns: Converted test code or error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inspec_pathYes
output_formatNotestinfra

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 full burden. It mentions the tool 'converts' and returns 'converted test code or error message', which implies a read-only transformation without side effects. However, it lacks details on permissions needed, file system access, error handling, or performance characteristics (e.g., large file handling).

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 appropriately sized and front-loaded: the first sentence states the core purpose, followed by a structured 'Args' and 'Returns' section. Every sentence adds value, though the structure could be more integrated (e.g., merging the bullet points into prose). No wasted words.

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 2 parameters with 0% schema coverage and an output schema (implied by 'Returns'), the description is moderately complete. It explains parameters and return values, but lacks behavioral context (e.g., conversion process details, error conditions). With no annotations, it should do more to cover mutation risks or dependencies.

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 adds meaning by explaining 'inspec_path' as a path to an InSpec profile or control file and 'output_format' with allowed values ('testinfra' or 'ansible_assert'), which clarifies beyond the schema's basic types. However, it doesn't cover parameter constraints (e.g., file existence, format specifics), leaving gaps.

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

Purpose4/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: converting InSpec controls to Ansible test format. It specifies the verb 'convert' and the resources involved (InSpec controls to Ansible test format). However, it doesn't explicitly differentiate from sibling tools like 'generate_inspec_from_recipe' or 'convert_resource_to_task', which are related but not identical conversion tools.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing InSpec files), exclusions, or compare it to sibling tools like 'generate_inspec_from_recipe' (which does the reverse conversion). The only implied usage is for format conversion, but no context is given.

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