Skip to main content
Glama

Review Directory Batch

review_directory_batch
Read-onlyIdempotent

Check a directory batch of people, external handles, teams and team memberships without applying it; build it on organization_directory. Returns what it would change, for your user to approve, and a short-lived confirmation_token for apply_directory_batch. Owners and admins only.

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": {
      "batch": "<batch>"
    },
    "name": "review_directory_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batchYesPeople, teams and memberships linked by ref; reference existing people and teams by user_id or team_id. The owner role can't be assigned here.

Output Schema

NameRequiredDescriptionDefault
expires_atYesWhen the token expires, as an ISO 8601 UTC timestamp.
teams_countYesTeams the batch creates or updates.
people_countYesPeople the batch adds or updates.
request_hashYesThe hash of the exact batch that was checked.
confirmation_tokenYesPass to apply_directory_batch, with the same batch, once the user approves.
team_memberships_countYesTeam memberships the batch adds or updates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / batch / description
      Previous value: -"Atomic batch of people, teams and memberships linked by ref (include existing people/teams with user_id/team_id to reference them; owner role cannot be assigned here)."New value: +"People, teams and memberships linked by ref; reference existing people and teams by user_id or team_id. The owner role can't be assigned here."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, and the description adds genuinely new behavior: it returns a diff of what would change, surfaces it for end-user approval, and issues a short-lived confirmation_token. It also discloses the authorization gate ('Owners and admins only'), which annotations do not carry.

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 short sentences, each carrying distinct information: what it does, how to build the input, and what it returns plus who may call it. The 'without applying it' qualifier is front-loaded where it matters most.

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 deeply nested single-parameter tool with a full output schema and complete annotations, the description covers the remaining gaps: the dry-run nature, the approval workflow, the token handoff, and the permission requirement. Nothing an agent needs to call it correctly is missing.

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% and the nested batch structure is fully documented field-by-field, so the schema does the heavy lifting. The description only names the entity categories inside the batch and does not add ref-linking or idempotency semantics beyond what the schema already states.

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 verb and resource — 'Check a directory batch' — and enumerates the entity types it covers (people, external handles, teams, memberships). The phrase 'without applying it' plus the pointer to apply_directory_batch cleanly separates it from its closest sibling.

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 real context: build the batch on organization_directory first, and the resulting confirmation_token feeds apply_directory_batch. That establishes the review-then-apply workflow. It stops short of an explicit 'do not use this to make changes — use apply_directory_batch instead', leaving the routing slightly 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.