hdls Chat

hdls Chat is a headless, MCP-native team & cross-org messaging backend. It manages channels, messages, members, and cross-org connections, operated entirely through named tools your AI assistant calls. It stands in for tools like Slack, Microsoft Teams — same job, no UI to run.

💬 Just ask

"Start a #launch channel, post the kickoff note, and add the team."

You don't call these tools yourself — just tell your assistant in plain English. Everything below is the reference for when you (or your assistant) want the exact details.

How Chat is organized

The headline entity is the message — start there, then attach the rest to it. Records connect by reference: a channel links to a connection; a membership links to a channel. The message table is an append-only timeline — every change and note lands there and is never edited or deleted.

EntityPurposeRelates to
messageAppend-only messages. origin=federated marks a copy received from a peer org.channel
channelA channel/conversation. kind=external federates to a peer org via the events engine.connection
connectionA trusted link to another org; cross-org messages federate over signed webhooks.
membershipWho (user/agent) is in a channel and their role.channel

Common workflows

Each line is one real sequence of tool calls — your assistant chains them for you.

  • Set up a message end to end: create_channelpost_messageadd_member

Tools

Call these at https://hdls.ai/api/mcp/chat. Required fields you must supply; optional fields refine the call. You never pass tenant_id — it is stamped server-side.

Create

ToolWhat it doesRequiredOptional
create_channelCreate a new channel.namekind, topic, connection_id, data

Update & advance

ToolWhat it doesRequiredOptional
add_memberAdd a member.id
connect_orgConnect an org.id

Find & read

ToolWhat it doesRequiredOptional
search_messagesSearch messages by free-text and/or column filters (tenant-scoped, paginated).search, filters, limit, orderBy
list_channelsSearch channels by free-text and/or column filters (tenant-scoped, paginated).search, filters, limit, orderBy

Timeline

ToolWhat it doesRequiredOptional
post_messagePost a message.channel_id, bodyparent_id, author_type, author_id, origin, data

Field lists come from the product's live schema and are embedded in each tool's own description — read the tool description for the exact, current fields.

Field reference

Every field you can set on each record. Custom fields you add live alongside these in data.

channel

FieldTypeRequiredNotes
nametextYesDisplay name.
kindtext
topictext
connection_ididLinks to a connection.
datajsonFree-form JSON — custom fields live here.

connection

FieldTypeRequiredNotes
peer_tenant_ididYesReference to a related record.
peer_labeltext
statustextLifecycle state.
datajsonFree-form JSON — custom fields live here.

membership

FieldTypeRequiredNotes
channel_ididYesLinks to a channel.
member_typetext
member_idtextYesReference to a related record.
roletext
joined_attimestamp

Tailor it with custom fields

Add fields without a schema change. add_custom_field defines one, list_custom_fields shows what's defined, and promote_custom_field (admin) shares a personal field with the whole workspace. The value lives in each row's data (JSON) and is set and read through the normal record tools. See Products, tools & custom fields for the full model.

Roles & safety

  • Tenant isolation is automatic. Your credential is pinned to one workspace; you never pass tenant_id, and you can only ever see your own data (enforced by Postgres row-level security).
  • Role-gated. Permissions run reader < member < admin < owner. Installing a product and promoting a custom field workspace-wide need admin/owner.
  • History is append-only. The message timeline is never edited or deleted — it's your audit trail.

Connect

On the concierge (https://hdls.ai/api/mcp), run install_product({ slug: "chat" }) (admin/owner) to enable it for your workspace, then add https://hdls.ai/api/mcp/chat as a connector in your assistant — see Connect your assistant.

A worked example

The literal call your assistant makes when you ask it to create the headline record:

Tool: create_channel
Arguments: {
  "name": "Acme Corp"
}

See All products · Connect your assistant · Automation