portia
04/07/2025, 4:40 PMVapi Support Bot
04/07/2025, 4:42 PMVapi Support Bot
04/07/2025, 4:42 PMcomposio.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)Kings_big💫
04/07/2025, 9:11 PMKyle Brunker
04/07/2025, 11:06 PMar2
04/09/2025, 6:19 PMcomposeio/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:
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):
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!Kyle Brunker
04/11/2025, 12:45 AM