MCP (Composio) & Vapi Help
# support
p
Hi I am trying to create an MCP tool and use the composio server. I have authenticated in composio and added the server URL.I am getting this error when my agent uses the tools { "name": "composio.GMAIL_CREATE_EMAIL_DRAFT", "role": "tool_call_result", "time": 1744042794279, "result": "[\n {\n \"type\": \"text\",\n \"text\": \"{\\n \\\"error\\\": \\\"Could not find a connection with app='gmail' and entity='vapi'\\\",\\n \\\"successful\\\": true,\\n \\\"data\\\": {}\\n}\"\n }\n]", "toolCallId": "call_wLPB9b0cfJy5JGAPz3TcrlZS", "secondsFromStart": 55.896 } call id: 81b4008e-3700-417e-b930-fa391dbe8d5c
v
Hi there! 👋 I see you're having trouble with the connection between Gmail and Vapi in your Composio setup. I'm unable to provide specific information about what MCP stands for in this context. However, I can definitely help with troubleshooting the connection error you're experiencing. Based on the error message "Could not find a connection with app='gmail' and entity='vapi'", here are some troubleshooting steps you can try: 1. Check API Keys and Access Permissions - Verify that your API keys and access permissions are correct and haven't expired or been revoked. According to [troubleshooting documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334024569861963788), this is a common first step. 2. Review VAPI Configuration - Double-check your VAPI setup to ensure all necessary configurations are correct, including API keys or tokens as mentioned in [this resource](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335336931395108895). 3. Verify the Connection Setup - This error specifically indicates that Composio cannot find a connection between Gmail and Vapi. You may need to: - Ensure you've properly authenticated with Gmail - Check that the connection between Gmail and Vapi is properly configured in Composio - Verify that any required authentication tokens or credentials are correctly set up as noted in [connection troubleshooting guidance](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333753317490294836) 4. Check Network Connectivity - Ensure that your environment has proper network access and can reach both the VAPI and Gmail servers as suggested in [network troubleshooting steps](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335336931395108895).
5. Inspect Network Activity - Use your browser's developer tools to inspect network activity when attempting to use the tool. Look for any failed requests or errors that could provide more insight as recommended in [browser troubleshooting guidance](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336399188665040968). For the specific
composio.GMAIL_CREATE_EMAIL_DRAFT
tool, one suggestion I found is to try setting the request-start message to an empty string, which might help resolve the issue according to [this discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334191012620402730). Is there anything specific from these steps you'd like me to elaborate on further? Sources: - [Troubleshooting documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334024569861963788) - [VAPI configuration guidance](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335336931395108895) - [Connection troubleshooting guidance](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333753317490294836) - [Network troubleshooting steps](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335336931395108895) - [Browser troubleshooting guidance](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336399188665040968) - [Tool usage discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334191012620402730)
k
@Shubham Bajaj please help out thanks
k
🔵 16:19:53:457 MCP tool call result: { "content": \[ { "type": "text", "text": "{\\n \\"error\\": \\"Could not find a connection with app='gmail' and entity='vapi'\\",\\n \\"successful\\": true,\\n \\"data\\": {}\\n}" } \] } This is something which is not coming from our side, instead from your server. So I'll kindly request to check once in your server.
a
Hi Vapi Team, I'm having trouble with my
composeio/mcp
server integration. The goal is to enable an assistant to fetch real-time scrap metal prices from a Google Sheet when a caller requests pricing. I’ve tested the integration using Zapier and Composeio via Postman/Windsurf and confirmed it works. However, after configuring the
mcp
tool in Vapi and attaching it to the assistant, any call to the assistant ends abruptly. The error log shows:
Copy code
pipeline-error-openai-400-bad-request-validation-failed  
Model request failed (attempt #7, reason: Invalid 'tools[3].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$')
This seems to be a validation issue related to the
function.name
passed to OpenAI, but my config only includes two tools. This suggests Vapi may be injecting additional tools behind the scenes. Here’s my tool config (server and sheet redacted):
Copy code
json
{
  "type": "mcp",
  "function": {
    "name": "GOOGLESHEETS_BATCH_GET",
    "description": "Fetches real-time prices from a maintained Google Sheet.",
    "parameters": {
      "type": "object",
      "properties": {
        "spreadsheet_id": {
          "type": "string",
          "value": "1xxx"
        }
      }
    }
  },
  "server": {
    "url": "https://mcp.composio.dev/googlesheets/xxx"
  },
  "async": false
}
Can you confirm if a system tool is causing this? This is the last blocker before going live with a client. Thanks!
k
This ticket has been marked as solved, and as a result, you will no longer receive any further responses. Kindly create a new support ticket to escalate your inquiry.Â