Skip to main content
Glama

Search Collections

search_collections
Read-only

Search Ansible Galaxy collections by keyword to discover modules for a specific platform or use case, ranked by downloads and excluding deprecated entries.

Instructions

Search Ansible Galaxy for collections by keyword.

Returns non-deprecated collections ranked by download count. Use this to discover which collection provides modules for a specific platform or use case.

After finding a collection, use ensure_collection() to install it, then get_module_doc() or get_collection_manifest() to explore its modules.

Returns: {"query": str, "count": int, "collections": [{"namespace": str, "description": str, "tags": [str], "latest_version": str, "module_count": int, "download_count": int, "deprecated": bool, "signed": bool}, ...]} 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": {
      "query": "<query>"
    },
    "name": "search_collections"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional comma-separated Galaxy tags to filter (e.g., 'networking,cloud')
queryYesSearch keyword (e.g., 'netbox', 'cisco ios', 'vmware')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds real behavioral detail beyond them — results are limited to non-deprecated collections, ordered by download count, and failures return an {"error": str} object. It doesn't mention pagination or result-count limits, which would matter for a ranked search.

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?

Purpose is front-loaded in the first line, followed by ranking behavior and a next-steps hint, so an agent can act after the first sentence. The trailing 'Returns:' block partly duplicates the existing output schema, which is the only wasted verbiage.

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 two-parameter read-only search, the description covers what it searches, how results are filtered and ordered, failure shape, and the follow-up tools in the workflow. With an output schema present, return values are already fully specified, so nothing an agent needs 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% and both parameters (query, tags with comma-separated syntax and an example) are already documented there. The description only restates that searching is by keyword, adding no new meaning about the tags filter or query matching behavior, so baseline 3 applies.

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 ('Search Ansible Galaxy for collections by keyword') and adds ranking/filtering semantics ('non-deprecated collections ranked by download count'). The resource name 'collections' is enough to distinguish it from siblings like search_modules, search_plugins and search_standalone_roles.

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

Usage Guidelines4/5

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

Gives an explicit use case ('discover which collection provides modules for a specific platform or use case') and a concrete workflow pointing at ensure_collection(), get_module_doc() and get_collection_manifest(). It stops short of explicitly stating when to prefer a sibling (e.g. search_modules vs search_collections), so not a 5.

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