Skip to main content
Glama

Add or remove a person in a group

dm.set_group_member
DestructiveIdempotent

Add or remove one PERSON in one GROUP of the Identity Ledger (idempotent; people only, no nested groups). Requires the delegated human's OAuth grant and a workspace role that may manage members. Group membership is a label only: it never grants a workspace role, access or invitation.

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": {
      "group_identity_id": "<group_identity_id>",
      "person_identity_id": "<person_identity_id>",
      "action": "<action>"
    },
    "name": "dm.set_group_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoFree-text label inside the group (add only). Grants nothing.
actionYes
group_identity_idYes
person_identity_idYes

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 destructiveHint=true and idempotentHint=true, so the description's repetition of 'idempotent' adds little. What it does add is real behavioral context the annotations cannot express: the required delegated OAuth grant plus member-managing workspace role, and the guarantee that membership is a label only and never confers a workspace role, access, or invitation.

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

Conciseness5/5

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

Three tight sentences: the action and scope come first, prerequisites second, and the privilege-escalation caveat last. There is no filler and no restatement of the tool title.

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 destructive mutation with no output schema, it covers authorization, scope, idempotency, and semantic side effects well. It omits what a successful add/remove returns and the exact failure modes (invalid identity id, insufficient role), which would complete the picture.

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 only 25%, so the description must carry weight; it does clarify that person_identity_id must resolve to a person and group_identity_id to a group. But it says nothing about identifier format, whether a missing membership on 'remove' is a no-op, or what becomes of the free-text role label when a member is removed — the schema only says role is 'add only'.

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 names a specific verb pair ('Add or remove'), a specific resource ('one PERSON in one GROUP of the Identity Ledger'), and bounds the scope ('people only, no nested groups'). That scope statement lets an agent separate it from identity-editing siblings such as update_identity or link_identity_user without opening either 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 preconditions (delegated human's OAuth grant, workspace role that may manage members) and an explicit exclusion ('people only, no nested groups'), which functions as a when-not rule. It stops short of naming a sibling to use instead for group or nested-group management, so the alternative routing is left implicit.

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