Skip to main content
Glama

Limit number of opens

set_site_access_opens
Destructive

Limit how many times a gated site can be opened: after N logins the link stops working. Counts devices, not page views (one person on phone and laptop is two opens), so the minimum is 3; visitors already in keep access. Only for password, email_list and subscribers; members and paywall limit people via max_seats in set_site_members_access.

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

Input Schema

NameRequiredDescriptionDefault
site_idYesUUID of the site
max_opensNoNumber of opens allowed, 3 or more; null removes the limit
reset_counterNoReset the count of opens already used, e.g. after raising an exhausted limit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / max_opens / description
      Previous value: -"Сколько раз можно войти (от 3). null — снять лимит"New value: +"Number of opens allowed, 3 or more; null removes the limit"
    • changedInput schema / properties / reset_counter / description
      Previous value: -"Обнулить счётчик уже сделанных входов (после подъёма исчерпанного лимита)"New value: +"Reset the count of opens already used, e.g. after raising an exhausted limit"
    • changedInput schema / properties / site_id / description
      Previous value: -"UUID сайта"New value: +"UUID of the site"
  2. 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 destructiveHint=true/readOnlyHint=false; the description adds real behavioral context beyond that: counting is per-device not per-view, the floor is 3 opens, already-admitted visitors are not revoked, and null removes the limit. These are non-obvious operational traits an agent could not infer from the schema.

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?

Dense but front-loaded: the core effect comes first, then the counting caveat, then the applicability limits. Every clause carries information, though the parenthetical device-counting example lengthens the sentence more than strictly necessary.

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 3-parameter mutation tool with no output schema, the description supplies scope, counting semantics, minimums, and the sibling alternative, so nothing an agent needs to invoke it correctly 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, but the description adds meaning the schema lacks: why max_opens cannot go below 3 (device counting) and what a null value means. reset_counter is only explained by the schema, so it is not a full 5.

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 action (limit opens), the resource (gated site), and the exact effect (after N logins the link stops working). It also differentiates itself from siblings by naming set_site_members_access and the access models it does not apply to.

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 scopes applicability to password, email_list and subscribers access, and routes members/paywall cases to set_site_members_access with max_seats. It also states the minimum (3) and that existing visitors keep access, so an agent knows both when and when not to call it.

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.