Skip to main content
Glama

Get Plugin Doc

get_plugin_doc
Read-only

Retrieves full structured documentation for a single Ansible plugin, including parameters and examples, and falls back to Galaxy when the collection is not installed locally.

Instructions

Get full structured documentation for one plugin.

Returns: plugin_name, plugin_type, short_description, params, examples, doc_source ('local' or 'galaxy'). Falls back to Galaxy if collection is not installed locally. On failure returns {"error": str}.

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": "get_plugin_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
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. 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 readOnlyHint/openWorldHint annotations, the description discloses the remote fallback to Galaxy (consistent with openWorldHint) and the failure contract, returning {"error": str}. It does not explain the required collection_handle on remote transports or whether results are cached, but it meaningfully extends the annotation layer rather than repeating it.

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 purpose sentence is front-loaded and a compact 'Returns:' block follows, so an agent can scan it quickly. The return-field list partly duplicates the existing output schema, which is the only mildly unnecessary element.

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 read-only lookup with an output schema and fully documented parameters, the description covers purpose, fallback behavior, and error shape. Minor gaps remain around failed lookups (not-found vs transport error) and any caching, but nothing essential to calling the tool 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 plugin_name format, the plugin_type enumeration, and collection_handle's local/remote behavior are already documented in the schema. The description adds no new input-side meaning, leaving this at the baseline for fully-covered schemas.

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 description states a specific verb and resource ('Get full structured documentation for one plugin'), which clearly separates it from doc tools for other resource kinds such as get_module_doc or get_role_doc. It does not explicitly name those siblings as alternatives, so differentiation relies on the agent noticing the resource noun.

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: the agent must already know a fully-qualified plugin name, which suggests this is a follow-up to a search tool like search_plugins, but that workflow is never stated. The local-vs-Galaxy fallback gives some operational context, yet there is no explicit when-to-use/when-not guidance against fetch_doc or get_collection_docs.

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