Skip to main content
Glama

Set sharing permissions

set_visibility

Set visibility for exactly one proposal_id or folder_id. private means only workspace members can open it (any signed-in member; in a personal workspace that is just the user) — everyone else sees a blocked page; passcode requires a passcode — omit passcode and let the platform generate one (or keep the current one); the result never shows it: the user copies it from the author bar at the top of the page or the console's "Who can view". Never ask the user to say a passcode in the chat and never repeat one; public allows anyone with the URL. Confirm external sharing with the user first. Changes take effect immediately. A shared folder grants access to its included live pages even when an item’s link is private. Excluded items and legacy link permissions remain separate. One stable URL per page; reset_default_link replaces it. Reading records identify devices, not named people. For a page, allow_copy turns copying with copy_proposal on or off (omit it to leave it unchanged). Pass home: true (and no proposal_id / folder_id) to set the workspace home page at https://.24hw.cn/ — every workspace has one, members-only by default, owner only. The home page lists only pages and folders that are themselves public or passcode-protected, so opening it never exposes a private page. When a folder is opened, the result names pages that are private on their own but will be seen through the folder; pass that on to the user.

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": {
      "visibility": "<visibility>"
    },
    "name": "set_visibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
homeNoSet the visibility of the workspace home page. When true, do not pass proposal_id / folder_id
passcodeNoCustom passcode: 4–16 letters or digits. Usually omit it: the platform generates or keeps one and the author sees it in the console. Never ask the user to say a passcode in the chat.
folder_idNoChange folder visibility, sharing all included pages through one link. Supply exactly one of folder_id or proposal_id.
allow_copyNoPages only: whether people with the link may copy it into their own workspace with copy_proposal (omit to leave unchanged).
people_addNovisibility=people: names of the people to let in, e.g. ["Zhang San", "Li from finance"]. Each gets a link that only opens in their own WeChat (they confirm the first time; on a computer they scan a code), and the page becomes private. Sending each link to its person is outward-facing, so confirm with the user first. Personal feature (30 people per page; unlimited on Pro)
visibilityYesprivate = workspace members only · passcode · public = anyone · people = specific people only (pages only; use people_add / people_remove, or neither to list)
proposal_idNoChange one page’s visibility. Supply exactly one of proposal_id or folder_id.
people_removeNovisibility=people: link_ids to remove (shown in the list); those links stop working at once

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / passcode / description
      Previous value: -"Custom passcode: 4–16 letters or digits. Omit to generate or retain a passcode."New value: +"Custom passcode: 4–16 letters or digits. Usually omit it: the platform generates or keeps one and the author sees it in the console. Never ask the user to say a passcode in the chat."
    • addedInput schema / properties / people_add
      Added value: +{
      +  "description": "visibility=people: names of the people to let in, e.g. [\"Zhang San\", \"Li from finance\"]. Each gets a link that only opens in their own WeChat (they confirm the first time; on a computer they scan a code), and the page becomes private. Sending each link to its person is outward-facing, so confirm with the user first. Personal feature (30 people per page; unlimited on Pro)",
      +  "items": {
      +    "maxLength": 32,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 30,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / people_remove
      Added value: +{
      +  "description": "visibility=people: link_ids to remove (shown in the list); those links stop working at once",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / visibility / description
      Added value: +"private = workspace members only · passcode · public = anyone · people = specific people only (pages only; use people_add / people_remove, or neither to list)"
    • changedInput schema / properties / visibility / enum
      Previous value: -[
      -  "private",
      -  "passcode",
      -  "public"
      -]New value: +[
      +  "private",
      +  "passcode",
      +  "public",
      +  "people"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / home
      Added value: +{
      +  "description": "Set the visibility of the workspace home page. When true, do not pass proposal_id / folder_id",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / allow_copy
      Added value: +{
      +  "description": "Pages only: whether people with the link may copy it into their own workspace with copy_proposal (omit to leave unchanged).",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the generic annotations, it discloses important behavior: non-members see a blocked page, passcodes are generated or preserved and never returned, changes take effect immediately, shared folders grant access to included pages, excluded items and legacy permissions remain separate, and home-page contents are filtered to non-private items. It also adds operational warnings such as confirming external sharing and forwarding private-page warnings from folder results.

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 action is front-loaded, but the description is a dense single paragraph with many semicolon-separated clauses and some duplication of schema descriptions. It is informative but harder to scan than necessary for an eight-parameter tool.

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 complex mutation tool with no output schema and broad side effects, the description covers the main modes, critical confirming behavior, folder sharing implications, home-page behavior, and result interpretation. Remaining parameter details, including the people mode, are fully available in the schema, so the definition is complete enough for correct use.

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, but the description adds cross-parameter meaning: exactly one of proposal_id or folder_id, home:true requiring neither, passcode omission/current-value behavior, page-only allow_copy, and folder inheritance semantics. It does not describe people_add or people_remove in prose, though those are fully documented in the schema.

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

Purpose4/5

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

The first sentence names the exact action and constrained resources: set visibility for exactly one proposal_id or folder_id. It clearly explains private, passcode, public, and home-page behavior, but it never mentions the people visibility mode in the prose and does not distinguish itself from sibling set_home.

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

Usage Guidelines4/5

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

The description gives strong practical guidance: confirm external sharing, never ask for or repeat a passcode, omit passcode to generate or keep one, pass home:true without page/folder IDs, and use allow_copy only for pages. It lacks explicit guidance on when to choose the people mode or when to use this tool instead of related siblings such as set_home or set_internal.

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