Does it work if you add an extra pair of quotes in the request template:
"query": {
"query": "\"agent_id:<%= context.id %>\""
},
This issue looks similar to:
Does it work if you add an extra pair of quotes in the request template:
"query": {
"query": "\"agent_id:<%= context.id %>\""
},
This issue looks similar to: