mcp

v0.1.4
@slng-ai/mcp Checked 8 hours ago Published 1 month ago

SLNG MCP server: create SLNG managed voice agents, attach phone numbers and place outbound calls from AI assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

slng_whoami Show the SLNG account

Shows the SLNG organization that owns the configured API key (id, name, tier, key label), the gateway host that answered, the versions of this connector, of the Unmute CLI it builds with and of uv (which Unmute uses to read state.py), and the active policy source and residency setting.

slng_list_regions List SLNG agent regions

Lists the 16 SLNG agent regions: 13 SLNG Managed and 3 LiveKit Cloud, each with its hosting, gateway host and whether phone numbers added in the SLNG dashboard are expected to work there. Given the number to call (E.164) or a country (ISO code), it also returns a suggested region with its reason: the SLNG Managed region for that country. For calls (for_calls, or whenever phone_number is given) a country with no SLNG Managed region gets the nearest LiveKit Cloud region instead.

ParameterTypeDescription
countrystringA two-letter ISO country code, for example ES or JP, when there is no number.
for_callsbooleanSuggest a region for placing phone calls. Defaults to true when phone_number is given.
phone_numberstringThe number to call, in E.164 format, for example +34911234567.

slng_get_capabilities Get models and voices for a region

Lists the speech-to-text, LLM and text-to-speech models an SLNG agent may use in one region and language (the agent catalog plus enabled bring-your-own LLMs, filtered by the active policy), each with where it has deployments and whether it runs in the region; the voices of the allowed TTS models (the first 20 of each, or every voice of one model with tts_model, paged); the suggested model and voice picks with their reasons; the allowed tool types and templates. With in_region_only, models that do not run in the region are left out.

ParameterTypeDescription
language *stringAgent language as a language code, for example en, es, ja or en-US.
in_region_onlybooleanLeave out models with no deployment in the region.
regionstringAgent region code, for example eu-central-livekit, us-east or jp (see slng_list_regions). Required.
tts_modelstringA TTS model code from this list, to page through all of its voices.
voice_limitintegerWith tts_model: how many voices to return (default 50, at most 100).
voice_offsetintegerWith tts_model: how many voices to skip (default 0).

slng_list_agents List SLNG agents

Lists the voice agents in the SLNG organization, most recently updated first, with id, name, region and its hosting, language, the attached outbound number (trunk id) and whether SLNG reports a problem with the saved model settings. Filters by part of the name or by region; pages with limit and offset.

ParameterTypeDescription
limitintegerHow many agents to return (default 50, at most 200).
name_containsstringOnly agents whose name contains this text (case-insensitive).
offsetintegerHow many agents to skip (default 0).
regionstringOnly agents in this agent region code, for example eu-central-livekit.

slng_list_phone_numbers List phone numbers for an agent

Lists the outbound phone numbers (SIP trunks added in the SLNG dashboard) that one agent can use, as SLNG decides them, with each number's caller ID pool, status and whether it is attached now, plus the numbers it cannot use with the reason. Fails with NO_NUMBER_IN_REGION when the agent has no usable outbound number.

ParameterTypeDescription
agent_id *stringThe agent id (from slng_list_agents or a deploy result).

slng_build_agent Build and check an SLNG agent

