Directory

List people in the directory

directory_list_users · Reads only · Markdown

People in the directory with their name, email, title, department and whether they can sign in.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

Who in the warehouse still has an account?

Your agent callsdirectory_list_usersFree*

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
{
  "query": "warehouse",
  "limit": 50
}
What comes back
{
  "people": [
    {
      "id": "00u3",
      "name": "Jonas Becker",
      "email": "jonas.becker@hansenvoss.example",
      "title": "Warehouse operative",
      "department": "Warehouse",
      "enabled": true,
      "status": "active"
    }
  ],
  "count": 1
}

Use it when

Before changing someone, or to see who still has an account.

What it does

People in the company's directory, with their id, name, email, title, department and whether they can sign in. query searches names and emails.

What comes back

people: each with id, name, email, title, department and enabled; count. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
querystringUp to 100 characters.
limitinteger1 to 200. Default: 50.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/directory_list_users \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"warehouse","limit":50}'

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