Skip to main content
Glama

Set who can open a page

set_page_access
Destructive

Use this tool when the user wants to decide who can open a page: 「パスワード付きで公開して」「このページにパスワードをかけて」「限定公開にして」「パスワードを外して」, "publish this with a password", "only people with the password", "keep it out of Google" (閲覧パスワード, 限定公開, ホームページ, Webサイト, ランディングページ).

Sets who can open one page at its live URL. It works on a draft and on a live page, and applies on the next request to the page with no new publish. Preview links keep opening with their token.

  • "password": only people who type the password. Sets the page's password, or replaces the one it has. People open the URL and type it once per browser; search engines get the password screen. password: 8 to 128 characters of letters, numbers, symbols, and spaces (printable ASCII, so every keyboard types it). If the user gave no password, ask for one or propose one before calling. The answer never repeats the password, so tell the user in the chat the password you set. Replacing a password asks everyone for the new one.

  • "private_link": anyone who has the link, and search engines leave the page out. Removes the page's password.

  • "public": anyone, and search engines can show it. Removes the page's password. For a new page the user wants behind a password ("save this and publish it with a password"): create_landing_page_preview, then set_page_access with its siteId, then publish_site with slot production. The password is on before the page is live, so it is never open in between. Returns access (what the page is now, as list_pages shows it), published, and url: the live URL to send people, or null for a page not published yet (publish_site puts it live). The same call again leaves the page as it is. Page passwords and private links come with Pro and MAX. On another plan the answer is plan_restricted or private_needs_pro and nothing changes: the page keeps the access it had. Then don't publish the page open in its place. Tell the user in one line what the message says the page would do, and give them dashboardUrl, the page's screen, which shows the ways to get it. The answer names the workspace (brand.id, name, host); with expectedBrandId, a connection that now works on another workspace changes nothing (brand_mismatch).

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": {
      "siteId": "<siteId>",
      "access": "<access>"
    },
    "name": "set_page_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
accessYesWho can open the page: 'password' (only people who type the password), 'private_link' (anyone with the link; out of search), or 'public' (anyone)
siteIdYesThe page's id (get_brand or list_pages)
passwordNoRequired when access is 'password': 8 to 128 characters of letters, numbers, symbols, and spaces. Leave it out for the other two.
expectedBrandIdNoThe workspace's id from get_brand. When the connection now works on another workspace (the dashboard's active workspace was switched), the call changes nothing and answers brand_mismatch.

Output Schema

NameRequiredDescriptionDefault
urlYes
brandYes
accessYes
siteIdYes
guidanceNo
publishedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description discloses the actual blast radius: replacing a password 'asks everyone for the new one', private_link/public 'Removes the page's password', and search-engine behavior per mode. It also covers plan gating for Pro/MAX with the exact error strings (plan_restricted, private_needs_pro, brand_mismatch), the no-op guarantee on repeat calls, and that the password is never echoed back. One minor tension: 'The same call again leaves the page as it is' reads as idempotent while idempotentHint=false, but this is a soft hint mismatch rather than a real behavioral contradiction.

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?

Front-loaded well with the trigger clause and the numbered access modes, but the definition is long and partly redundant: password constraints restate the schema, and the 'Returns access, published, and url' sentence duplicates an existing output schema (though it adds the useful 'URL to send people' guidance). The multilingual phrase lists are dense, and a few clauses could be tightened without losing 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 a destructive, plan-gated mutation with 4 parameters, the definition covers invocation ordering, fallback when the password is absent, error states, resulting state, and follow-up publishing. Nothing an agent needs in order to call it safely is missing.

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 above baseline by adding operational meaning the schema lacks — password length/charset rationale ('printable ASCII, so every keyboard types it'), the obligation to ask the user for a password before calling, the consequence of replacement, and expectedBrandId failure semantics under workspace switching.

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 precise verb and resource: 'Sets who can open one page at its live URL', and immediately scopes it against neighbors by noting it applies 'on the next request to the page with no new publish' while 'Preview links keep opening with their token' — so it is distinguishable from publish_site and the preview tools without opening any 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?

Explicit trigger conditions are given ('when the user wants to decide who can open a page') with concrete utterance classes, plus a when-to-ask rule ('If the user gave no password, ask for one or propose one before calling') and an ordered workflow for the new-page case (create_landing_page_preview → set_page_access → publish_site). It also states what not to do on plan-restricted responses ('don't publish the page open in its place').

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.