collection
Manage CMS custom data tables and their records: list, inspect, create, update columns, delete, and query by table name with filters, sorting, and pagination.
Instructions
CMS collections (custom data tables) and their records. Pick the operation with action and pass that action's arguments (help:true returns its full documentation and schema).
list_collections: List all database collections (tables) for the site.
get_collection: Get a specific collection's details including full schema (field names, types, constraints, references) and records
create_collection: Create a new collection (custom data TABLE).
update_collection_columns: Add or change a collection's custom columns.
delete_collection: Delete a collection (table) and all its records by id.
query_collection_records: Query records from a collection (custom data table) by table name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Collection ID [get_collection] | |
| help | No | Return the action's full documentation and argument schema instead of running it | |
| name | No | Display name. [create_collection] | |
| page | No | Page number [list_collections, query_collection_records] | |
| term | No | Search by collection name [list_collections] | |
| limit | No | Items per page [list_collections, query_collection_records] | |
| where | No | Filter object, e.g. [query_collection_records] | |
| action | Yes | Which operation to run | |
| columns | No | Custom columns to add, e.g. [create_collection, update_collection_columns] | |
| order_by | No | Field to sort by (e.g. [query_collection_records] | |
| table_name | No | Table name (snake_case, unique). [create_collection, query_collection_records] | |
| collection_id | No | Collection id (from list_collections / get_collection). [update_collection_columns, delete_collection] |