Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AI Capability

No security coverage Under active development

Part of the AI ecosystem · 363 projects

AI Capability provides account-aware, read-only discovery of Drupal modules and Tool API tools.

It combines module availability, registered tool definitions, account permissions, and tool requirements checks into structured records. This helps agents distinguish between functionality that is installed, exposed, authorized, and potentially executable.

Features

  • Capability discovery: Lists available modules and registered Tool API tools with their availability states and source information.
  • Account-aware results: Reports Tool API permission checks for the current Drupal account.
  • Requirements checks: Reports whether registered tools satisfy their declared requirements. This does not guarantee a successful execution.
  • Read-only tools: Provides two Tool API operations for discovering and inspecting capabilities.
  • Administration: Includes discovery, configuration, and service-status pages.
  • Diagnostics: Reports missing discovery tools and unexpected requirements-check failures.

Tool API operations

  • ai_capability:discover — Lists capability records, with optional query filtering and a result limit.
  • ai_capability:inspect — Returns details for a specified capability ID, such as module:content_moderation.

Both tools declare read-only, non-destructive operations and require the discover ai capabilities permission. Neither tool executes discovered capabilities.

Integration

AI Capability builds on Tool API rather than introducing a separate discovery or execution framework.

  • Drupal AI agents: The tools can be consumed through Tool API's AI connector.
  • External MCP clients: The tools can be exposed through MCP Server Tool Bridge after the required MCP modules and tool mappings are configured.

Installation and configuration

  1. Install a compatible release and enable the module with drush en ai_capability.
  2. Grant discover ai capabilities to the appropriate roles or service accounts.
  3. Grant administer ai capability only to trusted administrators.
  4. Review the administration page at /admin/config/services/ai-capability.
  5. Search capabilities at /admin/config/services/ai-capability/discover.
  6. Configure the result limit at /admin/config/services/ai-capability/settings.

The ai_capability.settings configuration stores max_results, with a default of 50 and an allowed range of 1–200.

Permissions

  • discover ai capabilities — Allows read-only discovery and inspection.
  • administer ai capability — Allows configuration changes and access to the service overview.

Both permissions are marked as restricted. Discovery does not grant permission to execute any discovered tool.

Requirements

  • Drupal 11.4 or later, within the supported 11.x release line
  • PHP 8.3 or later
  • Tool API (drupal/tool:^1.0@beta)

Scope and limitations

AI Capability does not maintain a separate capability catalogue, execute discovered tools, or replace Drupal's permission system. Capability information is derived from Drupal core and Tool API at request time. Diagnostic information about discovery and requirements-check failures is stored in Drupal state.

Module records report presence and enablement; registered tool records additionally report permission and requirements-check results. These results describe observed availability, not a guarantee that an operation will succeed with particular inputs.

Relationship to Tool API

Tool API defines, discovers, authorizes, and executes individual tools. AI Capability composes module information and Tool API availability signals into records for discovery and inspection.

If Tool API provides equivalent account-aware capability reporting in the future, this module's composition layer may become unnecessary.

Development status: Experimental. The capability record format may change as Tool API evolves.

Ask your assistant about AI Capability

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2026
Latest release
2 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 11 PHP >=8.3 Dec 1, 2026