Skip to main content
Glama

set_phone_account_access

Destructive

Turn Account access on or off for one of the account's phone numbers: whether it signs in to the account and confirms its sensitive actions (2FA step-ups). Every new phone number starts on. Either direction requires one code: start_2fa_for_action with action_type account_access and targets ["act:access_on", ""] to turn it on or ["act:access_off", ""] to turn it off; without it the call answers 403 2fa_required. Turning off the last way into the account answers 409 last_account_access. Turning it off ends the sign-in sessions this number opened within 15 minutes (at their next renewal) and signs out no other device; MCP sign-ins and API keys are not sessions and are not affected.

ACCESS: needs a Proof account, signed in: call start_login, show the user its challenge, then wait_for_login, then call this tool again. Authenticating this client alone does NOT open this tool.

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": {
      "id": "<id>",
      "account_access": "<account_access>"
    },
    "name": "set_phone_account_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPhone number record ID
account_accessYestrue: it signs in and confirms sensitive actions; false: it does neither

Output Schema

NameRequiredDescriptionDefault
idNoMongoDB ObjectId
typeNo
account_accessNoThe switch as it now stands.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: discloses the 409 last_account_access guard, the 403 2fa_required precondition, and the precise blast radius of turning access off (ends sessions opened by this number within 15 minutes at next renewal; MCP sign-ins and API keys unaffected). This is unusually rich consequence disclosure for a destructive toggle.

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 with the purpose before the preconditions, and the separate ACCESS paragraph cleanly isolates the auth requirement. The 2FA target string syntax is a bit compressed, but no sentence is filler.

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?

Given an output schema exists, the description needn't explain return values, and everything else an agent needs — auth flow, 2FA gating, last-access conflict, session side effects — is present. Nothing material is left to inference for a destructive mutation.

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 real value: it shows how the phone-number id is threaded into the 2FA target list ("<id>") and restates that true means signing in plus confirming sensitive actions while false means neither. It does not explain id format or where to obtain the record id.

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 — turning Account access on or off for a phone number — and immediately defines what 'access' means (signs in and confirms sensitive actions via 2FA step-ups). This distinguishes it from the sibling set_email_account_access and from primary-number tools.

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 names the prerequisite flow (start_2fa_for_action with action_type account_access and the exact target strings act:access_on / act:access_off), states the failure mode without it (403 2fa_required), and gives the auth procedure (start_login, show challenge, wait_for_login, call again). An agent knows exactly when and how to invoke 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.