Collections
- list_collections
- Lists a client site's collections with item counts, when the site last read each one, and the plan's limits.
- get_collection_schema
- Reads a collection's current fields, including edits made in the dashboard, so changes start from the real state.
- plan_collections
- Dry run: previews creating or changing up to 10 collections and returns a plain-text diff. Nothing is saved.
- apply_collection_plan
- Applies the plan you approved. Destructive changes need explicit confirmation; a collection edited since the plan is refused.
- add_collection_items
- Bulk-imports items, like a list hard-coded in your site, with per-item errors. Previews first; saving needs your confirmation.
- list_collection_items
- Lists items, drafts included, with search, filters, sorting, and paging.
- get_collection_code
- Returns TypeScript types and a Next.js fetch example generated from the current fields, plus the public items URL.
- undo_collection_change
- Undoes the most recent schema change after you confirm, when no data written since would be lost.

