Skip to main content
Connector guides

Connect Yealink YMCS

The Yealink Management Cloud Service (YMCS) manages Yealink IP phones and room devices from the cloud: provisioning, configuration, firmware and diagnostics. StackJack connects an AI assistant to the…

Written By Christopher Scaminaci

Last updated About 1 hour ago

The Yealink Management Cloud Service (YMCS) manages Yealink IP phones and room devices from the cloud: provisioning, configuration, firmware and diagnostics. StackJack connects an AI assistant to the YMCS Open API (V4X, device management) of one YMCS enterprise.

Connecting Yealink YMCS to StackJack gives your AI assistant a family of ymcs_ MCP tools. MCP (Model Context Protocol) tools are the standardized commands an AI assistant can call through StackJack. With them, your AI can:

  • Read the fleet - list and read devices, their accessories (such as speakerphones, cameras and room sensors), device groups, sites, accounts, models and firmware, count devices by status, and read a device's configuration layers
  • Watch quality and health - list call quality (QoE) records and statistics, alarms and the enterprise's operation logs
  • Manage devices (on Pro plans) - add devices by MAC address and serial number, rename them, move them between sites and groups, delete them, restart them or restore them to factory settings
  • Manage configuration (on Pro plans) - create, change and push device, site, group and room device configurations, push firmware, and create SIP accounts and bind them to devices
  • Provision new phones (on Pro plans) - add phones to RPS (Redirection and Provisioning Service) so they reach your provisioning server on their first boot, and manage the RPS server entries
  • Diagnose a device (on Pro plans) - capture packets, take a screenshot, export the system log or the configuration, and run a ping or a traceroute from the device

YMCS gives each enterprise one Open API client ID and client secret. StackJack sends them to your region's YMCS host only, receives a token, and sends the token on every call. Every call also carries the time and a random value, as YMCS requires. StackJack gets a new token before the current one runs out.

Getting the credentials

  1. In YMCS, get your enterprise's Open API client ID and client secret. An enterprise has only one set, so every tool that uses the YMCS API shares it.
  2. Note your enterprise's region: EU, US, AU or UAE. The credentials work only in that region.

Yealink: Open API for YMCS V4X has the details.

One connection is one YMCS enterprise

A connection reads and changes one YMCS enterprise. If you manage several enterprises, add one named connection for each.

Connect it in StackJack

  1. Open Connectors, then Yealink YMCS.
  2. Select the Region your enterprise is hosted in. The wrong region gives an error that looks like a wrong secret.
  3. Paste the Client ID and the Client secret.
  4. Click Save. StackJack stores the connection and then checks it: it gets a new token and reads the phone model list, which changes nothing.

To check a saved connection again later, use Test on its row. The test uses the credentials that are saved, so save new ones before you test them.

Select the region and enter the client ID and secret again whenever you save this form. To rename a connection, use Rename in the connections list: a rename needs no credentials.

What is worth knowing before you start

Device types and paging

Many tools ask for a device type: 1 is a phone device and 3 is a room device. Lists page with skip and limit (at most 500, and at most 100 for the device list); set autoCount to true on the first page to get the total.

Changes that are marked destructive

Most changes are Pro and are marked destructive, because each one changes devices that people use, or acts on them right away:

  • Devices - deleting devices, changing a device, restarting devices and restoring devices or their accessories to factory settings.
  • Configuration - creating, changing, deleting and pushing device, site, group and room device configurations, and adding or removing devices from a group, which changes the group configuration they get.
  • Firmware - pushing a firmware, which makes the devices upgrade and restart.
  • Accounts - binding and unbinding accounts on a device, changing and deleting accounts.
  • RPS - adding a device to RPS, which sends the phone to a provisioning server on its first boot and after every factory reset, and changing or deleting RPS devices and server entries.
  • Sites - changing and deleting sites.
  • Packet capture - starting a capture, which can record call audio for up to an hour.

