Skip to main content
Glama

Make a page members-only

set_members_only
Destructive

Makes one page of a React site only for signed-in people (on true), or open to everyone again (on false), like the page's "Only for signed-in people" setting in Xodia. Xodia wraps the page's route in MembersOnlyPage (the data kit's SignedIn): signed-out visitors see "Sign in to see this page" with a sign-in link, and the data kit is added when the site lacks it. Takes the page's path from get_members (the home page stays open). Turn sign-in on first (add_feature members-sign-in, or turn_on_sign_in), or nobody can open the page. Hiding a page doesn't protect data: each table's rule does. Refusals: members_html_site (plain HTML site: members-only pages need React; tell the user, Convert to React is in Project settings), members_page_unknown (pick a path from get_members), members_page_not_allowed (the home page), members_routes_unsupported (Xodia can't change these routes: wrap the page yourself, skill app-builder). Only ask for a page the user named.

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": {
      "path": "<path>",
      "on": "<on>",
      "projectId": "<projectId>"
    },
    "name": "set_members_only"
  }
}

Input Schema

NameRequiredDescriptionDefault
onYestrue: only signed-in people see the page. false: open to everyone again.
pathYesThe page's address from get_members, like /account or /members/notices. Not the home page.
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds substantial context: the toggle is reversible, signed-out visitors see a sign-in prompt, the data kit is auto-added, and the crucial caveat that hiding a page does not protect data. It documents refusal codes but does not describe what exactly changes on the route or whether the change is undoable via a paired call.

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 core purpose is front-loaded in the first clause and every sentence carries real information (prerequisites, refusals, caveats). It is dense, parenthetical-heavy prose that would read better as a short bulleted list, but little is genuinely redundant.

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 mutation with no output schema, the description covers prerequisites, side effects, the eligibility constraint on path, and four named refusal cases with remediation steps. An agent has everything needed to call it correctly and to explain failures.

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 meaning the schema lacks: it explains where path must come from (get_members) and its constraint (not the home page), and ties the boolean to the sign-in prerequisite rather than just 'true/false'.

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 concrete verb and resource ('Makes one page ... only for signed-in people') plus the inverse operation (on false reopens it), and grounds it in the visible product setting so an agent maps the tool to user intent immediately. It is clearly distinguishable from siblings like add_sign_in_page or set_translations.

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 prerequisites ('Turn sign-in on first (add_feature members-sign-in, or turn_on_sign_in)'), the source of the path ('from get_members'), the exclusion (home page stays open), and even a behavioral constraint ('Only ask for a page the user named'). Alternative tools are named for the prerequisite and for unsupported routes.

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