curl -X POST "https://api.danubeai.com/v1/tools/call/batch" \
-H "danube-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"calls": [
{
"tool_id": "tool_weather_001",
"tool_input": {"city": "San Francisco"}
},
{
"tool_id": "tool_weather_001",
"tool_input": {"city": "New York"}
}
]
}'
{
"results": [
{
"tool_id": "tool_weather_001",
"success": true,
"result": {
"temperature": "18C",
"condition": "Partly cloudy"
},
"error": null
},
{
"tool_id": "tool_weather_001",
"success": true,
"result": {
"temperature": "5C",
"condition": "Clear"
},
"error": null
}
]
}
Execute multiple tools in a single request
curl -X POST "https://api.danubeai.com/v1/tools/call/batch" \
-H "danube-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"calls": [
{
"tool_id": "tool_weather_001",
"tool_input": {"city": "San Francisco"}
},
{
"tool_id": "tool_weather_001",
"tool_input": {"city": "New York"}
}
]
}'
{
"results": [
{
"tool_id": "tool_weather_001",
"success": true,
"result": {
"temperature": "18C",
"condition": "Partly cloudy"
},
"error": null
},
{
"tool_id": "tool_weather_001",
"success": true,
"result": {
"temperature": "5C",
"condition": "Clear"
},
"error": null
}
]
}
danube-api-key header). API key permissions are checked per tool.
curl -X POST "https://api.danubeai.com/v1/tools/call/batch" \
-H "danube-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"calls": [
{
"tool_id": "tool_weather_001",
"tool_input": {"city": "San Francisco"}
},
{
"tool_id": "tool_weather_001",
"tool_input": {"city": "New York"}
}
]
}'
{
"results": [
{
"tool_id": "tool_weather_001",
"success": true,
"result": {
"temperature": "18C",
"condition": "Partly cloudy"
},
"error": null
},
{
"tool_id": "tool_weather_001",
"success": true,
"result": {
"temperature": "5C",
"condition": "Clear"
},
"error": null
}
]
}
batch_execute_tools MCP tool:
result = await mcp.call_tool("batch_execute_tools", {
"calls": [
{"tool_id": "tool_weather_001", "tool_input": {"city": "San Francisco"}},
{"tool_id": "tool_weather_001", "tool_input": {"city": "New York"}}
]
})