Thirteen changes are not marked destructive: adding devices, creating a device group, a SIP account, a site or an RPS server entry, and the read-only diagnostics (stopping a capture, a screenshot, the system log, the configuration export, a ping and a traceroute).

StackJack marks these tools as destructive. Whether your AI application asks for confirmation depends on its settings: some clients prompt before every tool call, some prompt only for tools the server marked destructive, some remember an earlier "always allow", and some never prompt. Review those settings, and leave out the tools a connection does not need. How tools work has the details.

StackJack never sends a change twice. When YMCS does not confirm a change, the tool says so: read the record back before you try again, so that a device is not restarted or reset twice.

Batch changes

A change that acts on many items at once (adding, deleting, restarting or resetting devices, pushing firmware) answers with how many succeeded and how many failed, and why each failure happened. A successful answer can still list failures, so read the whole answer.

Running a diagnostic

A diagnostic (a packet capture, a screenshot, a system log, a configuration export, a ping or a traceroute) runs on the device in the background and answers with a diagnosis ID. Ask for the diagnosis status to get the result: when it succeeds, the answer has a download link to the file. Anyone who holds the link can download the file until the link expires, and an exported configuration can hold passwords.

Secrets in answers

A configuration's text can hold account and admin passwords. StackJack removes configuration text from answers unless you ask for secrets on that call.

Rate limit

YMCS allows about 50 requests a second for the whole enterprise, shared by every tool that uses its credentials. StackJack paces one connection at about ten calls a second, and when YMCS answers that there are too many requests, it waits at least 30 seconds, as YMCS asks.

  • The credentials were refused: the client ID or secret is not valid, or the region is wrong. Check all three and save the connection again.
  • Something else answered: a proxy or a firewall replied instead of YMCS. The credentials were not judged. Try again later.
  • Not allowed (403): YMCS refused this operation for the enterprise.
  • Not found (404): check the id. Ask your AI to list the devices, sites or configurations first.
  • A refused request (400): a value was missing or not accepted. YMCS's answer names the problem.
  • Too many requests (429): wait at least 30 seconds before you try again.
  • An outage (5xx): wait and try again.

Tool reference

See the generated Yealink YMCS tool reference for the current inventory, plan assignment, input schemas and destructive-action labels.

ymcs_ · 90 tools · Free 37 · Pro 53

Devices

ToolWhat it does
ymcs_add_device
Pro · Write
Adds one phone or room device to the enterprise by its MAC address and serial number (SN).
ymcs_add_devices
Pro · Write
Adds up to 100 phone or room devices to the enterprise in one call, each by its MAC address and serial number.
ymcs_add_devices_by_mac
Pro · Write
Adds up to 100 phone or room devices by MAC address only, without a serial number.
ymcs_count_devices
Free · Read-only
Counts the enterprise's devices, all of them or those with one device status or device type.
ymcs_delete_device
Pro · Destructive
DESTRUCTIVE.
ymcs_delete_devices
Pro · Destructive
DESTRUCTIVE.
ymcs_find_device_ids
Free · Read-only
Finds the device IDs of up to 200 devices from their MAC addresses.
ymcs_get_device
Free · Read-only
Gets one device: its model, site, IP address, status, firmware, accounts and reported data, with WiFi, sensor or people-count data on request.
ymcs_get_device_combined_config
Free · Read-only
Gets the four configuration layers that apply to one device: its own (MAC) configuration, its site's, the enterprise's and the site's enforced configuration, each as configuration file text.
ymcs_list_devices
Free · Read-only
Lists the enterprise's devices, filtered by MAC, model, device status, account status, device type or site.
ymcs_list_models
Free · Read-only
Lists the device models of one device type: the modelId values the add, filter and configuration tools take.
ymcs_update_device
Pro · Destructive
DESTRUCTIVE.

Device control

ToolWhat it does
ymcs_factory_reset_devices
Pro · Destructive
DESTRUCTIVE.
ymcs_reboot_devices
Pro · Destructive
DESTRUCTIVE.

Device groups

