extended-salmon
extended-salmon4mo ago

What do I put for the body of MCP server when I do an API node on Workflows?

I’m trying to figure out what exactly should be included in the body of the MCP server when setting up an API node in Workflows. Could you provide some guidance or examples on how to structure this? i,e, Create specific values that get sent in the API request body
No description
No description
3 Replies
Vapi Support Bot
To structure the body for an MCP server API node in Workflows, use a JSON object that specifies the tool/action and its arguments. For example, to create a call via MCP, your body might look like:
{
"name": "create_call",
"arguments": {
"assistantId": "your-assistant-id",
"phoneNumberId": "your-phone-number-id",
"customer": {
"phoneNumber": "+1234567890"
}
}
}
{
"name": "create_call",
"arguments": {
"assistantId": "your-assistant-id",
"phoneNumberId": "your-phone-number-id",
"customer": {
"phoneNumber": "+1234567890"
}
}
}
Replace the values with your actual assistant and phone number IDs. Adjust the structure based on the specific MCP tool/action you want to invoke.
Tip: Always check the MCP server's documentation for the required fields for each action. Sources: - Vapi MCP Server Documentation - Vapi MCP Tool Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Duckie
Duckie4mo ago
Message marked as helpful by @! AetherMind! 🎉
Sahil
Sahil4mo ago
Hey FabulousRay, checking if you want to continue this thread over here or in email?

Did you find this page helpful?