Skip to main content
Glama

Generate Collection Skills

generate_collection_skills
Idempotent

Batch-generate skills for every module and plugin in an Ansible collection, while updating MANIFEST.json and AGENTS.md for cross-agent discovery.

Instructions

Batch generate skills for an entire collection.

Generates/updates the collection MANIFEST.json as a byproduct. Updates AGENTS.md in the project root with a managed section listing available collections for cross-agent discovery. Returns {"succeeded": int, "failed": int, "total": int, "manifest": dict, "collection_skill": str}, or {"error": str} on failure.

Module/plugin docs use batched ansible-doc calls. Names missing from a batch (or a hard batch failure) are counted in failed; partial batch success still writes skills for resolved names.

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": {
      "collection_namespace": "<collection_namespace>"
    },
    "name": "generate_collection_skills"
  }
}

Input Schema

NameRequiredDescriptionDefault
install_toNoOptional absolute path to install skills to. Defaults to the project skills/ directory (via ANSIBLE_KNOW_SKILLS_DIR, or ANSIBLE_KNOW_PROJECT_DIR/CLAUDE_PROJECT_DIR/cwd + /skills).
collection_handleNoSession handle returned by ensure_collection. Omit on local stdio; required on remote.
collection_namespaceYesCollection namespace (e.g. 'netbox.netbox')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / collection_handle
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Session handle returned by ensure_collection. Omit on local stdio; required on remote."
      +}
  2. Changed1 schema field changedv0.8.0
    • changedInput schema / properties / install_to / description
      Previous value: -"Optional absolute path to install skills to"New value: +"Optional absolute path to install skills to. Defaults to the project skills/ directory (via ANSIBLE_KNOW_SKILLS_DIR, or ANSIBLE_KNOW_PROJECT_DIR/CLAUDE_PROJECT_DIR/cwd + /skills)."
  3. First observedv0.7.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the idempotent/openWorld annotations, the description discloses meaningful side effects: it writes MANIFEST.json and injects a managed section into the project-root AGENTS.md, which the agent would not otherwise know. It also explains partial-batch semantics and how unresolvable names are counted into 'failed'. Minor gaps remain around permissions or limits, but the side-effect disclosure is substantive.

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 core purpose is front-loaded in one sentence, followed by side effects and return shape in a clean order. The closing paragraph about batched ansible-doc calls is relevant but slightly dense, and the inline return-shape literal is a bit heavy given an output schema exists.

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?

For a batch tool with remote/local handle semantics, the description covers side effects, partial-failure behavior, and return values, so an agent has enough to call it correctly. Restating the return shape is redundant given the output schema, but nothing important is missing.

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 100%, so all three parameters (install_to, collection_handle, collection_namespace) are already documented in the schema. The description adds no additional meaning about parameter formats or interactions, so the baseline of 3 applies.

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 first sentence gives a specific verb+resource+scope: batch-generate skills for an entire collection, which implicitly separates it from the per-item siblings (generate_skill, generate_role_skill, generate_plugin_skill). It does not explicitly name those alternatives, so the differentiation is inferred from scope rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'batch ... entire collection' framing implies when this tool is appropriate, and the note about collection_handle being required on remote is useful context. However, there is no explicit when-to-use / when-not guidance or a named alternative for generating a single skill, so routing must be inferred.

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