@omnidim-ai/mcp-server 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Server configuration
4
4
  */
5
5
  export declare const SERVER_NAME = "OmniDimension";
6
- export declare const SERVER_VERSION = "0.2.0";
6
+ export declare const SERVER_VERSION = "0.5.0";
7
7
  export declare const API_BASE_URL: string;
8
8
  /**
9
9
  * Type definition for cached OAuth tokens
package/build/index.js CHANGED
@@ -4,9 +4,9 @@
4
4
  */
5
5
  import { readApiKey } from "./credentials.js";
6
6
  import { isInteractive, printInteractiveHelp, startupBanner, trimLargeResponse } from "./helpers.js";
7
+ import { beginSession, emitSessionCrash, emitSessionEnd, endSession, recordToolError, recordToolResult } from "./telemetry.js";
7
8
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
8
9
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
9
- import { beginSession, emitSessionCrash, emitSessionEnd, endSession, recordToolError, recordToolResult } from "./telemetry.js";
10
10
  import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
11
11
  import { z, ZodError } from 'zod';
12
12
  import { jsonSchemaToZod } from 'json-schema-to-zod';
@@ -15,7 +15,7 @@ import axios from 'axios';
15
15
  * Server configuration
16
16
  */
17
17
  export const SERVER_NAME = "OmniDimension";
18
- export const SERVER_VERSION = "0.2.0";
18
+ export const SERVER_VERSION = "0.5.0";
19
19
  // Base URL for the API, can be set via environment variable or determined from OpenAPI spec
20
20
  export const API_BASE_URL = process.env.API_BASE_URL || "https://backend.omnidim.io/api/v1";
