Skip to main content
Glama

set_account_access

DestructiveIdempotent

Give a person or a role access to one account, change the level, or remove it (access_right 'none'). Levels: read (see), write (also send / change / file), manage (also change credentials and hand out access). The owner always has full access and cannot be assigned. For a runner, resource_id is the user id of the person whose runner it is. For an agent (resource_type 'agent'), resource_id is the agent id: read or more lets that person or role see and use the agent (same as the team page, 'Account access', kind Agent). Name exactly one target: user_id (a person), role (fixed role admin/planner/viewer/caller) or tenant_role_id (a web role). Tenant admin, or someone with manage on that account (for an agent also its creator).

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": {
      "resource_type": "<resource_type>",
      "resource_id": "<resource_id>",
      "access_right": "<access_right>"
    },
    "name": "set_account_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoFixed role to grant access to (instead of user_id or tenant_role_id)
user_idNoID of the user
resource_idYesID of the resource
access_rightYesAccess level; none removes the access
resource_typeYesType of the account access is granted to
tenant_role_idNoID of the tenant role

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / access_right / description
      Added value: +"Access level; none removes the access"
    • addedInput schema / properties / resource_id / description
      Added value: +"ID of the resource"
    • addedInput schema / properties / resource_type / description
      Added value: +"Type of the account access is granted to"
    • addedInput schema / properties / role / description
      Added value: +"Fixed role to grant access to (instead of user_id or tenant_role_id)"
    • addedInput schema / properties / tenant_role_id / description
      Added value: +"ID of the tenant role"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds context the annotations cannot carry: that access_right 'none' performs the removal, that the owner always has full access and cannot be assigned, and what permission level is required to call it. It stops short of describing failure behavior (e.g., what happens when the target lacks a role) or the response payload.

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?

The main action is front-loaded and each level definition earns its place. The agent/runner explanation is somewhat run-on and nesting parentheticals ('same as the team page, "Account access", kind Agent') adds cognitive load, but no sentence is truly wasted.

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 six-parameter mutation tool with no output schema, the description covers the levels, target-selection constraint, authorization requirement, and the two tricky resource types. The remaining resource types (mailbox, calendar, meeting, files, bridge) are self-explanatory from their names, so the gaps are minor rather than blocking.

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 description coverage is 100%, so the per-field descriptions already document each parameter, establishing the baseline of 3. The description does add a genuine cross-field constraint not expressible in the schema (exactly one of user_id/role/tenant_role_id) and overloads resource_id with special meaning for runner and agent types, which is real added value — but the remaining fields are left to the schema.

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 description opens with a specific verb phrase — 'Give a person or a role access to one account, change the level, or remove it' — naming both the grant, update, and revoke behaviors in one clause. It also enumerates the three access levels with parenthetical meanings, so an agent can distinguish this from siblings like list_account_access (read-only) or set_user_access without opening the schema.

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?

It gives clear operational guidance: 'Name exactly one target: user_id (a person), role ... or tenant_role_id (a web role)' and states the authorization precondition ('Tenant admin, or someone with manage on that account'). It does not, however, explicitly contrast itself with siblings such as set_integration_access or set_user_access, leaving the agent to infer which access tool applies to which resource.

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.