Errors
Every MCP tool that fails returns a uniform error envelope. The shape is the same regardless of which tool fired or whether the failure was local validation, an upstream API error, or a transient outage.
{
"error": {
"code": "AUTH_INVALID",
"message": "VertexSMS rejected the provided token.",
"retryable": false,
"signup_url": "https://vertexsms.com/en/contact",
"signin_url": "https://vertexsms.com/en/login",
"token_url": "https://tool.vertexsms.com/settings/api",
"vertex_error_code": null
}
}
The error envelope is intentionally identical to the one used by our REST API, so existing client code that handles error_uri / retryable already works.