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.

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 base64No
usersread, update — user profilesNo
logstail, read, search, stats, clear — server logsYes

Schema Management (Admin Only)

ToolDescription
collectionsCreate, update, delete database tables
fieldsCreate, update, delete table columns
relationsManage foreign key relationships

RBAC Management (Admin Only)

ToolFields
rolesname, icon, description
policiesname, icon, description, admin_access, app_access, enforce_tfa, delegate_access
permissionspolicy, collection, action, fields, permissions (filter), validation, presets
accesspolicy, role (optional), user (optional), resource_uri (optional)

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.

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

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:

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

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"] } } } }
Last updated on