Skip to Content
AI & MCPAvailable Tools

Available MCP Tools

The MCP server exposes the following tools. All calls go through RBAC — the AI agent can only access what the associated user’s policies allow.

On the Buildpad Engine backend, the tools below are available, with these differences:

  • Not available: the smtp-settings action send. A call to it answers as an unknown action.
  • Administrators only: collections, fields, relations, roles, permissions, policies, access, cron, extensions, services, cors-settings, smtp-settings, module_access_keys, external-sign-in, workflows and workflow_assignments. The Engine hides them from other users in tools/list, and refuses a call with Admin access required for this tool.
  • Per action: the scope tool is listed to every user. Its reads read_types, read_items and read_configs answer what the user’s policies let them read, as the scope routes do. Its other actions, read_user_roles included, are for administrators only. The logs tool is listed to administrators and to users whose policy grants the system:logs module key; its clear action is for administrators only. In users, update with add_roles or remove_roles is for administrators only.
  • Also available: the per-action tools daas_read_items, daas_create_item, daas_update_item, daas_delete_item, daas_list_collections, daas_get_schema, daas_create_collection, daas_list_files, daas_list_workflows and daas_trigger_transition. daas_delete_item is hidden until deletes are turned on.
  • A change made with a tool takes effect as the same change through the REST API does, with no restart. The Engine records the write in the activity log.

If an agent finds no cron or extensions tool on a Buildpad Cloud project, the project’s data service version is older than these tools. Update the data service version.

The tools logs and assets, the scope actions other than assign_user_role and create_config, add_roles and remove_roles in the users tool’s update, the cron actions recent_history and stats, and the services action run_test need Buildpad Engine 0.1.0-dev.19 or later. On a Buildpad Cloud project, that is data service version 2026.11.05 or later. An older Engine answers these as an unknown tool or action, and refuses an update that has add_roles or remove_roles.

The fields actions create_index, drop_index and rename, update’s schema.add_index and schema.is_unique, and the tools workflows and workflow_assignments need Buildpad Engine 0.1.0-dev.18 or later. On a Buildpad Cloud project, that is data service version 2026.11.04 or later; see Data Service Versions.

Data Tools

ToolActionsAdmin required
itemsread, create, update, delete, aggregateNo
schemaread — collection and field schemaNo
filesread, update, delete, importNo
folderscreate, read, update, deleteNo
assetsRetrieve file content as base64. Takes the file’s id; the user needs read access to the file. A file over 10 MiB is refused: download it from /api/files/assets/:id instead. width, height and quality are accepted, but the stored file is returned unchangedNo
usersread, update — user profiles. In update, data.add_roles and data.remove_roles are lists of role IDs to give or take away at the root scope. A role that the user already has, or does not have, is skipped. The Engine checks every user and role before it changes anything. If a change fails after others were made, the answer names the changes that were madeNo (roles: Yes)
logstail, read, search, stats, clear — server logs. tail returns the newest lines entries (50 by default, 500 at most). read and search return up to limit entries (500 at most); search matches query in the message, ignoring case. Filters: level, source, extensionName, correlation_id, and since and until as RFC 3339 times. stats counts entries by level and source. These are the same entries and filters as GET /api/logsYes, or the system:logs module key

When running the production Docker image, the app runs one worker process per CPU core. The logs tool reads an in-memory, per-worker buffer (last 1,000 entries), so each call returns the output of the single worker that handled the request — not a merged view across all workers.

Schema Management (Admin Only)

ToolDescription
collectionsCreate, update, delete database tables
fieldsCreate, read, update and delete columns. update also adds or drops a column’s index (schema.add_index) and its unique constraint (schema.is_unique), and changes its type and schema. create_index makes an index over one or more columns (optional name and unique), drop_index drops one by name, and rename renames a column (field to new_field) and the metadata that names it: its relations, the collection’s sort, archive and display settings, and permission field lists
relationsManage foreign key relationships

RBAC Management (Admin Only)

ToolFields
rolesname, icon, description
policiesname, icon, description, admin_access, app_access, enforce_tfa, delegate_access, module_access (record of module-key → boolean, e.g. { "system:logs": true })
permissionspolicy, collection, action, fields, permissions (filter), validation, presets
accesspolicy, role (optional), user (optional), resource_uri (optional)
module_access_keysdisplay_name, parent_id, description, key, sort — manage the tree of module-level access keys (e.g. system:logs) that can be granted to policies via module_access

RBAC tools (roles, policies, permissions, access) are always available to admins — they are exempt from the MCP_ALLOW_DELETES restriction since RBAC management inherently requires delete operations. module_access_keys is not exempt: its delete action still requires MCP_ALLOW_DELETES=true.

Multi-Tenancy (Admin Only)

ToolActions
scoperead_types, create_type, update_type, delete_type, read_items, create_item, update_item, delete_item, read_configs, create_config, update_config, assign_user_role, remove_user_role, read_user_roles

On the Engine, read_types, read_items and read_configs are open to any user with read access to the scope collections; the other actions are for administrators only. delete_type and delete_item are deletes: they work only while deletes are turned on (see Delete Behavior). read_user_roles takes a user_id, and optionally a resource_uri to show only the roles at that scope. The users tool’s add_roles gives a role at the root scope only; to give a role inside a scope, use assign_user_role with a resource_uri.

On the Engine, the tool external-sign-in (administrators only) manages sign-in with an identity provider such as XAppHub. Its actions are read and add and remove for the client ids that the tenant trusts, set_default_role (provider, role, domains) and clear_default_role (provider) for the starting role of new accounts, and links for the users who sign in through a provider. See Sign in with XAppHub.

Automation & Extensions (Admin Only)

ToolActions
cronlist, read, create, update, delete, activate, deactivate, clone, run_now, history, recent_history, stats — manage scheduled cron jobs
extensionslist, read, create, update, delete, activate, deactivate, clone — manage runtime extensions
serviceslist, read, create, update, delete, run_tests, run_test, activate, deactivate — manage custom services
workflowsread, create, update, delete — workflow definitions, and their assignments to collections: resource is definition or assignment. Their assignments to collections are the tool workflow_assignments, with the same four actions

Runtime Settings (Admin Only)

ToolActions
cors-settingsget, update — runtime CORS configuration
smtp-settingsget, update, test, send — SMTP configuration and test email. send is not available on the Engine

Cron and extension changes made via MCP take effect cluster-wide: the change is published over the internal message bus, so extension reloads are applied on every worker process, and cron changes are applied by the leader worker that runs the scheduler — regardless of which worker served the request.

System

ToolDescription
system-promptReturns the custom MCP system prompt (configured in AI Settings)

Delete Behavior

Delete operations for data tools are disabled by default. Enable them in MCP settings:

PUT /api/settings/mcp { "mcp_allow_deletes": true }

The switch covers the data tools’ delete actions and the scope actions delete_type and delete_item. The logs action clear is not covered by it; it is for administrators only.

# Environment variable MCP_ALLOW_DELETES=true # Or via API PUT /api/settings/mcp { "mcp_allow_deletes": true }

The switch covers every tool’s delete action, the workflows tool’s included, except the RBAC tools. The fields actions drop_index and rename are not deletes and are not affected by it.

Tool Call Example

{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "items", "arguments": { "action": "read", "collection": "articles", "query": { "filter": { "status": { "_eq": "published" } }, "limit": 10, "sort": ["-date_created"] } } } }