This guide includes best practices for using generative AI tools with Sinch's Voice API. Generative AI can make mistakes, and Sinch has limited influence over the output of any given generative AI tool. Ensure you review any code produced by generative AI to confirm its accuracy, stability, and security against our documentation, your environment, and your needs.
You can use AI tools to facilitate the generation of code that you can use with Sinch's Voice API.
While there are any number of ways to make use of AI tools, we provide guidance on using Sinch's documentation MCP server to utilize our documentation.
In order to generate code samples using AI tools, you may connect directly to Sinch's documentation MCP server. This will make several tools available to your system that facilitate endpoint identification, information lookups, and general context-setting.
Sinch's documentation MCP server provides tools that help you navigate Sinch's documentation. Because Sinch's documentation includes various code samples, it can also help you generate code samples. It will not make calls to the identified endpoints for you; you must include any provided code in your solution and customize it to correctly reference your account and credentials.
The tools are described in the table below. Note that, while you may not have to explicitly call out these tools when designing your prompt (or using the prompts we provide later in this document), you must still ensure the tools are activated in whatever AI environment you work in:
| Tool | Parameters | Description |
|---|---|---|
whoami | None | Returns information about the authenticated user. |
list-apis | name?: string | Lists available APIs with their context and purpose. |
get-endpoints | name: string | Returns all endpoints and their descriptions for a specific API. |
get-endpoint-info | name: string``path: string``method: string | Returns comprehensive information about a specific endpoint, including parameters, security, and examples. |
get-security-schemes | name: string``path: string``method: string | Gets the security schemes for a specific API. |
get-full-api-description | name: string | Returns the complete OpenAPI description. |
search | query: string | Searches documentation and returns relevant content for a query. |
You may connect to our documentation MCP server by clicking the Connect MCP button:
- Connect to CursorInstall MCP server on Cursor
- Connect to VS CodeInstall MCP server on VS Code
- Copy MCP ConfigurationCopy MCP JSON Configuration
The AI tools listed in the Connect MCP button drop-down list and the tools described below are for illustrative purposes. You may use our documentation MCP server with any AI tool that can connect to MCP servers.
Alternatively, copy the following URL and add it to your AI tool: https://developers.sinch.com/mcp. Some examples of how to add the Sinch documentation MCP server tools to your AI solution are detailed in the tabs below:
- In Cursor, open the command palette.
- macOS:
Command + Shift + P - Windows/Linux:
Ctrl + Shift + P
- Type "Open MCP settings" in the command palette.
- Select "Add custom MCP".
Cursor opens the mcp.json file.
- In
mcp.json, add your server configuration:
{
"mcpServers": {
"sinch-mcp": {
"url": "https://developers.sinch.com/mcp"
}
}
}- Save the
mcp.jsonfile. - Return to MCP settings and confirm the connection.
If authentication is required, select Needs login and complete the sign-in flow. After connecting, Cursor displays the list of available tools.
In Cursor chat (Agent mode), ask a question that triggers an MCP tool.
Skills files (or "skills") provide AI-specific guidance, hints, troubleshooting tips, and use-case information that can help your AI agents better understand various topics. They are especially helpful when using AI tools and agents in coding environments.
Sinch provides skills that help your AI solution navigate our documentation, generate code samples, and perform API calls.
To view Sinch's skills files, visit the Sinch Skills GitHub repo. The sub-sections below provide concise installation, usage, and structural information. For a more thorough explanation of Sinch Skills, see our dedicated developer document on Sinch Skills.
To make use of our skills files, you must install them in your coding environment. Information on ways to install Sinch's skills files are included on the tabs below:
To install Sinch skills using NPM:
- Open your preferred IDE and navigate to the directory or repo in which you project is stored.Note:
Alternatively, you may navigate to your home directory to install Sinch's skill files. They will then be available for use across various coding projects.
- Open a terminal and/or command prompt.
- Run the command
npx skills add sinch/skills.
Once Sinch's skills have been installed, your AI tool or agent should make use of them automatically. AI tools and agents will consult the skills files whenever you make a request.
Each skill lives in its own folder under skills/. The SKILL.md file contains YAML frontmatter (name and description) and markdown sections including Overview, Getting Started, Key Concepts, Common Patterns, Gotchas & Best Practices, and Links sections.
skills/
<product>/
SKILL.md # Main skill file (required)
scripts/ # Optional helper scripts
references/ # Optional detailed reference material
assets/ # Optional images or other assets