How the Code Mode tool scheme works
masterThe Telnyx MCP server implements a "Code Mode" scheme designed for deterministic and repeatable complex tasks. Instead of just calling APIs, the agent interacts with two specific tools:
- Docs Search Tool: Allows the agent to query documentation about the Telnyx API/SDK.
- Code Tool: Allows the agent to write code against the TypeScript SDK. This code is executed in an isolated sandbox environment (without web or filesystem access). The results or printed output from the code are returned to the agent.
This allows an agent to write, test, and verify logic using the actual SDK before finalizing a task.