Skip to main content
Glama

searchCollections

Read-only

Find Ansible collections by keywords, namespace, name, or tags across Red Hat Automation Hub and Galaxy, returning versions, sources, descriptions, tags, and required ansible-core.

Instructions

Search Ansible collections on Red Hat Automation Hub (Certified and Validated content) and community Galaxy by keywords, namespace, name, and tags. Returns each match's namespace.name, version, source, description, tags, and required ansible-core. Default sources: published and validated with AAH_TOKEN set, galaxy without.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "searchCollections"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoExact collection name (without the namespace), for example 'rhel_system_roles'
pageNoPage of results, from 0
tagsNoTags that must all match, for example ['linux', 'security']
limitNoMaximum characters to return in this call. Default 30000 keeps responses under typical MCP tool-result token caps.
offsetNoCharacter offset into the rendered response. Default 0. Use the value from the previous call's "[truncated]" footer to fetch the next chunk.
signedNotrue: only signed collection versions
sourcesNoSources to search: published, validated, galaxy
keywordsNoFull-text keywords matched against names, descriptions, tags, and content names, for example 'acme certificate' or 'idm'
namespaceNoExact namespace, for example 'redhat', 'ansible', 'community', 'cisco'
deprecatedNotrue: only deprecated collections; false: exclude them. Default: both.
maxResultsNoResults per source host, 1-100 (default 20)
highestOnlyNoReturn only the highest version of each collection (default true); false lists every matching version

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 safety profile is covered. The description adds genuinely useful behavior beyond that: which sources are searched by default and how that changes when AAH_TOKEN is set, plus the exact fields returned per match. It does not cover rate limits or auth failure behavior, which keeps it at a 4.

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?

Three compact sentences: what it searches, what it returns, and the default source behavior. The capability statement is front-loaded and nothing is redundant. The return-field enumeration is long but earns its place since there is no output schema.

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?

With no output schema, the description correctly fills that gap by listing returned fields (namespace.name, version, source, description, tags, required ansible-core). The AAH_TOKEN-dependent default sources are disclosed. Remaining gaps are minor: no mention of auth requirements beyond the token hint or of how many sources are queried in parallel.

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 coverage is 100%, so the schema already documents all 12 parameters thoroughly, including pagination and truncation semantics. The description adds only one piece of extra meaning, the default source set depending on AAH_TOKEN, which is a modest increment over the schema's own 'sources' description, making the baseline 3 appropriate.

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 opens with a specific verb and resource: 'Search Ansible collections on Red Hat Automation Hub ... and community Galaxy', and names the facets it searches (keywords, namespace, name, tags). It is clear enough to separate from a single-collection retrieval sibling, but it never explicitly distinguishes itself from those siblings, so it stops short of a 5.

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: an agent can infer 'search when you don't know the exact collection', but there is no explicit when-to-use or when-not statement and no named alternative such as a direct get-by-name tool. The default-source sentence is contextual configuration, not usage routing, so the guidance stays at the minimum-viable level.

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