Skip to main content
Glama

Change a person's groups

directory_set_groups
Idempotent

Add a person to groups and take them out of others (the apps and teams those groups open). Costs $0.01 per call; nothing if it fails.

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": {
      "person": "<person>"
    },
    "name": "directory_set_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
personYesThe person's id in the directory, or their email.
removeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false and openWorld=true. The description adds non-obvious context the annotations cannot carry: a $0.01 per-call charge and that failures are free, plus the downstream effect of membership. It omits the auth/connection prerequisite and what happens on partial success.

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?

Two tightly packed sentences with the core effect front-loaded and the cost caveat appended. No restated title, no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation with no output schema, the description covers purpose and cost, but an agent still lacks the connection prerequisite, group identifier format, and whether the operation is atomic across add and remove. These are material for correct invocation.

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?

Only 'person' is documented in the schema (33% coverage), and its id-or-email format is already in the schema. The description's add/remove wording does map onto the two array parameters, but it never specifies whether group entries are ids or names, nor how conflicting add/remove entries are resolved.

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?

The description gives a specific verb+resource pair ('add a person to groups and take them out of others') and clarifies that groups grant apps and teams, so an agent knows the effect. It stops short of naming the nearest siblings (directory_list_groups, directory_update_user) to disambiguate membership reads from writes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Use is implied by the described effect, but there is no explicit when-to-use, when-not, or alternative (e.g., use directory_list_groups to inspect membership first, or directory_update_user for other profile changes). No prerequisites such as an established directory connection are stated.

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