Skip to main content
Glama

Turn sign-in on or off for a site

set_site_protection
DestructiveIdempotent

Turns sign-in on or off for one site's previews or its live site, as the switches in the project's "Who can see it" settings do. With sign-in on, only people in the workspace can open it, after they sign in; with it off, anyone with the address can. Only owners and admins. Previews, and turning sign-in on for the live site, change at once. Turning sign-in off for the live site only asks: Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. Without address, a live change applies to every part of the live site that can be switched.

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": {
      "project_id": "<project_id>",
      "target": "<target>",
      "sign_in": "<sign_in>",
      "reason": "<reason>"
    },
    "name": "set_site_protection"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in a sentence: kept in the workspace's activity.
targetYespreviews: every preview of the site. live: the live site visitors see.
addressNoFor live only: the one address to change, as get_site_protection lists it, such as www.acme.com.
sign_inYestrue: only people in the workspace, after they sign in. false: anyone with the address.
project_idYesThe site (list_projects gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare destructive/idempotent/non-read-only; the description adds substantial behavior beyond that: the asynchronous approval path for disabling live sign-in, the 15-minute wait window, that the caller cannot self-approve, and that an omitted address widens the change to every switchable part of the live site.

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?

Front-loaded with the core action and effect, then the approval caveat, with no filler sentences. It is dense and somewhat long, but each sentence carries operational information the agent needs; minor tightening of the approval paragraph is possible.

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 six-parameter destructive mutation with no output schema, the description covers permissions, immediate-vs-deferred effects, the approval handoff, the follow-up tool to poll, and address scoping — everything needed to call it and interpret the outcome.

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 already 100%, so the baseline is 3; the description earns above baseline by explaining that `target=previews` and enabling live sign-in apply at once, while omitting `address` applies a live change to the whole site rather than a single address.

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 with scope: 'Turns sign-in on or off for one site's previews or its live site,' and ties it to the familiar 'Who can see it' settings so the agent knows exactly which control is being changed. Clearly distinct from the read-only sibling get_site_protection.

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 conditions and exclusions: only owners and admins can call it, previews and enabling live sign-in take effect immediately, while disabling live sign-in requires approval. It also prescribes the follow-up workflow — send the returned link to the person, you cannot approve it yourself, then call get_approval with the requestId.

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