Skip to main content
Glama

Get Collection Docs

get_collection_docs
Read-only

Retrieves full parameter-level documentation for every module in an Ansible collection from Galaxy in one API call without installing it, for batch operations needing all module details at once.

Instructions

Get full parameter-level documentation for every module in a collection from Galaxy.

WARNING: output can be very large (100 KB+) for collections with many modules. Use get_collection_manifest first for a compact overview, then get_module_doc for the specific modules you need. Reserve this tool for batch operations that genuinely need all parameter details at once (e.g. skill generation).

Returns all module docs in a single API call without installing the collection. Result shape: {"modules": {fqcn: {module_name, short_description, params, examples, is_api_module}, ...}, "doc_source": "galaxy", "doc_version": str}. 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": {
      "collection_namespace": "<collection_namespace>"
    },
    "name": "get_collection_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoOptional version (e.g. '3.23.0'). If omitted, uses latest.
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. First observedv0.7.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description's job is to add what those don't: it warns that output can be 100 KB+, that everything arrives in a single API call, that the collection is not installed as a side effect, and that failures return {"error": str}. That is genuinely useful operational context. It stops short of 5 only because it doesn't discuss pagination or truncation limits on very large collections.

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?

Front-loaded with the purpose, then the size warning, then the fallback routing, then the result shape — a sensible priority order, and the WARNING label is well placed. The final result-shape sentence is partly redundant given an output schema exists, which keeps this from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only tool with 3 params and full schema coverage, everything an agent needs is present: cost warning, escalation/downgrade path to siblings, no-install side effect, success shape, and error shape. Nothing material 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%, with each parameter documented in-schema (version format, handle requirement on remote vs stdio, namespace form), so the schema already carries the semantic load. The description adds nothing parameter-specific — only the result shape, whose keys (fqcn) hint at what the namespace selects. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Get full parameter-level documentation for every module in a collection from Galaxy.' It also implicitly distinguishes itself from the two dotted siblings (get_collection_manifest for the compact overview, get_module_doc for a single module), so an agent can tell which one it wants without opening a schema.

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

Usage Guidelines5/5

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

Explicit routing guidance: use get_collection_manifest first, then get_module_doc for specific modules, and reserve this tool for batch operations that genuinely need all parameter details (with a concrete example, skill generation). Both the when-to-use and when-not-to-use cases are named alongside their alternatives.

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