21
21
  if (process.env.API_BASE_URL) {
@@ -33,12 +33,12 @@ Surfaces:
33
33
  - Knowledge base: upload PDFs and attach to agents.
34
34
  - Phone numbers: list, attach to agents, import from Twilio, Exotel, or SIP.
35
35
  - Providers: discover available LLMs, voices, STT, and TTS engines.
36
- - Simulations: run scripted test scenarios against an agent.
37
36
  - Reseller: child organization management (requires partner-level credentials; non-reseller keys get 403).
38
37
 
39
38
  Conventions:
40
39
  - List endpoints accept pageno (>= 1) and pagesize (1-150). Use name to filter.
41
40
  - For details on one item, call get<Resource>(id) after listing.
41
+ - Dispatching calls: run listPhoneNumbers first. If the account has numbers, pass the chosen one as from_number_id. If it has none, omit from_number_id and the platform's default number is used. Never guess a from_number_id.
42
42
  - Configure OMNIDIM_API_KEY in your MCP client config to authenticate.
43
43
  - API reference: https://docs.omnidim.io`;
44
44
  const server = new Server({ name: SERVER_NAME, version: SERVER_VERSION }, { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS });
@@ -63,7 +63,7 @@ config supports transcriber, model, voice, web search, transfer,
63
63
  end-call conditions, post-call actions (email + webhook),
64
64
  ambient background track, initial ringing sound, and multilingual support.
65
65
  `,
66
- inputSchema: { "type": "object", "properties": { "requestBody": { "allOf": [{ "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent.", "example": "Customer Support Agent" }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call.", "example": "Hello! How can I help you today?" }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" }, "example": { "customer_name": "Jane Doe", "order_id": "ORD-12345" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown.", "example": "Purpose" }, "body": { "type": "string", "description": "Body of the breakdown — the detailed prompt content.", "example": "This agent helps customers with product inquiries and support issues." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use.", "example": "deepgram_stream" }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`).", "example": "nova-3" }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n", "example": "en-US" }, "silence_timeout_ms": { "type": "integer", "description": "Silence timeout in milliseconds.", "example": 400 }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "integer", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption.", "example": 2 }, "max_call_duration_in_sec": { "type": "integer", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached.", "example": 600 }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "claude-3-7-sonnet-latest", "claude-3-opus-latest", "claude-opus-4-0", "claude-sonnet-4-0", "gemini-1.5-pro", "gemini-2.0-flash", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gemini-2.5-pro", "gemini-3-flash-preview", "gemini-3-pro-preview", "gemma2-9b-it", "gpt-3.5-turbo", "gpt-4o", "gpt-4o-mini", "gpt-5.4", "llama-3.3-70b-versatile", "llama3-70b-8192", "llama3-8b-8192"], "description": "The language model to use.", "example": "gpt-4o-mini" }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0).", "example": 0.7 } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "deepgram", "google", "cartesia", "rime"], "description": "The voice provider to use.", "example": "eleven_labs" }, "voice_id": { "type": "string", "description": "The specific external voice identifier from the provider.", "example": "JBFqnCBsd6RMkjVDRZzb" }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n", "example": "sonic-3.5" }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo"], "description": "The search provider to use.", "example": "DuckDuckGo" } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" }, "example": ["support@example.com"] }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "voicemail_detected"] } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload.", "example": "https://your-webhook-endpoint.com/omnidim-callback" }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "failed"] } } } } }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`.", "example": "+15551234567" }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option.", "example": "Transfer if the customer asks to speak with a human." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer.", "example": "Please hold while I connect you to one of our agents." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean" }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.", "example": "End the call once the customer's issue is resolved." }, "message": { "type": "string", "description": "What the agent says before hanging up.", "example": "Thank you for contacting us. Have a great day!" }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`.", "example": "End the call politely in the same language the user is speaking." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls.", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and react instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string.", "items": { "type": "string", "enum": ["English", "English (India)", "English (US)", "Hindi", "Bengali", "Spanish", "Tamil", "Marathi", "Telugu", "Gujarati", "French"] }, "example": ["English", "Hindi"] } } }, { "type": "object", "required": ["name", "welcome_message", "context_breakdown"] }], "description": "The JSON request body." } }, "required": ["requestBody"] },
66
+ inputSchema: { "type": "object", "properties": { "requestBody": { "allOf": [{ "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent.", "example": "Customer Support Agent" }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call.", "example": "Hello! How can I help you today?" }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" }, "example": { "customer_name": "Jane Doe", "order_id": "ORD-12345" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown.", "example": "Purpose" }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content.", "example": "This agent helps customers with product inquiries and support issues." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use.", "example": "deepgram_stream" }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`).", "example": "nova-3" }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n", "example": "en-US" }, "silence_timeout_ms": { "type": "integer", "description": "Silence timeout in milliseconds.", "example": 400 }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "integer", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption.", "example": 2 }, "max_call_duration_in_sec": { "type": "integer", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached.", "example": 600 }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. The current catalog is returned by the LLM providers list.", "example": "gpt-4.1-mini" }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0).", "example": 0.7 } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "google", "cartesia", "sarvam"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list.", "example": "eleven_labs" }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`).", "example": "JBFqnCBsd6RMkjVDRZzb" }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n", "example": "sonic-3.5" }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo"], "description": "The search provider to use.", "example": "DuckDuckGo" } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" }, "example": ["support@example.com"] }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "voicemail_detected"] } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload.", "example": "https://your-webhook-endpoint.com/omnidim-callback" }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] }, "example": ["completed", "failed"] } } } } }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`.", "example": "+15551234567" }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option.", "example": "Transfer if the customer asks to speak with a human." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer.", "example": "Please hold while I connect you to one of our agents." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean" }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.", "example": "End the call once the customer's issue is resolved." }, "message": { "type": "string", "description": "What the agent says before hanging up.", "example": "Thank you for contacting us. Have a great day!" }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`.", "example": "End the call politely in the same language the user is speaking." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls.", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and react instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.", "items": { "type": "string" }, "example": ["English (India)", "Hindi"] } } }, { "type": "object", "required": ["name", "welcome_message", "context_breakdown"] }], "description": "The JSON request body." } }, "required": ["requestBody"] },
67
67
  method: "post",
68
68
  pathTemplate: "/agents/create",
69
69
  executionParameters: [],