ToolWhat it does
ymcs_add_devices_to_group
Pro · Destructive
DESTRUCTIVE.
ymcs_create_device_group
Pro · Write
Creates a device group.
ymcs_delete_device_group
Pro · Destructive
DESTRUCTIVE.
ymcs_list_device_groups
Free · Read-only
Lists the device groups, optionally of one device type.
ymcs_list_group_devices
Free · Read-only
Lists the devices in one device group, filtered by MAC, model or device status.
ymcs_remove_devices_from_group
Pro · Destructive
DESTRUCTIVE.
ymcs_update_device_group
Pro · Destructive
DESTRUCTIVE.

Accessories

ToolWhat it does
ymcs_factory_reset_device_accessories
Pro · Destructive
DESTRUCTIVE.
ymcs_get_device_accessory
Free · Read-only
Gets one accessory of a device; a sensor's answer adds its battery level, humidity, light level, temperature, people count and occupancy.
ymcs_get_device_accessory_properties
Free · Read-only
Gets an accessory's current sensor readings: people count, temperature and humidity.
ymcs_list_accessories_of_devices
Free · Read-only
Lists the accessories of up to 200 devices in one call.
ymcs_list_device_accessories
Free · Read-only
Lists the accessories (for example a speakerphone, a camera or a sensor) connected to one device.
ymcs_reboot_device_accessories
Pro · Destructive
DESTRUCTIVE.

Accounts

ToolWhat it does
ymcs_bind_device_accounts
Pro · Destructive
DESTRUCTIVE.
ymcs_create_sip_account
Pro · Write
Creates a SIP account (register name, user name, password and one or two SIP servers) that can then be bound to a device.
ymcs_delete_accounts
Pro · Destructive
DESTRUCTIVE.
ymcs_list_accounts
Free · Read-only
Lists the enterprise's accounts, optionally by a user-name keyword.
ymcs_list_device_bound_accounts
Free · Read-only
Lists the accounts bound to one device, with each account's line, type, server and user name.
ymcs_unbind_device_accounts
Pro · Destructive
DESTRUCTIVE.
ymcs_update_sip_account
Pro · Destructive
DESTRUCTIVE.

Device configurations

ToolWhat it does
ymcs_create_device_config
Pro · Destructive
DESTRUCTIVE.
ymcs_delete_device_configs
Pro · Destructive
DESTRUCTIVE.
ymcs_get_device_config
Free · Read-only
Gets one per-device phone configuration, with its configuration file text.
ymcs_list_device_configs
Free · Read-only
Lists the per-device (MAC) phone configurations, optionally by a MAC keyword.
ymcs_push_device_config
Pro · Destructive
DESTRUCTIVE.

Site configurations

ToolWhat it does
ymcs_create_site_config
Pro · Destructive
DESTRUCTIVE.
ymcs_delete_site_configs
Pro · Destructive
DESTRUCTIVE.
ymcs_get_site_config
Free · Read-only
Gets one site configuration, with its configuration file text.
ymcs_list_site_configs
Free · Read-only
Lists the site configurations.
ymcs_push_site_config
Pro · Destructive
DESTRUCTIVE.
ymcs_update_site_config
Pro · Destructive
DESTRUCTIVE.

Group configurations

ToolWhat it does
ymcs_create_group_config
Pro · Destructive
DESTRUCTIVE.
ymcs_delete_group_configs
Pro · Destructive
DESTRUCTIVE.
ymcs_get_group_config
Free · Read-only
Gets one group configuration, with its configuration file text.
ymcs_list_group_configs
Free · Read-only
Lists the group configurations.
ymcs_push_group_config
Pro · Destructive
DESTRUCTIVE.
ymcs_update_group_config
Pro · Destructive
DESTRUCTIVE.

Room device configurations

ToolWhat it does
ymcs_get_room_device_config
Free · Read-only
Gets one room device configuration, with its configuration file text.
ymcs_push_room_device_config
Pro · Destructive
DESTRUCTIVE.
ymcs_save_room_device_config
Pro · Destructive
DESTRUCTIVE.

