Sam
08/06/2025, 8:04 PMAI Evy
08/06/2025, 8:04 PMAI Evy
08/06/2025, 8:04 PM{{variable_name}} syntax and can be referenced in prompts, tool descriptions, and other areas [(3) ]() .
However, there are some common issues with dynamic variables that could explain why your {{token}} isn't working:
1. **Variable naming and case sensitivity**: Dynamic variables must match exact names and are case-sensitive [(4) ]()
2. **String format requirement**: All values in retell_llm_dynamic_variables must be strings [(3) ]() [(5) ]() [(6) ]() [(7) ]()
3. **Proper API payload**: The variables need to be sent correctly in the retell_llm_dynamic_variables field [(4) ]()
Since you've verified the dynamic variable appears in call history, the issue might be with how it's being referenced in the MCP header configuration. Make sure:
- The variable name in the header exactly matches what you're sending (case-sensitive)
- The variable is being passed as a string value
- There are no extra spaces or formatting issues in the header configuration
If the issueAI Evy
08/06/2025, 8:04 PMAI Evy
08/06/2025, 8:04 PMAI Evy
08/06/2025, 8:04 PMSam
08/06/2025, 8:09 PMSam
08/06/2025, 8:13 PMSam
08/06/2025, 8:22 PMAI Evy
08/06/2025, 8:22 PMAI Evy
08/06/2025, 8:22 PMdynamic_variables in the webhook response [(1) ]() :
javascript
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
However, for outbound calls using the Create Phone Call API, you would use retell_llm_dynamic_variables [(2) ]() . The field name depends on the context:
- **Inbound calls**: Use dynamic_variables in the inbound webhook response [(1) ]()
- **Outbound calls**: Use retell_llm_dynamic_variables in the Create Phone Call API [(2) ]()
According to the documentation, dynamic variables can be used in various places including tool call descriptions and custom tool call properties descriptions . All values in dynamic variables must be strings .
If your {{token}} variable is appearing correctly in the call history but not working in MCP headers, and you've verified the variable name matches exactly, this could be a specific issue with MCP header processing that might require further investigation.AI Evy
08/06/2025, 8:22 PMAI Evy
08/06/2025, 8:22 PMSam
08/06/2025, 8:49 PMSam
08/06/2025, 8:49 PMSam
08/06/2025, 8:49 PMSam
08/06/2025, 8:49 PM