Skip to main content
Glama
vsl8
by vsl8

validate-playbook

Check Ansible playbook syntax for errors using ansible-playbook --syntax-check. Specify playbook path and optional inventory.

Instructions

Validate playbook syntax using ansible-playbook --syntax-check.

Args: playbook_path: Path to the playbook file. inventory: Optional inventory path or host list. cwd: Optional working directory to run the command in. Returns: A dict with keys: ok (bool), rc, stdout, stderr

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
inventoryNo
playbook_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description reveals the underlying command and return structure (ok, rc, stdout, stderr). It lacks mention of prerequisites like Ansible installation or potential side effects, but is fairly transparent about the execution and output.

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, with the main purpose stated first, followed by a bullet list of arguments and return values. Every sentence contributes meaning without redundancy.

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's simplicity and the presence of an output schema, the description covers purpose, parameters, and return format sufficiently. It could be slightly more complete by noting that it runs a command-line tool and expects Ansible to be installed, but it is adequate for a validation tool.

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?

The schema description coverage is 0%, so the description's parameter explanations add value. It states 'Path to the playbook file' for playbook_path, 'Optional inventory path or host list' for inventory, and 'Optional working directory' for cwd. While minimal, they provide meaning beyond the schema's names and types.

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: 'Validate playbook syntax using ansible-playbook --syntax-check.' It identifies a specific verb (validate), resource (playbook syntax), and method. This distinguishes it from sibling tools like 'ansible-playbook' (execution) and 'validate-yaml' (general YAML validation).

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 does not provide guidance on when to use this tool versus alternatives. It omits typical usage context like 'use before running a playbook' or 'do not use for runtime errors.' Among sibling tools, there is no explicit differentiation.

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/vsl8/ansible-mcp-server'

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