Skip to main content
Glama

Turn a capability on or off for an access role

set_access_role_capability
Destructive

Switch one of the eight capabilities on or off for an access role in a workspace you own — it reaches everyone who follows the role at once. Capabilities: readMail (Read my email), sendMail (Send email on my behalf), manageSheets (Work with my spreadsheets), readFiles (Read and edit my files), shareFiles (Share files with people I name), manageTasks (Manage my tasks), draftReplies (Draft replies for me), manageCalendar (Manage my calendar). This only stages a request: the owner opens the link in their browser, reviews it, and approves it there with their agent PIN. Never ask for or accept the PIN in chat.

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": {
      "role": "<role>",
      "capability": "<capability>",
      "enabled": "<enabled>"
    },
    "name": "set_access_role_capability"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesThe access role's name.
enabledYestrue to allow, false to refuse.
workspaceNoWhich workspace, by name or id. Only needed when you own more than one — list_workspaces shows them.
capabilityYesWhich capability.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Adds behavior the annotations cannot express: the call only stages a request, and the owner must open a browser link, review, and approve with their agent PIN. The explicit instruction never to ask for or accept the PIN in chat is a crucial safety constraint. The destructiveHint=true annotation is consistent with revoking capability via enabled=false.

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?

Front-loads the action and scope, then the effect, then the capability glossary, then the approval caveat; each block serves a distinct need. The capability parentheticals make it long, though they earn their place by disambiguating similar enum values.

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?

Covers scope, effect, workflow, and the capability vocabulary for a 4-parameter mutation tool with no output schema. It implies a review link is produced, but does not say what the call returns or what happens if approval is refused, which is the main remaining gap for an agent handling the response.

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 to the enum by glossing each value in human terms (readMail = "Read my email", shareFiles = "Share files with people I name"). It also clarifies that workspace is the owned workspace, matching the schema's note that it is only needed when more than one is owned.

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 specific verb and resource: "Switch one of the eight capabilities on or off for an access role in a workspace you own", and enumerates all eight capabilities, so the scope is unambiguous and an agent can tell this is the per-capability toggle rather than a role assignment or creation. It stops short of naming overlapping siblings such as set_access_role_mailbox_access or set_access_role_skill_access, leaving the agent to infer the boundary from the capability list.

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?

Makes the precondition explicit ("a workspace you own") and warns that the change reaches everyone who follows the role at once, which is exactly the blast-radius context needed before calling. It also explains the post-call flow. It does not state when to prefer this over the mailbox/skill-scoped siblings, so it is clear but not fully routing.

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