Skip to main content
Glama

Change a role

sharing_change_role
DestructiveIdempotent

Change the role of someone one of the user's notes, tasks or shared folders is shared with: a note's or task's viewer reads it, contributor also edits it, admin also shares it; a shared folder's roles are its own five. Name them as shared_with in notes_get, tasks_get or folders_get lists them: a person by email (or contact_uuid), a group by group. The owner's role doesn't change. Only a note's or task's owner or an admin can change roles (can_share), and a shared folder's admins (can_manage). Returns the item as it is now.

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": {
      "item_type": "<item_type>",
      "item_uuid": "<item_uuid>",
      "role": "<role>"
    },
    "name": "sharing_change_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesA note's or task's: viewer reads it; contributor also edits it; admin also shares it. A shared folder's: admin adds, edits and removes anything, renames the folder and changes who it's shared with; contributor adds to the folder and edits anything in it; submitter adds to the folder, and edits only their own; reviser edits anything in the folder, but adds nothing; viewer sees what's in the folder
emailNoA person's email, as `shared_with` lists it
groupNoA group's name, as `shared_with` lists it
item_typeYesWhat's shared
item_uuidYesIts uuid, from notes_search, tasks_search or folders_list
contact_uuidNoOne of the user's contacts, by the uuid contacts_search returns

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds real value on top by spelling out the permission model and by noting the owner's role is untouched. It never states explicitly that the previous role is replaced (i.e., that privileges can be revoked), which is the main behavioral consequence an agent should know for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, but it is a single dense semicolon-chained paragraph, and it re-explains viewer/contributor/admin semantics that the schema's `role` enum already carries verbatim. Trimming the duplicated role definitions would make the permission and identity guidance far easier to scan.

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 the essentials for a 6-parameter mutation: permissions, who is affected, how to obtain identifiers, and where to look them up. With an output schema present, the brief 'returns the item as it is now' is sufficient, though error cases (sharee not currently shared with the item) go unmentioned.

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 100% and the enumeration of role meanings largely duplicates the `role` enum description already in the schema. The description does add cross-tool provenance the schema lacks — that sharees are listed as `shared_with` by notes_get, tasks_get, or folders_get, and how a person vs. a group is named — but that is a modest increment over an already fully documented schema.

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: change the role of a sharee on a note, task, or shared folder, with per-item role semantics enumerated. It does not explicitly distinguish itself from the sharing_add/sharing_remove siblings, so an agent must infer that this is the modify-existing-share path rather than the add/remove path.

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 preconditions: only a note's or task's owner or an admin with `can_share`, and only a shared folder's admins with `can_manage`, may change roles, and it notes the owner's role is unaffected. It stops short of explicit when-to-use alternatives (e.g., 'to grant access to someone not yet shared, use sharing_add'), leaving that routing to inference.

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