RPS devices

ToolWhat it does
ymcs_add_rps_device
Pro · Destructive
DESTRUCTIVE.
ymcs_add_rps_devices
Pro · Destructive
DESTRUCTIVE.
ymcs_add_rps_devices_by_mac
Pro · Destructive
DESTRUCTIVE.
ymcs_delete_rps_devices
Pro · Destructive
DESTRUCTIVE.
ymcs_get_rps_device
Free · Read-only
Gets one RPS device.
ymcs_list_rps_devices
Free · Read-only
Lists the devices in RPS, optionally by MAC, with each device's provisioning server and last connection.
ymcs_update_rps_device
Pro · Destructive
DESTRUCTIVE.

RPS servers

ToolWhat it does
ymcs_create_rps_server
Pro · Write
Creates an RPS provisioning server entry (its name, address, optional authentication and certificate settings) that RPS devices can be pointed at.
ymcs_delete_rps_servers
Pro · Destructive
DESTRUCTIVE.
ymcs_get_rps_server
Free · Read-only
Gets one RPS provisioning server entry.
ymcs_list_rps_servers
Free · Read-only
Lists the RPS provisioning server entries, optionally by a name or address keyword.
ymcs_update_rps_server
Pro · Destructive
DESTRUCTIVE.

Call quality

ToolWhat it does
ymcs_get_call_quality_record
Free · Read-only
Gets one call quality (QoE) record.
ymcs_get_call_quality_statistics
Free · Read-only
Gets call quality (QoE) statistics for sites and a time range in epoch milliseconds; the page says startTime and endTime take effect only together.
ymcs_list_call_quality_records
Free · Read-only
Lists call quality (QoE) records, filtered by MAC, sites and a time range in epoch milliseconds.

Sites

ToolWhat it does
ymcs_create_site
Pro · Write
Creates a site under a parent site.
ymcs_delete_site
Pro · Destructive
DESTRUCTIVE.
ymcs_get_site
Free · Read-only
Gets one site.
ymcs_list_sites
Free · Read-only
Lists the sites, optionally by name, with each site's parent and level (0 is the root site).
ymcs_update_site
Pro · Destructive
DESTRUCTIVE.

Firmware

ToolWhat it does
ymcs_get_firmware
Free · Read-only
Gets one of the enterprise's firmware files.
ymcs_list_firmwares
Free · Read-only
Lists the enterprise's own firmware files, filtered by model, firmware type (0 a main device, 1 an accessory) or device type.
ymcs_list_official_firmwares
Free · Read-only
Lists Yealink's official firmware for one model.
ymcs_push_firmware
Pro · Destructive
DESTRUCTIVE.
ymcs_push_official_firmware
Pro · Destructive
DESTRUCTIVE.

Diagnostics

ToolWhat it does
ymcs_capture_device_screen
Pro · Write
Takes a screenshot of one device's screen.
ymcs_export_device_config
Pro · Write
Exports one device's configuration file, which can hold account and admin passwords.
ymcs_export_device_system_log
Pro · Write
Exports one device's system log to a file.
ymcs_get_diagnosis_status
Free · Read-only
Gets the status of a diagnosis (inprogress, success or failure).
ymcs_list_device_network_interfaces
Free · Read-only
Lists one device's network interfaces (for example wan), the values ymcs_start_packet_capture takes.
ymcs_ping_from_device
Pro · Write
Makes one device ping a host 1 to 30 times.
ymcs_start_packet_capture
Pro · Destructive
DESTRUCTIVE.
ymcs_stop_packet_capture
Pro · Write
Stops a packet capture that ymcs_start_packet_capture started, by its diagnosisId.
ymcs_traceroute_from_device
Pro · Write
Makes one device run a traceroute to a host.

Alarms and logs

ToolWhat it does
ymcs_list_alarms
Free · Read-only
Lists device alarms, filtered by MAC or device type.
ymcs_list_operation_logs
Free · Read-only
Lists the enterprise's operation (audit) logs for a time range in epoch milliseconds.