Set collection access
set_collection_accessSet who can read a collection from the published page and pause/resume writes. access_mode: 'public_read' (anyone reads: a scoreboard/guestbook) or 'append_only' (visitors append but only the owner reads: a contact form / waitlist; submissions are never readable by other visitors). On the marketing site public_read means anyone on the internet, so it is refused unless you pass records_carry_no_personal_detail true, which you answer with the owner, and the waitlist collection stays append_only there whatever is asked. writes_paused stops new appends. notify true tells the people who run the site about each new record. forward_to sends each new record of a website's form to mailboxes on the website's own domain, or on its parent domain once the parent holds the workspace's form-mail TXT record. The collection name is a name from list_site_collections, or a new name: a collection is created on its first write. Needs Pro; scoped to a site you can edit.
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": {
"site_id": "<site_id>",
"collection": "<collection>"
},
"name": "set_collection_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notify | No | true: tell the people who run the site about each new record, with an in-app notice and an email that offers a reply to the address submitted (at most 30 emails an hour, then one notice that more are waiting). On a website that is its editors and the workspace owners. false stops it. Omit to leave it as it is. The contact form and waitlist recipes turn it on. | |
| site_id | Yes | The site that owns the collection | |
| collection | Yes | A name from list_site_collections; a new name is created on its first write | |
| forward_to | No | Only for a website on its own domain: the mailboxes that are emailed each new record, as the whole list wanted (at most 5; an address left out is removed, [] removes all). Every new address must be on the website's own domain (the website pson.is or www.pson.is takes inbound@pson.is; new.pson.is takes team@new.pson.is), because that is what the workspace showed it controls. A website on a subdomain also takes its parent, the registrable domain above it (new.pson.is and a.b.pson.is take tandri@pson.is; shop.example.co.uk takes sales@example.co.uk; tenant.vercel.app has no parent), once the TXT record list_site_collections names in `forward_parent_domain` is at that domain: until then such an address is refused with the record, for the person to add to their DNS. A subdomain of either (info@mail.pson.is) is never taken. Each new domain must already receive email (have mail records), which a website subdomain often does not. An admitted mailbox receives from the next record with nothing to confirm. A refused list changes nothing. An address anywhere else is refused: to email someone at Gmail or another company, add them as an editor of the website instead (add_website_editor) and set notify true. Independent of notify. Each email carries a link its reader can stop it with. Omit to leave the list as it is. | |
| access_mode | No | 'append_only' for forms/waitlists; 'public_read' for shared lists | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). | |
| writes_paused | No | Pause (true) or resume (false) appends | |
| records_carry_no_personal_detail | No | Required to set public_read on the marketing site: confirm with the owner, in words, that these records carry no name, email or other personal detail, because public_read there means anyone on the internet can read every one of them. |