Skip to main content
Glama

set_email_account_access

Destructive

Turn Account access on or off for one of the account's email addresses: whether it signs in to the account and confirms its sensitive actions (2FA step-ups). Every new email address 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 address 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_email_account_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEmail address 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?

Well beyond the destructiveHint=true annotation, it discloses the 409 last_account_access guard, the 15-minute session termination window for sessions opened by this address, and that MCP sign-ins and API keys are unaffected. These are exactly the side-effect details an agent needs before 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?

Purpose is front-loaded and each subsequent sentence covers a distinct concern (2FA requirement, 409 guard, session side effects, auth flow). It is dense and somewhat long, but almost no sentence is filler; the auth paragraph could be tightened slightly.

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 destructive two-parameter mutation, the description covers authorization requirements, the prerequisite 2FA step, both documented error outcomes, and side effects; an output schema exists so return values need no explanation. Nothing needed 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 real meaning: it explains that true means sign-in plus sensitive-action confirmation, that every new address starts on, and that the record id is embedded in the 2FA targets string. Only the exact targets formatting is left slightly implicit.

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?

The opening sentence names a specific verb-resource pair ('Turn Account access on or off for one of the account's email addresses') and immediately defines what 'account access' means (sign-in plus 2FA step-up confirmation). The email-address scoping distinguishes it from the phone counterpart without ambiguity.

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?

It gives explicit call ordering (start_2fa_for_action with action_type account_access and the exact targets array, then this tool), states the failure mode when the code is missing (403 2fa_required), and spells out the prerequisite login flow (start_login, show challenge, wait_for_login, retry). When-when-not guidance and the alternative tool are both named.

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.