KosmoKrator

communication

Plivo MCP Integration for LangChain

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

7 functions 6 read 1 write API token auth

Connect Plivo 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.

Plivo MCP Config for LangChain

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Plivo 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.

Plivo Tools Visible to LangChain

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

MCP toolSource functionTypeDescription
integration__plivo__plivo_list_messages plivo.plivo_list_messages Read List SMS messages from Plivo with optional filters. Supports filtering by direction (inbound/outbound), message state, date range, sender, and recipient. Returns paginated message records.
integration__plivo__plivo_send_sms plivo.plivo_send_sms Write Send an SMS message via Plivo. Specify a source phone number (must be a Plivo number), one or more destination numbers, and the message text. Returns the message UUID and details.
integration__plivo__plivo_list_numbers plivo.plivo_list_numbers Read List phone numbers on your Plivo account. Supports filtering by number type, service, and pagination.
integration__plivo__plivo_get_number plivo.plivo_get_number Read Retrieve details of a specific phone number on your Plivo account by its number (e.g., "+14155552671"). Returns alias, application, service type, and other number properties.
integration__plivo__plivo_list_calls plivo.plivo_list_calls Read List calls from Plivo with optional filters. Supports filtering by direction (inbound/outbound), call state, date range, and phone numbers. Returns paginated call records.
integration__plivo__plivo_get_call plivo.plivo_get_call Read Retrieve detailed information about a specific Plivo call by its call UUID. Returns call details including duration, direction, status, and recording information.
integration__plivo__plivo_list_applications plivo.plivo_list_applications Read List Plivo voice applications on the account. Returns application IDs, names, answer/hangup URLs, and associated number counts.

Related Plivo Pages