Skip to main content
Glama

Set collection access

set_collection_access
Idempotent

Set 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

NameRequiredDescriptionDefault
notifyNotrue: 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_idYesThe site that owns the collection
collectionYesA name from list_site_collections; a new name is created on its first write
forward_toNoOnly 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_modeNo'append_only' for forms/waitlists; 'public_read' for shared lists
workspace_idNoOptional: 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_pausedNoPause (true) or resume (false) appends
records_carry_no_personal_detailNoRequired 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / forward_to / description
      Previous value: -"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 address must be on the website's own domain (the website pson.is or www.pson.is takes inbound@pson.is and nothing else), because that is the domain the workspace proved it controls; such a mailbox receives from the next record with nothing to confirm. 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."New value: +"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."
  2. Changed1 schema field changed
    • addedInput schema / properties / forward_to
      Added value: +{
      +  "description": "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 address must be on the website's own domain (the website pson.is or www.pson.is takes inbound@pson.is and nothing else), because that is the domain the workspace proved it controls; such a mailbox receives from the next record with nothing to confirm. 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.",
      +  "items": {
      +    "maxLength": 254,
      +    "minLength": 3,
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / collection / description
      Previous value: -"The collection name"New value: +"A name from list_site_collections; a new name is created on its first write"
    • addedInput schema / properties / notify
      Added value: +{
      +  "description": "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.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"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)."
  5. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say non-read-only, idempotent, non-destructive; the description adds prerequisite (Pro), authorization scope ('a site you can edit'), side effects (collection created on first write), failure semantics ('a refused list changes nothing'), and rate limits (30 emails/hour, 5 addresses). It does not restate anything contradicting the annotations. Deduction only for leaving some operational surface (what a successful response reports) unstated, which is minor since no output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and access_mode semantics are front-loaded in the first sentence, but the forward_to/domain-rules passage is long, densely nested, and largely repeats the schema's own forward_to description, which is already exhaustive. Useful content, but it is not sized efficiently relative to structured fields that carry the same information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation with idempotent semantics and no output schema, the definition covers authorization, prerequisites, mode semantics, per-parameter behavior, failure behavior, and cross-tool routing. An agent has everything needed to select and invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds genuine meaning: the real-world distinction between the two access_mode values, the marketing-site refusal rule for public_read, what writes_paused actually stops, and the notify/forward_to independence. Most other detail, however, duplicates the already-verbose schema descriptions for notify and forward_to.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Set who can read a collection from the published page and pause/resume writes.' It names the sibling that supplies collection names (list_site_collections) and the sibling that is the alternative for external recipients (add_website_editor), so an agent can place it precisely among the set_* tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use context per mode ('public_read' for a scoreboard/guestbook, 'append_only' for a contact form/waitlist) and explicit when-not constraints (public_read on the marketing site is refused unless records_carry_no_personal_detail is passed, waitlist stays append_only there). It also routes to add_website_editor + notify when the recipient is off-domain, which is a real alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.