Issue Task Under Review Quiet

#111049Provide internal AI tool provider based on Action API

Benjamin Franzke 10/14/26, 11:26 updated 11/06/26, 10:37

Description

Actions of the Action API (#111046) carry all information AI models need for tool calling: name, description, input and output JSON Schema and whether they are read-only, destructive or idempotent.

Both an MCP server (tools/list, tools/call) and outgoing requests to AI APIs (OpenAI-style tools / function calling) need these tools in the same shape. To avoid each of them building on the action registry separately, add an internal ToolProvider that maps every action to a protocol-independent Tool:

  • a tool name that is valid for AI APIs, derived from type and name of the action
  • summary, description, input and output JSON Schema
  • hints for read-only, destructive and idempotent tools
  • the required scopes, to filter tools by the scopes granted to the caller
  • a handler that invokes the action with validation in the context of the calling user (ToolContext)

The classes are marked internal and serve as a shared base for the MCP server and AI API integrations

Reviews 1

History 27

  1. Gerrit Code Review pushed patch set 27 for main to change 92223 status Accepted Under Review <span data-processor="relativetime" data-value="2026-10-14T12:54:03+00:00" > 10/14/26, 12:54 </span>