@@ -83,7 +83,7 @@ ambient background track, initial ringing sound, and multilingual support.
83
83
  ["updateAgent", {
84
84
  name: "updateAgent",
85
85
  description: `Update an existing agent. Send only the fields you want to change.`,
86
- inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent." }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown." }, "body": { "type": "string", "description": "Body of the breakdown — the detailed prompt content." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use." }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`)." }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n" }, "silence_timeout_ms": { "type": "number", "description": "Silence timeout in milliseconds." }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "number", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption." }, "max_call_duration_in_sec": { "type": "number", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached." }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "claude-3-7-sonnet-latest", "claude-3-opus-latest", "claude-opus-4-0", "claude-sonnet-4-0", "gemini-1.5-pro", "gemini-2.0-flash", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gemini-2.5-pro", "gemini-3-flash-preview", "gemini-3-pro-preview", "gemma2-9b-it", "gpt-3.5-turbo", "gpt-4o", "gpt-4o-mini", "gpt-5.4", "llama-3.3-70b-versatile", "llama3-70b-8192", "llama3-8b-8192"], "description": "The language model to use." }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0)." } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "deepgram", "google", "cartesia", "rime"], "description": "The voice provider to use." }, "voice_id": { "type": "string", "description": "The specific external voice identifier from the provider." }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n" }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo"], "description": "The search provider to use." } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" } }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload." }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } } } }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`." }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean" }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true." }, "message": { "type": "string", "description": "What the agent says before hanging up." }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls.", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and react instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string.", "items": { "type": "string", "enum": ["English", "English (India)", "English (US)", "Hindi", "Bengali", "Spanish", "Tamil", "Marathi", "Telugu", "Gujarati", "French"] } } } } }, "required": ["agent_id", "requestBody"] },
86
+ inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent." }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown." }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use." }, "model": { "type": "string", "enum": ["nova-3", "nova-2"], "description": "The model to use for transcription (required when provider is `deepgram_stream`)." }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n" }, "silence_timeout_ms": { "type": "number", "description": "Silence timeout in milliseconds." }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "number", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption." }, "max_call_duration_in_sec": { "type": "number", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached." }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. The current catalog is returned by the LLM providers list." }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0)." } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice.", "properties": { "provider": { "type": "string", "enum": ["eleven_labs", "google", "cartesia", "sarvam"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list." }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`)." }, "model": { "type": "string", "description": "TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n" }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo"], "description": "The search provider to use." } } }, "post_call_actions": { "type": "object", "description": "Side effects that fire once the call ends. Configure email, webhook, or both.", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" } }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload." }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload." }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no_answer", "busy", "cancelled"] } } } } } }, "transfer": { "type": "object", "description": "Conditional call transfer to a human agent or another number.", "properties": { "enabled": { "type": "boolean" }, "transfer_options": { "type": "array", "description": "Where to transfer the call and under what condition. The first matching condition wins.", "items": { "type": "object", "required": ["number", "transfer_condition", "transfer_message"], "properties": { "number": { "type": "string", "description": "Primary phone number to transfer to. Include country code with leading `+`." }, "type": { "type": "string", "enum": ["static", "dynamic"], "default": "static", "description": "`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n" }, "backup_numbers": { "type": "array", "description": "Fallback numbers tried if the primary is unreachable.", "items": { "type": "string" } }, "transfer_condition": { "type": "string", "description": "Natural-language condition that triggers this transfer option." }, "transfer_message": { "type": "string", "description": "Message the agent says to the caller before executing the transfer." } } } } } }, "end_call": { "type": "object", "description": "Hang up automatically when a condition is met.", "properties": { "enabled": { "type": "boolean" }, "condition": { "type": "string", "description": "Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true." }, "message": { "type": "string", "description": "What the agent says before hanging up." }, "message_type": { "type": "string", "enum": ["static", "prompt"], "description": "`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n" }, "message_prompt": { "type": "string", "description": "LLM prompt used to generate the closing line when `message_type` is `prompt`." } } }, "background_track": { "type": "object", "description": "Ambient background noise that plays under the agent's voice.", "properties": { "enabled": { "type": "boolean", "description": "Whether to mix the ambient track under the agent's audio." }, "name": { "type": "string", "enum": ["call_center", "filler", "office", "office_1", "restaurant"], "description": "Ambient track to mix under the agent." }, "volume": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.2, "description": "Volume level on a 0–1 scale. Default 0.2." }, "tts_volume_reduction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix." } } }, "initial_ringing_sound_enabled": { "type": "boolean", "description": "Plays a ringing tone after the call is picked up, until the agent starts speaking." }, "voicemail": { "type": "object", "description": "Voicemail / answering-machine handling for outbound calls.", "properties": { "enabled": { "type": "boolean", "description": "Detect voicemail and react instead of speaking to a machine." }, "message": { "type": "string", "description": "Message to leave when voicemail is detected." } } }, "languages": { "type": "array", "description": "Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.", "items": { "type": "string" } } } } }, "required": ["agent_id", "requestBody"] },
87
87
  method: "put",
88
88
  pathTemplate: "/agents/{agent_id}",
89
89
  executionParameters: [{ "name": "agent_id", "in": "path" }],
@@ -105,7 +105,7 @@ ambient background track, initial ringing sound, and multilingual support.
105
105
  description: `Initiate a call to a phone number using a specified agent. The
106
106
  phone number must include a country code with a leading plus.
