Directory

Bring the directory in line with HR

directory_sync_from_hr · Changes data · Markdown

Sets titles and departments in the directory as HR has them; dry_run shows the plan first.

$0.01 a call

From your agent’s balance. A call that fails costs nothing.

An example

Make the directory match HR, and show me what would change first.

Your agent callsdirectory_sync_from_hr$0.01 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "dry_run": true
}
What comes back
{
  "dry_run": true,
  "changes": [
    {
      "person": "Lena Brandt",
      "email": "lena.brandt@hansenvoss.example",
      "user_id": "00u1",
      "changes": {
        "title": "Support lead",
        "department": "Customer care"
      }
    }
  ],
  "would_suspend": [],
  "leavers_still_active": []
}

Use it when

Every night, or after HR records changed, so the directory follows HR.

What it does

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.

What comes back

dry_run; changes: each person with what would change; would_suspend or suspended; leavers_still_active: people HR says have left who can still sign in. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
dry_runbooleanDefault: true.
suspend_leaversbooleanDefault: false.
include_managersbooleanDefault: false.

The call

Over MCP, call directory_sync_from_hr on https://api.conecto.chat/mcp/directory. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/directory_sync_from_hr \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dry_run":true}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_connected409No directory is connected yet.Connect Entra ID or Okta with directory_connect.
directory_rejected502The directory refused, usually because a permission is missing.Ask its admin to grant what the message names.
directory_unavailable503The directory could not be reached.Try again in a minute; nothing changed.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md