Directory

Connect the directory

directory_connect · Changes data · Markdown

Connects the company's Microsoft Entra ID or Okta, checked by reading one person.

$0.001 a call

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

An example

Connect our Okta so you can set up new hires. Here is the API token from our admin.

Your agent callsdirectory_connect$0.001 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
{
  "provider": "okta",
  "org_url": "https://hansenvoss.okta.com",
  "secret": "00aBcD-example-token"
}
What comes back
{
  "directory": {
    "provider": "okta",
    "tenant_id": null,
    "org_url": "https://hansenvoss.okta.com",
    "connected_at": "2026-10-14T08:00:00+00:00"
  },
  "suspensions_need_approval": true
}

Use it when

The business wants joiners and leavers handled in its directory.

What it does

Connect the company's Microsoft Entra ID or Okta. Entra ID: tenant_id, client_id and the client secret of an app registration with User.ReadWrite.All and GroupMember.ReadWrite.All (and User.EnableDisableAccount.All), consented by the tenant's admin. Okta: org_url and an admin's API token. The connection is checked by reading one person. Suspensions then wait for the owner's approval by default.

What comes back

directory: the provider, the tenant or org and when it was connected; suspensions_need_approval when an approval rule for suspensions was made. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
providerRequiredstringOne of: entra,okta.
tenant_idstringUp to 120 characters.
client_idstringUp to 120 characters.
org_urlstringUp to 200 characters.
secretRequiredstringThe Entra client secret or the Okta API token. Never shown again. 8 to 2,000 characters.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/directory_connect \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"okta","org_url":"https://hansenvoss.okta.com","secret":"00aBcD-example-token"}'

When it refuses

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

CodeWhenWhat to do
invalid_input400Entra ID was given without tenant_id or client_id, or org_url is not an Okta org.Give what the message names.
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