Skip to main content
Glama

Set authorization mode

set_token_mode
DestructiveIdempotent

Workspace owners can restrict one authorization to sandbox mode or restore normal mode. Sandbox authorizations can only read and edit their own private pages and folders. List credentials and ask the user first; confirm must exactly repeat the target prefix. The authorization remains valid.

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": {
      "token_id": "<token_id>",
      "mode": "<mode>",
      "confirm": "<confirm>"
    },
    "name": "set_token_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
confirmYes
token_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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 readOnlyHint=false, so the mutation profile is covered. The description still adds genuinely new context: the exact consequence of sandbox (read/edit only own private pages and folders), the confirmation requirement, and that 'the authorization remains valid' (i.e., nothing is revoked). It stops short of saying what happens on a confirm mismatch or how existing sessions are affected.

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?

Four short sentences, front-loaded with the capability, then effect, then the procedural guard, then the non-destructive reassurance. No filler; the only cost is that 'target prefix' is stated tersely enough to be ambiguous.

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 3-required-parameter destructive mutation with no output schema and zero schema descriptions, the definition covers permission, effect, confirmation, and post-state. Missing only error behavior on a bad confirm value and a clear definition of the prefix, which are minor for a correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry all parameter meaning. It explains mode indirectly via the sandbox effect and constrains confirm ('must exactly repeat the target prefix'), but 'target prefix' is undefined (presumably a leading substring of token_id) and token_id itself is never characterized as a credential identifier.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb+resource: restrict one authorization to sandbox mode or restore normal mode. An agent can tell this mutates a single credential's authorization mode rather than workspace-wide settings, though it never names a sibling or explicitly contrasts with the token tools (create_cli_token, revoke_api_token).

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?

Gives the prerequisite role ('Workspace owners') and an explicit operating procedure ('List credentials and ask the user first'), which is real when-to-use guidance. It does not state when an agent should choose sandbox vs. normal beyond the verbs restrict/restore, and offers no exclusion of alternative tools.

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