Skip to main content
Glama

Bring the directory in line with HR

directory_sync_from_hr

Compare HR's people (hr area) with the directory by work email and set titles and departments (and managers, with include_managers) as HR has them. With suspend_leavers, people HR says have left are suspended too. dry_run (the default) only shows the plan. Costs $0.01 per call; nothing if it fails.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "directory_sync_from_hr"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
suspend_leaversNo
include_managersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the safety profile; the description adds genuinely new behavior: per-call cost of $0.01 (nothing on failure), dry_run defaulting to preview, and that leavers get suspended under suspend_leavers. It leaves one meaningful gap: what happens to directory users with no HR counterpart when suspend_leavers is off — created, ignored, or flagged.

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?

Four dense sentences in a logical order: what it does and how it matches, then each flag, then the default/safety behavior, then cost. No redundant restatement of the title or name, and nothing padding the text.

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 no-output-schema mutation tool with an empty param schema, the description covers effect, matching rule, safety default, and cost. What is still missing is the fate of unmatched directory users and any hint at what the dry-run plan looks like, which matters since there is no output schema to explain it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% — the schema carries only booleans and defaults with no descriptions. The description defines all three: dry_run shows the plan only, suspend_leavers also suspends HR-reported leavers, and include_managers pulls manager assignments. That fully compensates for the empty 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?

The description states a concrete verb pair (compare and set) plus both resources (HR's people and the directory) and the matching key (work email). That is enough to tell it apart from directory_update_user or admin_save_person, but it never names a sibling or explicitly contrasts itself with manual directory editing.

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 a clear calling context (bring the directory in line with HR) and explains the effect of each flag, including that dry_run is the default and only previews. It stops short of naming alternatives or stating when not to use it, e.g. for a single-user correction.

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