Skip to main content
Glama

PocketBase MCP Server

by fadlee
MIT License
0

migrate_collection

Modify collection structure by adding, removing, or updating fields, including data transformations and access rules for PocketBase databases.

Instructions

Add, remove, or modify fields from a collection

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
createRuleNoOptional new rule for creating records
dataTransformsNoField transformation mappings for converting old field values to new ones
deleteRuleNoOptional new rule for deleting records
fieldsYesNew collection fields configuration
listRuleNoOptional new rule for listing records
nameNoOptional new collection name if you want to rename the collection
updateRuleNoOptional new rule for updating records
viewRuleNoOptional new rule for viewing records

Input Schema (JSON Schema)

{ "properties": { "collection": { "description": "Collection name", "type": "string" }, "createRule": { "description": "Optional new rule for creating records", "type": "string" }, "dataTransforms": { "description": "Field transformation mappings for converting old field values to new ones", "type": "object" }, "deleteRule": { "description": "Optional new rule for deleting records", "type": "string" }, "fields": { "description": "New collection fields configuration", "items": { "properties": { "name": { "description": "Field name", "type": "string" }, "options": { "description": "Field-specific options", "type": "object" }, "required": { "description": "Whether the field is required", "type": "boolean" }, "type": { "description": "Field type", "enum": [ "text", "number", "bool", "email", "url", "date", "select", "relation", "file", "json", "editor", "autodate" ], "type": "string" } }, "required": [ "name", "type" ], "type": "object" }, "type": "array" }, "listRule": { "description": "Optional new rule for listing records", "type": "string" }, "name": { "description": "Optional new collection name if you want to rename the collection", "type": "string" }, "updateRule": { "description": "Optional new rule for updating records", "type": "string" }, "viewRule": { "description": "Optional new rule for viewing records", "type": "string" } }, "required": [ "collection", "fields" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fadlee/pocketbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server