Skip to main content
Glama

set_user_access

DestructiveIdempotent

Switch a user's access channels in THIS tenant (admins only): access_web (app login), access_mcp (API keys and MCP clients such as the claude.ai connector), access_whatsapp (talking to the agent over WhatsApp), and/or phone (the WhatsApp number that identifies them, with country code; null or "" removes it). Required: user_id plus at least one of these.

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": {
      "user_id": "<user_id>"
    },
    "name": "set_user_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneNoPhone number
user_idYesID of the user
access_mcpNoAllow API keys and MCP clients
access_webNoAllow app login
access_whatsappNoAllow talking to the agent via WhatsApp

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / access_mcp / description
      Added value: +"Allow API keys and MCP clients"
    • addedInput schema / properties / access_web / description
      Added value: +"Allow app login"
    • addedInput schema / properties / access_whatsapp / description
      Added value: +"Allow talking to the agent via WhatsApp"
    • addedInput schema / properties / phone / description
      Added value: +"Phone number"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false. The description usefully adds that null or an empty string for phone removes it and that only the named channels are touched, but it does not say what disabling a channel actually does to a live session or what the response looks like. It adds some value beyond the annotations without covering the consequences of the destructive flag.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence front-loads the verb, resource, scope, and the admin restriction, followed by a short required-inputs sentence. Every clause carries information the schema does not, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no output schema, the description covers the prerequisites, per-channel meaning, and removal semantics, which is most of what an agent needs. It leaves out what happens to the target user's active sessions or whether the call returns the resulting access state, a minor gap given the annotated hints.

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% but the schema descriptions are terse ('Phone number', 'Allow app login'). The description adds real meaning: phone is the WhatsApp identifier requiring a country code and that null/'' removes it, access_mcp covers API keys and MCP clients like the claude.ai connector, and access_whatsapp is agent chat over WhatsApp.

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 ('Switch'), resource ('a user's access channels'), and scope ('in THIS tenant'), then enumerates the four settable channels with their meanings. The tenant scoping distinguishes it from sibling tools like set_account_access and set_integration_access without needing to open their schemas.

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?

Declares the admin-only prerequisite and states the input contract ('Required: user_id plus at least one of these'), which tells an agent when the call is valid. It does not name an alternative tool or describe when a different access-setting tool should be preferred, so it stops short of full routing guidance.

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.