KosmoKrator

communication

Dialpad MCP Integration for LangChain

Connect Dialpad to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect Dialpad to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Dialpad MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-dialpad": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=dialpad",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=dialpad --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Dialpad instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Dialpad Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Dialpad integration catalog.

MCP toolSource functionTypeDescription
integration__dialpad__dialpad_list_calls dialpad.dialpad_list_calls Read List call history records from Dialpad. Returns call details including participants, duration, and direction. Supports date range filtering and pagination.
integration__dialpad__dialpad_get_call dialpad.dialpad_get_call Read Get details of a specific call record by ID. Returns full call information including participants, duration, direction, and recording URL if available.
integration__dialpad__dialpad_list_sms dialpad.dialpad_list_sms Read List SMS messages from Dialpad. Returns message details including sender, recipient, text content, and timestamps. Supports date range filtering and pagination.
integration__dialpad__dialpad_send_sms dialpad.dialpad_send_sms Write Send an SMS message via Dialpad. Specify the recipient number, sender number (or department ID), and message text.
integration__dialpad__dialpad_list_users dialpad.dialpad_list_users Read List users in the Dialpad organization. Returns user details including name, email, phone numbers, and department. Supports pagination.
integration__dialpad__dialpad_get_user dialpad.dialpad_get_user Read Get details of a specific Dialpad user by ID. Returns user profile including name, email, phone numbers, department, and status.
integration__dialpad__dialpad_get_current_user dialpad.dialpad_get_current_user Read Get the profile of the currently authenticated Dialpad user. Useful for verifying the connection and identifying which account the integration is using.

Related Dialpad Pages