Skip to main content
Glama

Set allowlist

set_allowlist
Idempotent

Use when the user wants to set exactly who can view, replacing the current list. REPLACES a site's entire allowlist with the provided email and/or domain entries. This OVERWRITES the existing list, so anyone not in the entries you pass loses access. To add people without dropping the current ones, use add_to_allowlist instead; to take specific people off, use remove_from_allowlist. Pass an empty array to clear it. Each email that was not already on the list receives an invite email. Email entries work on every plan (a Free page can name up to 3 people, Pro has no limit); domain entries need Pro. Clearing the list works on every plan and on a public page.

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>",
      "allowlist": "<allowlist>"
    },
    "name": "set_allowlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe id of the site to update
allowlistYesThe full set of entries to allow; replaces the existing allowlist
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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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)."
  2. First observed

TDQS

A4/5.0
Behavior1/5

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

The description says in caps that the tool OVERWRITES the existing list and that "anyone not in the entries you pass loses access", yet the annotations declare destructiveHint=false. That is a direct conflict on exactly the axis the annotation is supposed to cover, so an agent trusting the annotation could treat a permission-revoking overwrite as non-destructive.

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?

Purpose and the destructive warning are front-loaded, then alternatives, then edge cases and plan constraints. Six sentences with little filler, though the plan-eligibility details at the end could be tightened slightly.

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 a three-parameter tool with a fully documented schema and no output schema, the description covers the mutation semantics, alternatives, the clearing case, invite side effects, and plan gating. An agent has everything needed to call it correctly and safely.

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 still adds real meaning by stating that an empty array clears the list, that email entries are plan-limited (3 on Free, unlimited on Pro), that domain entries require Pro, and that newly added emails trigger invite emails.

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?

States a specific verb and resource ("set exactly who can view") plus the decisive qualifier that the operation replaces the current list. It is immediately distinguishable from add_to_allowlist and remove_from_allowlist, which are named and characterized.

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?

Explicitly says when to use it ("when the user wants to set exactly who can view, replacing the current list"), names both alternatives and the conditions that select them (add without dropping; remove specific people), and adds the empty-array case for clearing. Nothing is left to inference.

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.