Skip to main content
Glama

Generate Plugin Skill

generate_plugin_skill
Idempotent

Creates a SKILL.md skill package for a specified Ansible plugin, saves it to disk, and returns the content or an error.

Instructions

Generate a skill package for one plugin.

Writes SKILL.md to disk (no scripts/ or assets/). Returns the SKILL.md content as str, or {"error": str} on failure.

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": {
      "plugin_name": "<plugin_name>",
      "plugin_type": "<plugin_type>"
    },
    "name": "generate_plugin_skill"
  }
}

Input Schema

NameRequiredDescriptionDefault
install_toNoOptional absolute path to install the skill to. Defaults to the project skills/ directory (via ANSIBLE_KNOW_SKILLS_DIR, or ANSIBLE_KNOW_PROJECT_DIR/CLAUDE_PROJECT_DIR/cwd + /skills).
plugin_nameYesFully-qualified plugin name (e.g. 'netbox.netbox.nb_lookup')
plugin_typeYesPlugin type (lookup, filter, test, connection, become, strategy, callback, inventory, cache, cliconf, httpapi, netconf, shell, or vars)
collection_handleNoSession handle returned by ensure_collection. Omit on local stdio; required on remote.

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 the skill to"New value: +"Optional absolute path to install the skill 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?

Annotations declare openWorldHint and idempotentHint, so the safety profile is partly covered. The description adds real value beyond that by disclosing the concrete side effect (writes SKILL.md to disk), the deliberate omission of scripts/ and assets/, and the return shape, which tells the agent exactly what artifact to expect.

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?

Four short lines, front-loaded with purpose before the side effect and return note. Slight redundancy in restating the return type when an output schema exists, but nothing else is wasted.

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?

Output schema and full parameter descriptions carry the structural load, so the description only needs purpose and side effects, both present. The one remaining gap is guidance on picking this over the several sibling skill-generation tools.

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 four parameters including install_to and collection_handle are already documented in the schema. The description adds no parameter-level meaning such as how install_to interacts with the default skills directory, 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?

States a specific verb and resource: 'Generate a skill package for one plugin.' The 'one plugin' scoping implicitly separates it from generate_collection_skills and generate_role_skill, but neither sibling is named, so the agent must infer the distinction from the sibling list alone.

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?

Usage is only implied by the 'one plugin' scope; there is no explicit statement of when to choose this over generate_skill or generate_collection_skills, and no prerequisites or exclusions are given.

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