107
107
  `,
108
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "to_number"], "properties": { "agent_id": { "type": "number", "description": "The ID of the agent that will handle the call." }, "to_number": { "type": "string", "description": "The phone number to call. Must include country code (e.g., +15551234567)." }, "from_number_id": { "type": "number", "description": "The imported phone number id to call." }, "call_context": { "type": "object", "description": "Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.", "additionalProperties": true } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
108
+ inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "to_number"], "properties": { "agent_id": { "type": "number", "description": "The ID of the agent that will handle the call." }, "to_number": { "type": "string", "description": "The phone number to call. Must include country code (e.g., +15551234567)." }, "from_number_id": { "type": "number", "description": "Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number." }, "call_context": { "type": "object", "description": "Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.", "additionalProperties": true } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
109
109
  method: "post",
110
110
  pathTemplate: "/calls/dispatch",
111
111
  executionParameters: [],
@@ -115,7 +115,7 @@ phone number must include a country code with a leading plus.
115
115
  ["listCallLogs", {
116
116
  name: "listCallLogs",
117
117
  description: `Retrieve call logs with pagination and optional filtering.`,
118
- inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Number of items per page." }, "agentid": { "type": "number", "description": "Filter by agent ID." }, "call_status": { "type": "string", "enum": ["completed", "busy", "failed", "no-answer"] }, "bulk_call_id": { "type": "number", "description": "Filter by bulk-call campaign ID." } } },
118
+ inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Number of items per page." }, "agentid": { "type": "number", "description": "Filter by agent ID." }, "call_status": { "type": "string", "enum": ["completed", "busy", "failed", "no-answer"], "description": "Filter by call outcome." }, "bulk_call_id": { "type": "number", "description": "Filter by bulk-call campaign ID." } } },
119
119
  method: "get",
120
120
  pathTemplate: "/calls/logs",
121
121
  executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "agentid", "in": "query" }, { "name": "call_status", "in": "query" }, { "name": "bulk_call_id", "in": "query" }],
@@ -125,7 +125,7 @@ phone number must include a country code with a leading plus.
125
125
  ["getCallLog", {
126
126
  name: "getCallLog",
127
127
  description: `Detailed information about a specific call (duration, status, transcript, sentiment, extracted variables).`,
128
- inputSchema: { "type": "object", "properties": { "call_log_id": { "type": "number" } }, "required": ["call_log_id"] },
128
+ inputSchema: { "type": "object", "properties": { "call_log_id": { "type": "number", "description": "Id of the call log, as returned by the call log list." } }, "required": ["call_log_id"] },
129
129
  method: "get",
130
130
  pathTemplate: "/calls/logs/{call_log_id}",
131
131
  executionParameters: [{ "name": "call_log_id", "in": "path" }],
@@ -135,7 +135,7 @@ phone number must include a country code with a leading plus.
135
135
  ["fetchBulkCalls", {
136
136
  name: "fetchBulkCalls",
137
137
  description: `List bulk-call campaigns with pagination and optional status filter.`,
138
- inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1 }, "pagesize": { "type": "integer", "minimum": 1, "default": 10, "maximum": 150, "description": "Items per page (max 150 — sending more returns 500)." }, "status": { "type": "string", "description": "Filter by status (e.g. completed)." } } },
138
+ inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 10, "maximum": 150, "description": "Items per page (max 150)." }, "status": { "type": "string", "description": "Filter by status (e.g. completed)." } } },
139
139
  method: "get",
140
140
  pathTemplate: "/calls/bulk_call",
141
141
  executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "status", "in": "query" }],
@@ -144,18 +144,48 @@ phone number must include a country code with a leading plus.
144
144
  }],
145
145
  ["createBulkCall", {
146
146
  name: "createBulkCall",
147
- description: `Create a new bulk-call campaign. Supports immediate, scheduled, and auto-retry modes.`,
148
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "contact_list", "phone_number_id"], "properties": { "name": { "type": "string", "description": "Name of the bulk call campaign." }, "phone_number_id": { "type": "string", "description": "Your phone number id to use for making calls." }, "contact_list": { "type": "array", "minItems": 1, "description": "Array of contact objects. Each row needs `phone_number`.\nAny other key you add on the row (e.g. `customer_name`,\n`account_id`, `priority`) is passed to the agent as a\ncontext variable for that specific call, so the agent\ncan reference it during the conversation.\n", "items": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "Phone number in international format (e.g., +15551234567)." } }, "additionalProperties": true } }, "is_scheduled": { "type": "boolean", "default": false, "description": "Whether the campaign should be scheduled for future execution." }, "scheduled_datetime": { "type": "string", "description": "Scheduled execution time in format `YYYY-MM-DD HH:MM:SS` (required if `is_scheduled` is true)." }, "timezone": { "type": "string", "default": "UTC", "description": "Timezone for scheduled execution." }, "concurrent_call_limit": { "type": "number", "default": 1, "minimum": 1, "description": "Maximum number of concurrent calls allowed." }, "enabled_reschedule_call": { "type": "boolean", "default": false, "description": "Enable automatic call rescheduling. When enabled the system can reschedule unreachable calls." }, "retry_config": { "type": "object", "description": "Auto-retry configuration object containing retry settings.", "properties": { "auto_retry": { "type": "boolean", "default": false }, "auto_retry_schedule": { "type": "string", "enum": ["immediately", "next_day", "scheduled_time"], "description": "When to retry failed calls." }, "retry_schedule_days": { "type": "number", "default": 0, "minimum": 0, "description": "Days to wait before a scheduled retry." }, "retry_schedule_hours": { "type": "number", "default": 0, "minimum": 0, "description": "Hours to wait before a scheduled retry." }, "retry_limit": { "type": "number", "default": 0, "minimum": 0, "maximum": 5, "description": "Maximum number of retry attempts (0–5)." } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
147
+ description: `Create a new bulk-call campaign. Supports immediate, scheduled,
148
+ and auto-retry modes.
149
+
150
+ There are two kinds of campaign:
151
+
152
+ - **Static** (default): you supply the full \`contact_list\` up
153
+ front and the campaign dials through it.
154
+ - **Dynamic**: set \`is_dynamic\` to \`true\` and the campaign accepts
155
+ contacts in real time via the Add contact to dynamic campaign
156
+ webhook. \`contact_list\` is optional here, so you can start the
157
+ campaign empty and feed it from a CRM, form, or automation. A
158
+ dynamic campaign stays alive waiting for contacts instead of
159
+ completing when its queue drains.
160
+ `,
161
+ inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id"], "properties": { "name": { "type": "string", "description": "Name of the bulk call campaign." }, "phone_number_id": { "type": "string", "description": "Your phone number id to use for making calls." }, "is_dynamic": { "type": "boolean", "default": false, "description": "Set to `true` to create a dynamic campaign that accepts\ncontacts in real time via the Add contact to dynamic\ncampaign webhook. When `true`, `contact_list` is optional\nand may be omitted to start the campaign empty.\n" }, "contact_list": { "type": "array", "description": "Array of contact objects. Each row needs `phone_number`.\nAny other key you add on the row (e.g. `customer_name`,\n`account_id`, `priority`) is passed to the agent as a\ncontext variable for that specific call, so the agent\ncan reference it during the conversation.\n\nRequired for static campaigns. Optional when `is_dynamic`\nis `true` (you can omit it and add contacts later via the\nwebhook).\n", "items": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "Phone number in international format (e.g., +15551234567)." } }, "additionalProperties": true } }, "is_scheduled": { "type": "boolean", "default": false, "description": "Whether the campaign should be scheduled for future execution." }, "scheduled_datetime": { "type": "string", "description": "Scheduled execution time in format `YYYY-MM-DD HH:MM:SS` (required if `is_scheduled` is true)." }, "timezone": { "type": "string", "default": "UTC", "description": "Timezone for scheduled execution." }, "concurrent_call_limit": { "type": "number", "default": 1, "minimum": 1, "description": "Maximum number of concurrent calls allowed." }, "enabled_reschedule_call": { "type": "boolean", "default": false, "description": "Enable automatic call rescheduling. When enabled the system can reschedule unreachable calls." }, "retry_config": { "type": "object", "description": "Auto-retry configuration object containing retry settings.", "properties": { "auto_retry": { "type": "boolean", "default": false }, "auto_retry_schedule": { "type": "string", "enum": ["immediately", "next_day", "scheduled_time"], "description": "When to retry failed calls." }, "retry_schedule_days": { "type": "number", "default": 0, "minimum": 0, "description": "Days to wait before a scheduled retry." }, "retry_schedule_hours": { "type": "number", "default": 0, "minimum": 0, "description": "Hours to wait before a scheduled retry." }, "retry_limit": { "type": "number", "default": 0, "minimum": 0, "maximum": 5, "description": "Maximum number of retry attempts (0–5)." } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
149
162
  method: "post",
