Installed module/plugin spec
ansible_module_docRetrieve exact installed Ansible module or plugin options, defaults, aliases, and collection version before writing tasks; avoids version drift errors.
Instructions
Exact options (type, required, default, choices, aliases, suboptions) of a module or plugin as INSTALLED here (ansible-doc), with the collection version that provides it and redirects resolved. Use before writing a task; options drift between collection versions, so training-data guesses are often wrong.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "ansible_module_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Ansible project directory. Default: ANSIBLE_MCP_DIR, else the server's working directory. | |
| name | Yes | FQCN or short name, e.g. community.general.ufw or ufw | |
| type | No | module | lookup | filter | test | callback | connection | inventory | become | cache | vars | strategy | shell | cliconf | httpapi | netconf | keyword | module |
| include_return | No | List documented return values (modules) | |
| include_examples | No | Append the EXAMPLES block | |
| description_chars | No | Truncate each description to this many characters; 0 = no limit (default 160) |