Experimental project

This is a sandbox project, which contains experimental code for developer use only.

AI Capability lets Drupal modules describe what they can do once, so AI assistants, workflow tools and other systems can find and use those actions safely, without a custom integration for each one. It builds on Tool API and fits the Drupal Rosetta initiative: one description, usable inside and outside Drupal.

If you're new to Drupal: modules add features such as creating content or sending email. This module gives each of those features a clear, machine-readable "label" (what it does, what it needs, who may use it), so an AI agent or automation tool can discover and call it the same way every time, with your site's permissions still in charge.

Features

  • Capability registry. One place that lists every action your site offers to agents, with its inputs, outputs and required permissions.
  • Built on Tool API. Uses Tool API definitions and #[ToolMethod] attributes, not a parallel system.
  • One description, many callers. The same capability can be used by Drupal AI agents, ECA, FlowDrop, Drush and MCP clients such as Claude or ChatGPT.
  • Governed access. Every call goes through Drupal's permission checks, so an agent can never do more than its account is allowed to.
  • Discovery. Exports capability descriptions in standard formats so external agents can find them. [Confirm which formats: JSON Schema, MCP, OSSA, others.]
  • Audit-ready. [Confirm: records who or what called a capability, when, and with what result.]

Use cases:

  • Letting an AI assistant create or update content on your site, within set permissions.
  • Exposing site actions to workflow engines without writing custom REST endpoints.
  • Giving outside AI tools a safe, documented list of what your site can do.
  • Keeping a reviewable record of agent actions for compliance.

Post-Installation

  1. Enable the module: drush en ai_capability.
  2. Go to Configuration > AI > Capabilities (/admin/config/ai/capability) [confirm path] to see the capabilities your installed modules provide.
  3. Choose which capabilities are exposed to which callers (internal agents, MCP clients, workflows).
  4. Grant the matching permissions to the roles or service accounts your agents use.
  5. Test a capability from Drush: drush tool:run [capability_id] [confirm].

Nothing is exposed until you enable it. Start with read-only capabilities and add write actions once you're comfortable.

Additional Requirements

  • Drupal [10.3 / 11] or later.
  • Tool API.
  • [Any other required modules or libraries.]
  • AI (Artificial Intelligence): run Drupal AI agents that use your capabilities.
  • MCP Server [confirm project name]: make capabilities available to outside AI clients.
  • ECA: use capabilities in no-code automations.
  • AI Context: give agents governed context alongside capabilities.

Similar projects

Tool API defines and runs individual tools; AI Capability builds on it to add a site-wide registry, governance and discovery [confirm]. Agent-specific modules such as the AI module's function calls or MCP Server's tool configuration expose actions to one kind of caller; AI Capability aims to describe them once for all callers.

Status: Experimental and under active development, tracking Tool API and the Rosetta initiative. Feedback is welcome in the issue queue.

Supporting organizations: 

Project information

  • Created by flux423 on , updated