Skip to main content
Glama

Роль участника

save_workspace_role

Создаёт роль или меняет права существующей. Правка действует сразу на всех участников этой роли. Значения прав: allowed — разрешено, partially — только свои объекты, forbidden — запрещено. Без role_id создаётся новая роль, с role_id — правится указанная. Настройка ролей доступна не на всех тарифах.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesНазвание роли.
role_idNoID роли для правки (из get_workspace_roles). Не передавайте, чтобы создать новую.
permissionsYesПолный набор прав роли. Имена прав берите из get_workspace_roles.
workspace_idYesID воркспейса (из workspace://list).
folder_permissionsNoОтличия прав роли в отдельных папках: список записей {folder_id, permissions}. Не передавайте, чтобы оставить отличия как есть; пустой массив снимает все, и роль везде работает по базовым правам.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower. The description adds genuinely useful behavioral context beyond that: an edit takes effect immediately for every member of the role, and the feature is tariff-gated. It does not explain reversibility or the non-idempotent nature flagged by annotations.

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 core create-or-edit behavior, then permissions legend, then role_id rule, then tariff caveat. Efficient, though the permission-value enumeration duplicates what is already in the enum description.

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 5-parameter mutation tool with 100% schema coverage and no output schema, the description covers create-vs-edit semantics, the cross-member blast radius of edits, the permission value legend, and a tariff constraint. An agent has what it needs to invoke it correctly.

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 schema already documents name, role_id, permissions, folder_permissions and the allowed/partially/forbidden enum. The description largely restates the permission value meanings (allowed/partially/forbidden) and the role_id create-vs-edit rule that the schema also states, adding little beyond the baseline.

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 tool behavior: creates a role OR edits the permissions of an existing one, with an explicit rule for which happens (no role_id → create, with role_id → edit). The note that an edit propagates immediately to all members of that role also distinguishes it from member-level assignment siblings like set_workspace_member_role.

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 clear conditional guidance for role_id (create vs. edit) and a prerequisite constraint ('Настройка ролей доступна не на всех тарифах'). It stops short of naming alternative tools (get_workspace_roles as source, delete_workspace_role as the removal path) or stating exclusions, so it is strong context without full 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