Get role input/output contract
get_role_specGet the full input/output contract of an Ansible role to discover exact fact names and argument specifications before generating a playbook.
Instructions
Get the full input/output contract for a role. Returns argument_specs.yml (inputs) and output_specs.yml (outputs) with a documentation quality grade. Call this for EACH role before generating a playbook to discover the exact fact names the role sets.
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": {
"fqcn": "<fqcn>"
},
"name": "get_role_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqcn | Yes | Fully qualified role name (e.g., 'redhat.rhel_system_roles.firewall') |