Builds an SLNG voice agent for one region and language without deploying it: from the outbound-call template and its fields, or from a whole Unmute package (files, or package_path on a local server). Picks the models and voice (the user's choice, else ones that run in the region, else the closest, with the dashboard defaults as tie-breaker), injects the active policy, runs unmute validate and unmute compile offline and checks the result against what SLNG offers there. Returns the package hash, the agent name to be deployed, each model and voice with the reason it was picked and where it runs,…

ParameterTypeDescription
language *stringAgent language as a language code, for example en, es, ja or en-US.
fieldsobjectThe outbound-call template fields: agent_name, purpose, on_behalf_of, and optionally persona, greeting (the first thing the agent says; required for non-English), goodbye (fixed text the hang-up tool…
filesobjectA whole Unmute package as a map of path to text: agent.yaml, targets.yaml, state.py, Markdown prompts (*.md at the root or in prompts/, tasks/ or agents/), tools/*.yaml and connections/*.yaml.
in_region_onlybooleanRefuse models with no deployment in the region.
modelsobjectTemplate path only: model codes chosen by the user (from slng_get_capabilities); omitted roles follow the placement rule and defaults.
package_pathstringA local Unmute package directory (only when this server runs locally over stdio).
regionstringAgent region code, for example eu-central-livekit, us-east or jp (see slng_list_regions). Required.
templatestringThe template to render; outbound-call is the only one. Implied by fields.
voicestringTemplate path only: a voice id of the chosen TTS model.

slng_deploy_agent Deploy an SLNG agent

Deploys a voice agent to SLNG in the chosen region, in two steps. Without confirm_token it is a dry run: it builds the agent like slng_build_agent and returns the plan (create, or replace an agent with the same name; the tools, MCP servers, tasks and task groups a replace removes; the agent's tasks and task groups; the phone numbers kept; the organization; the models and where they run; the greeting and the goodbye) plus a confirm token that expires in 10 minutes. With that token it checks that nothing changed, then creates or replaces the agent and returns its id, name and version label. Repl…

ParameterTypeDescription
language *stringAgent language as a language code, for example en, es, ja or en-US.
confirm_replace_foreignbooleanAllow replacing an existing agent with the same name that this connector did not create. Needed on the dry run and the real run.
confirm_tokenstringThe token from this tool's dry run, after the user confirmed its plan. Without it the call is a dry run.
fieldsobjectThe outbound-call template fields: agent_name, purpose, on_behalf_of, and optionally persona, greeting (the first thing the agent says; required for non-English), goodbye (fixed text the hang-up tool…
filesobjectA whole Unmute package as a map of path to text: agent.yaml, targets.yaml, state.py, Markdown prompts (*.md at the root or in prompts/, tasks/ or agents/), tools/*.yaml and connections/*.yaml.
in_region_onlybooleanRefuse models with no deployment in the region.
modelsobjectTemplate path only: model codes chosen by the user (from slng_get_capabilities); omitted roles follow the placement rule and defaults.
package_pathstringA local Unmute package directory (only when this server runs locally over stdio).
regionstringAgent region code, for example eu-central-livekit, us-east or jp (see slng_list_regions). Required.
templatestringThe template to render; outbound-call is the only one. Implied by fields.
voicestringTemplate path only: a voice id of the chosen TTS model.

slng_attach_phone_number Attach a phone number to an agent

Attaches an outbound phone number (a SIP trunk from the SLNG dashboard) to an agent, so its calls go out from that number. Only numbers SLNG lists as usable for that agent are accepted; attaching the number that is already attached changes nothing. Returns the agent and the attached number.

ParameterTypeDescription
agent_id *stringThe agent id (from slng_list_agents or a deploy result).
trunk_id *stringThe trunk id of a usable number from slng_list_phone_numbers.

slng_prepare_call Preview a phone call

Checks and previews an outbound call from an SLNG agent without dialing: the agent and its region, the number it calls from (the attached one, or another usable one for this call only) with its caller ID pool and the chosen caller ID, the number to call and its country, the call values checked against what the agent requires and SLNG's limits, and the greeting the callee hears first. Refuses invalid, premium-rate or not-allowed numbers, agents without a usable outbound number or with invalid saved settings, and calls over this server's caps. Returns a confirm token, valid for 10 minutes, for s…

ParameterTypeDescription
agent_id *stringThe agent id (from slng_list_agents or a deploy result).
phone_number *stringThe number to call in E.164 format, for example +34911234567.
argumentsobjectThe values the agent needs for this call, as text, for example {"callee_name": "Dr. Ruiz"}.
from_numberstringThe caller ID the callee sees, in E.164: one of the caller ID numbers of the number the call goes out on. Without it SLNG uses that number's default.
number_was_looked_upbooleanTrue when the assistant found the number itself rather than the user giving it.
trunk_idstringThe outbound number to call from, for this call only: the trunk id of a usable number from slng_list_phone_numbers. Without it the call goes out on the number attached to the agent.

slng_place_call Place a phone call

Places the outbound call that slng_prepare_call previewed, with the same values and its confirm token. It checks again that the agent, the number it calls from and its caller ID, the number to call and the values are unchanged, then asks SLNG to dial. Returns the call id once SLNG accepted the call, which means dispatched, not yet answered. When SLNG's answer is lost after the request was sent, the call may be live: it is looked up in the agent's recent calls, and redialing that number from that agent is blocked until the outcome is known.

ParameterTypeDescription
agent_id *stringThe agent id (from slng_list_agents or a deploy result).
phone_number *stringThe number to call in E.164 format, for example +34911234567.
argumentsobjectThe values the agent needs for this call, as text, for example {"callee_name": "Dr. Ruiz"}.
confirm_tokenstringThe token slng_prepare_call returned for these values.
from_numberstringThe caller ID the callee sees, in E.164: one of the caller ID numbers of the number the call goes out on. Without it SLNG uses that number's default.
number_was_looked_upbooleanTrue when the assistant found the number itself rather than the user giving it.
trunk_idstringThe outbound number to call from, for this call only: the trunk id of a usable number from slng_list_phone_numbers. Without it the call goes out on the number attached to the agent.

slng_get_call Get a call and its transcript

Reads one call of an agent: status (dispatching, dispatched, in_progress, completed or failed), the caller ID it went out with, times (including when the callee answered) and how the dial ended, duration, the end reason in plain words, whether SLNG has finalized it, the outcome values the agent recorded, a summary of its tool executions, its task and task group runs (status, steps and saved values; the runs show while the call is live, the values once it is finalized), and the transcript turns once the call is finalized (from the session report, best effort, paged with turn_offset and turn_lim…

ParameterTypeDescription
agent_id *stringThe agent id (from slng_list_agents or a deploy result).
call_id *stringThe call id (from slng_place_call or a call list).
turn_limitintegerHow many transcript turns to return (default 50, at most 200).
turn_offsetintegerHow many transcript turns to skip (default 0).

slng_create_test_session Start a browser test session

Starts a web test session with an SLNG agent, as a LiveKit room the agent joins, without a phone call. Takes the same call values as a phone call. Returns the LiveKit URL, a join token, the room name, the session id and the maximum session length, plus how to join. The session is billed like a call.

ParameterTypeDescription
agent_id *stringThe agent id (from slng_list_agents or a deploy result).
argumentsobjectThe values the agent needs for this session, as text, for example {"callee_name": "Test"}.
participant_namestringThe name shown for the person joining (default "SLNG MCP test").

slng_delete_agent Delete an SLNG agent

Deletes an SLNG agent (a soft delete: it stops taking calls and disappears from the agent list). Needs confirm: true, and refuses while the agent may have a live call: one SLNG lists as dispatching, dispatched or in progress, or one this server placed whose outcome is not known yet. Its phone numbers stay in the organization.

ParameterTypeDescription
agent_id *stringThe agent id (from slng_list_agents or a deploy result).
confirmbooleanMust be true: the user confirmed deleting this agent.

slng_get_agent_guide Read the agent guide

Reads the guide for writing an SLNG voice agent as an Unmute package: Unmute's own authoring skill, pinned to the Unmute version this server builds with (prompting, tasks and task groups, call state in state.py, tools, conversation, latency), and this server's overlay, which says what differs when slng_build_agent and slng_deploy_agent build and deploy it (no commands to run, the server owns region, manifest and models, the files and state.py it accepts, SLNG's task rules). Read the overlay and the index before writing a package or a non-trivial prompt, then the references the agent needs. A l…

ParameterTypeDescription
sectionstringA section id from sections or next_section of an earlier answer.
topicstringoverlay (this server's rules, read first; the default), index (the skill's entry page), or a reference: orchestration, variables, prompting, tools, conversation, latency, package, models, telephony, t…