150
163
  pathTemplate: "/calls/bulk_call/create",
151
164
  executionParameters: [],
152
165
  requestBodyContentType: "application/json",
153
166
  securityRequirements: [{ "BearerAuth": [] }]
154
167
  }],
168
+ ["addBulkCallContact", {
169
+ name: "addBulkCallContact",
170
+ description: `Push a single contact into a dynamic bulk-call campaign in real
171
+ time. Dynamic campaigns are created from the dashboard (Bulk Call
172
+ > Create New Campaign > Dynamic Campaign) and stay alive waiting
173
+ for contacts, so this webhook is how you feed them from a CRM,
174
+ form, or automation platform. The contact is queued immediately,
175
+ and the campaign starts calling it as soon as it is within
176
+ operating hours.
177
+ `,
178
+ inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "ID of the dynamic campaign to add the contact to." }, "requestBody": { "type": "object", "required": ["to_number"], "properties": { "to_number": { "type": "string", "description": "Contact phone number in international format (e.g., +15551234567)." }, "custom_variables": { "type": "object", "description": "Key-value pairs passed to the agent as context for this\ncall, so the agent can reference them during the\nconversation (e.g. the contact's name or reason for the\ncall). Match these keys to the variables used in your\nagent's welcome message or prompt.\n", "additionalProperties": true }, "metadata": { "type": "object", "description": "Key-value pairs stored on the contact for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent.\n", "additionalProperties": true } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
179
+ method: "post",
180
+ pathTemplate: "/calls/bulk_call/{campaign_id}/add_contact",
181
+ executionParameters: [{ "name": "campaign_id", "in": "path" }],
182
+ requestBodyContentType: "application/json",
183
+ securityRequirements: [{ "BearerAuth": [] }]
184
+ }],
155
185
  ["getBulkCall", {
156
186
  name: "getBulkCall",
157
187
  description: `Get detailed information about a bulk-call campaign.`,
158
- inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number" } }, "required": ["bulk_call_id"] },
188
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
159
189
  method: "get",
160
190
  pathTemplate: "/calls/bulk_call/{bulk_call_id}",
161
191
  executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
@@ -165,7 +195,7 @@ phone number must include a country code with a leading plus.
165
195
  ["bulkCallActions", {
166
196
  name: "bulkCallActions",
167
197
  description: `Pause, resume, or reschedule a running campaign.`,
168
- inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number" }, "requestBody": { "type": "object", "required": ["action"], "properties": { "action": { "type": "string", "enum": ["pause", "resume", "reschedule"], "description": "What to do with the campaign." }, "new_scheduled_datetime": { "type": "string", "description": "New start time for `reschedule`. Format `YYYY-MM-DD HH:MM:SS`." }, "new_timezone": { "type": "string", "description": "IANA timezone for `reschedule`." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
198
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["action"], "properties": { "action": { "type": "string", "enum": ["pause", "resume", "reschedule"], "description": "What to do with the campaign." }, "new_scheduled_datetime": { "type": "string", "description": "New start time for `reschedule`. Format `YYYY-MM-DD HH:MM:SS`." }, "new_timezone": { "type": "string", "description": "IANA timezone for `reschedule`." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
169
199
  method: "put",
170
200
  pathTemplate: "/calls/bulk_call/{bulk_call_id}",
171
201
  executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
@@ -175,7 +205,7 @@ phone number must include a country code with a leading plus.
175
205
  ["cancelBulkCall", {
176
206
  name: "cancelBulkCall",
177
207
  description: `Cancel a bulk-call campaign.`,
178
- inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number" } }, "required": ["bulk_call_id"] },
208
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
179
209
  method: "delete",
180
210
  pathTemplate: "/calls/bulk_call/{bulk_call_id}",
181
211
  executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
@@ -185,7 +215,7 @@ phone number must include a country code with a leading plus.
185
215
  ["getBulkCallLiveStatus", {
186
216
  name: "getBulkCallLiveStatus",
187
217
  description: `Real-time status of a running bulk-call campaign.`,
188
- inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number" } }, "required": ["bulk_call_id"] },
218
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
189
219
  method: "get",
190
220
  pathTemplate: "/bulk-call/{bulk_call_id}/live-status",
191
221
  executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
@@ -255,7 +285,7 @@ phone number must include a country code with a leading plus.
255
285
  ["listPhoneNumbers", {
256
286
  name: "listPhoneNumbers",
257
287
  description: `Retrieve all phone numbers associated with your account.`,
258
- inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1 }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150 } } },
288
+ inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Items per page (max 150)." } } },
259
289
  method: "get",
260
290
  pathTemplate: "/phone_number/list",
261
291
  executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }],
@@ -368,93 +398,13 @@ Other providers support basic pagination only.
368
398
  ["getVoice", {
369
399
  name: "getVoice",
370
400
  description: `Detailed metadata for a specific voice.`,
371
- inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number" } }, "required": ["voice_id"] },
401
+ inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number", "description": "Numeric id of the voice, as returned in the `id` field of the voices list." } }, "required": ["voice_id"] },
372
402
  method: "get",
373
403
  pathTemplate: "/providers/voice/{voice_id}",
374
404
  executionParameters: [{ "name": "voice_id", "in": "path" }],
375
405
  requestBodyContentType: undefined,
376
406
  securityRequirements: [{ "BearerAuth": [] }]
377
407
  }],
378
- ["listSimulations", {
379
- name: "listSimulations",
380
- description: `Retrieve simulations with pagination.`,
381
- inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1 }, "pagesize": { "type": "integer", "minimum": 1, "default": 10, "maximum": 150 } } },
382
- method: "get",
383
- pathTemplate: "/simulations",
384
- executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }],
385
- requestBodyContentType: undefined,
386
- securityRequirements: [{ "BearerAuth": [] }]
387
- }],
388
- ["createSimulation", {
389
- name: "createSimulation",
390
- description: `Create a new test simulation with scenarios.`,
391
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "agent_id"], "properties": { "name": { "type": "string", "description": "Name of the simulation." }, "agent_id": { "type": "number", "description": "ID of the agent to test." }, "number_of_call_to_make": { "type": "number", "default": 1, "minimum": 1, "maximum": 3, "description": "Number of calls to make per scenario (default 1, max 3)." }, "concurrent_call_count": { "type": "number", "default": 3, "minimum": 1, "maximum": 3, "description": "Number of concurrent calls to run (default 3, max 3)." }, "max_call_duration_in_minutes": { "type": "number", "default": 3, "minimum": 1, "maximum": 10, "description": "Maximum duration for each call in minutes (default 3, max 10)." }, "scenarios": { "type": "array", "description": "List of test scenarios to execute.", "items": { "type": "object", "required": ["name", "description", "expected_result"], "properties": { "name": { "type": "string", "description": "Name of the test scenario." }, "description": { "type": "string", "description": "Detailed instructions for the test scenario." }, "expected_result": { "type": "string", "description": "Expected outcome or behavior from the agent." }, "selected_voices": { "type": "array", "description": "Voice configurations for the test calls. If multiple voices are selected, the agent randomly picks one per call per scenario.", "items": { "type": "object", "required": ["id", "provider"], "properties": { "id": { "type": "string", "description": "Voice ID from the provider." }, "provider": { "type": "string", "enum": ["eleven_labs", "play_ht", "deepgram", "cartesia", "rime"] } } } } } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
392
- method: "post",
393
- pathTemplate: "/simulations",
394
- executionParameters: [],
395
- requestBodyContentType: "application/json",
396
- securityRequirements: [{ "BearerAuth": [] }]
397
- }],
398
- ["getSimulation", {
399
- name: "getSimulation",
400
- description: `Detailed simulation information.`,
401
- inputSchema: { "type": "object", "properties": { "simulation_id": { "type": "number" } }, "required": ["simulation_id"] },
402
- method: "get",
403
- pathTemplate: "/simulations/{simulation_id}",
404
- executionParameters: [{ "name": "simulation_id", "in": "path" }],
405
- requestBodyContentType: undefined,
406
- securityRequirements: [{ "BearerAuth": [] }]
407
- }],
408
- ["updateSimulation", {
409
- name: "updateSimulation",
410
- description: `Update an existing simulation. Pass the full \`scenarios\` array (existing entries you want to keep plus any changes).`,
411
- inputSchema: { "type": "object", "properties": { "simulation_id": { "type": "number" }, "requestBody": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the simulation for identification." }, "agent_id": { "type": "number", "description": "ID of the agent to test." }, "number_of_call_to_make": { "type": "number", "minimum": 1, "maximum": 3, "description": "Number of calls to make per scenario (default 1, max 3)." }, "concurrent_call_count": { "type": "number", "minimum": 1, "maximum": 3, "description": "Number of concurrent calls to run (default 3, max 3)." }, "max_call_duration_in_minutes": { "type": "number", "minimum": 1, "maximum": 10, "description": "Maximum duration for each call in minutes (default 3, max 10)." }, "scenarios": { "type": "array", "description": "Full scenario list. Include existing scenarios you want to keep, plus any new or updated ones.", "items": { "type": "object", "required": ["name", "description", "expected_result"], "properties": { "id": { "type": "number", "description": "Include this to update an existing scenario; omit it to add a new one." }, "name": { "type": "string", "description": "Name of the test scenario." }, "description": { "type": "string", "description": "Updated instructions for the test scenario." }, "expected_result": { "type": "string", "description": "Updated expected outcome from the agent." }, "selected_voices": { "type": "array", "description": "Updated voice configurations for the test calls.", "items": { "type": "object", "required": ["id", "provider"], "properties": { "id": { "type": "string", "description": "Voice ID from the provider." }, "provider": { "type": "string", "enum": ["eleven_labs", "play_ht", "deepgram", "cartesia", "rime"] } } } } } } } }, "description": "The JSON request body." } }, "required": ["simulation_id", "requestBody"] },
412
- method: "put",
413
- pathTemplate: "/simulations/{simulation_id}",
414
- executionParameters: [{ "name": "simulation_id", "in": "path" }],
415
- requestBodyContentType: "application/json",
416
- securityRequirements: [{ "BearerAuth": [] }]
417
- }],
418
- ["deleteSimulation", {
419
- name: "deleteSimulation",
420
- description: `Permanently delete a simulation.`,
421
- inputSchema: { "type": "object", "properties": { "simulation_id": { "type": "number" } }, "required": ["simulation_id"] },
422
- method: "delete",
423
- pathTemplate: "/simulations/{simulation_id}",
424
- executionParameters: [{ "name": "simulation_id", "in": "path" }],
425
- requestBodyContentType: undefined,
426
- securityRequirements: [{ "BearerAuth": [] }]
427
- }],
428
- ["startSimulation", {
429
- name: "startSimulation",
430
- description: `Begin running a simulation. Optionally update scenarios at start time (same shape as Update simulation).`,
431
- inputSchema: { "type": "object", "properties": { "simulation_id": { "type": "number" }, "requestBody": { "type": "object", "properties": { "scenarios": { "type": "array", "description": "Optional array of scenarios to update before starting.", "items": { "type": "object", "required": ["name", "description", "expected_result"], "properties": { "id": { "type": "number", "description": "Include this to update an existing scenario; omit it to add a new one." }, "name": { "type": "string" }, "description": { "type": "string", "description": "Updated instructions for the test scenario." }, "expected_result": { "type": "string", "description": "Updated expected outcome from the agent." }, "selected_voices": { "type": "array", "description": "Updated voice configurations for the test calls.", "items": { "type": "object", "required": ["id", "provider"], "properties": { "id": { "type": "string", "description": "Voice ID from the provider." }, "provider": { "type": "string", "enum": ["eleven_labs", "play_ht", "deepgram", "cartesia", "rime"] } } } } } } } }, "description": "The JSON request body." } }, "required": ["simulation_id"] },
432
- method: "post",
433
- pathTemplate: "/simulations/{simulation_id}/start",
434
- executionParameters: [{ "name": "simulation_id", "in": "path" }],
435
- requestBodyContentType: "application/json",
436
- securityRequirements: [{ "BearerAuth": [] }]
437
- }],
438
- ["stopSimulation", {
439
- name: "stopSimulation",
440
- description: `Stop a running simulation.`,
441
- inputSchema: { "type": "object", "properties": { "simulation_id": { "type": "number" } }, "required": ["simulation_id"] },
442
- method: "post",
443
- pathTemplate: "/simulations/{simulation_id}/stop",
444
- executionParameters: [{ "name": "simulation_id", "in": "path" }],
445
- requestBodyContentType: undefined,
446
- securityRequirements: [{ "BearerAuth": [] }]
447
- }],
448
- ["enhancePrompt", {
449
- name: "enhancePrompt",
450
- description: `Generate prompt-improvement suggestions for a completed simulation.`,
451
- inputSchema: { "type": "object", "properties": { "simulation_id": { "type": "number" } }, "required": ["simulation_id"] },
452
- method: "post",
453
- pathTemplate: "/simulations/{simulation_id}/enhance-prompt",
454
- executionParameters: [{ "name": "simulation_id", "in": "path" }],
455
- requestBodyContentType: undefined,
456
- securityRequirements: [{ "BearerAuth": [] }]
457
- }],
458
408
  ["listChildOrganizations", {
459
409
  name: "listChildOrganizations",
460
410
  description: `List all child organizations and their users under the reseller
@@ -1022,8 +972,6 @@ async function cleanup() {
1022
972
  // Register signal handlers
1023
973
  process.on('SIGINT', cleanup);
1024
974
  process.on('SIGTERM', cleanup);
1025
- // A crash never runs the graceful-shutdown path, so flush a session_crash
1026
- // (with the session's tool-call summary) before exiting.
1027
975
  process.on('uncaughtException', async (error) => {
1028
976
  try {
1029
977
  await emitSessionCrash(error);