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
How StackJack authenticates to Yealink YMCS
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
- 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.
- 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
- Open Connectors, then Yealink YMCS.
- Select the Region your enterprise is hosted in. The wrong region gives an error that looks like a wrong secret.
- Paste the Client ID and the Client secret.
- 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.
When Yealink YMCS refuses a call
- 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.
Yealink YMCS tools
ymcs_ · 90 tools · Free 37 · Pro 53
Devices
Device control
Device groups
Accessories
Accounts
Device configurations
Site configurations
Group configurations
Room device configurations
RPS devices
RPS servers
Call quality
Sites
Firmware
Diagnostics
Alarms and logs
Was this helpful?
More in Connector guides
Connect 3CXConnect AbleSignConnect Acronis Cyber Protect CloudConnect Action1Still need help? Ask the team