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 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.

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.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the call only 'stages a request' requiring the owner to approve out-of-band with an agent PIN, and warns never to accept the PIN in chat. That approval workflow and security constraint are non-obvious behaviors an agent cannot infer from destructiveHint=true.

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-loaded with the verb and resource, then the capability glossary, then the approval caveat. The eight-item list is somewhat long and overlaps the schema enum, but each gloss adds value and the ordering keeps the critical caveat visible at the end.

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 mutation tool with no output schema, the description covers everything needed to invoke correctly: the resource domain, the workspace precondition, the blast radius, and the out-of-band approval flow. Nothing an agent needs 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 description coverage is 100%, so the baseline is 3. The description adds real meaning by mapping each enum value to a plain-language gloss (readMail = 'Read my email', sendMail = 'Send email on my behalf'), which the bare enum does not provide, and by clarifying the workspace parameter's ownership requirement.

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 ... on or off'), the exact resource (one of eight named capabilities for an access role), and scope (a workspace you own). It enumerates all eight capability values with human-readable glosses, so an agent knows precisely what is being toggled without opening the enum.

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 a clear precondition ('in a workspace you own') and blast-radius context ('reaches everyone who follows the role at once'). It implicitly separates itself from siblings like set_access_role_mailbox_access and set_access_role_skill_access by scoping to the eight capability names, but never names an alternative or an explicit when-not-to-use condition.

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