Skip to main content
Glama

Check task arguments

ansible_check_task_args
Read-onlyIdempotent

Validate Ansible task arguments against installed module docs, catching unknown or missing options, bad types, choices, suboptions, and deprecated settings before writing plays.

Instructions

Check tasks (inline YAML, or a tasks file / playbook) against the INSTALLED module docs: unknown options, missing required ones, bad choices and types (YAML 1.1 aware: unquoted off/yes/0755), suboptions, deprecated options. ansible-doc cannot express cross-option rules (mutually_exclusive, required_if), so the answer says what it could not check; it catches action-plugin modules (copy, template) that ansible-lint's args rule skips.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirNoAnsible project directory. Default: ANSIBLE_MCP_DIR, else the server's working directory.
fileNoTasks file, role tasks file or playbook, relative to dir
lineNoOnly the task whose span contains this line
taskNoYAML: one task mapping, or a list of tasks

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral value beyond them: it discloses a limitation (cross-option rules like mutually_exclusive/required_if cannot be checked and the answer reports what it could not check) and notes YAML 1.1 quirks (unquoted off/yes/0755) that affect results.

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?

Dense and front-loaded with the core purpose, then limitations. It is a single packed sentence-plus-clause, but nearly every phrase earns its place; slightly heavy for one breath but not wasteful.

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?

No output schema exists, so the description carries some of that burden; it hints at the answer's self-reported gaps, which is helpful. Combined with 100% schema coverage and rich annotations, an agent has enough to invoke it correctly, though return shape is only implied.

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 coverage is 100%, so the schema fully documents dir, file, line and task, giving a baseline of 3. The description references the input forms (inline YAML, tasks file/playbook) but adds no format or syntax detail beyond what the schema already provides.

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?

States a specific verb (check) and resource (task arguments) and enumerates the exact scope: inline YAML, tasks file or playbook checked against INSTALLED module docs, covering unknown/missing/typed/deprecated options. It also positions itself against ansible-lint's args rule, so an agent can distinguish it from sibling lint/doc tools.

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?

Names the alternative (ansible-lint's args rule) and the condition under which this tool is preferable (it catches action-plugin modules the linter skips), which is clear usage context. However, it never gives an explicit 'use this when X, not when Y' routing statement or prerequisites, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.