Skip to main content
Glama

Let customers see or add to a collection

set_collection_portal_access
Idempotent

Choose what the site's own signed-in CUSTOMERS can do with one collection in their customer area (/account): see their own records ("owned") or nothing ("none"), open new ones themselves (customer_can_create), and which fields they may write (customer_writable_fields; everything else stays the business's). Each customer only ever sees records they own. The same setting as the collection's "Client portal access" in Mission Control; only what you name changes. Customer login must be on (update_customer_login_settings). For a complete support-ticket portal use set_up_support_portal instead. Visitors see it after the next publish.

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_type": "<collection_type>"
    },
    "name": "set_collection_portal_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoThe heading the customer area shows for this collection, e.g. "Your tickets".
site_idYesThe site the collection belongs to
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
collection_typeYesThe collection's slug, as list_collections returns it (e.g. "blog", "menu", "products", "faqs").
customer_accessNo"owned": each signed-in customer sees their own records of this collection in the customer area (/account). "none": staff only.
allow_signed_outNoVisitors who are not signed in may open one with their email (support tickets); it belongs to that email's customer and they get a sign-in link. Needs customer_can_create.
customer_can_createNoSigned-in customers may open new records here themselves (a ticket, a request). Implies "owned".
customer_writable_fieldsNoThe ONLY fields a customer may write, by field name (list_collections shows them). Replaces the list; [] makes it read-only for customers. The record title is always theirs to set when they open one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only but non-destructive, idempotent write, so the safety profile is covered. The description adds useful behavioral context beyond that: the customer-login prerequisite, per-customer visibility limited to owned records, the publish-timing effect, and partial-update semantics. It stops short of describing failure modes or the response body, which keeps it below a 5.

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

Conciseness4/5

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

The scope statement is front-loaded and every sentence carries operational information, but the paragraph is dense with parenthetical asides and quoted values, which slightly slows scanning compared with a cleaner structure.

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

Completeness4/5

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

For an 8-parameter configuration tool with no output schema, the description covers prerequisites, partial-update behavior, visibility outcomes, publish timing, and related tools well. A brief note on what the tool returns or how to verify current settings would make it fully self-contained.

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 the baseline is 3; the description earns an extra point by explaining the interplay between parameters — that customer_can_create implies 'owned', that customer_writable_fields replaces the list with [] making it read-only, and that the record title is always customer-set. Much of this is echoed in the schema descriptions, so it is reinforcement rather than novel meaning.

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?

The description names a specific verb and resource — configuring what signed-in customers can do with one collection in the customer area — and explicitly anchors it to the equivalent 'Client portal access' setting in Mission Control, so an agent can identify the operation without opening the schema.

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?

It names concrete alternatives and the conditions that select them: set_up_support_portal for a complete support-ticket portal, update_customer_login_settings for the login prerequisite, and the note that visitors see the change only after the next publish. It also states that only the named settings change, which tells the agent this is a partial update rather than an overwrite.

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.

Resources