curl -X POST http://localhost:3004/call-tools \
-H "Content-Type: application/json" \
-d '{
"image": "agent-environment:latest",
"tags": {"assignmentId": "my-test-session"},
"toolName": "add_calendar_event",
"toolArguments": {
"title": "Team Meeting",
"start_time": 1735689600,
"end_time": 1735693200
}
}'
{
"content": [
{
"type": "text",
"text": "Successfully created calendar event 'Team Meeting' with ID: evt_abc123"
}
],
"isError": false
}
{
"content": [
{
"type": "text",
"text": "Error: Invalid timestamp format. Expected Unix timestamp (integer)."
}
],
"isError": true
}
MCP Environment
Call Tools
Execute a specific tool with provided arguments
POST
/
call-tools
curl -X POST http://localhost:3004/call-tools \
-H "Content-Type: application/json" \
-d '{
"image": "agent-environment:latest",
"tags": {"assignmentId": "my-test-session"},
"toolName": "add_calendar_event",
"toolArguments": {
"title": "Team Meeting",
"start_time": 1735689600,
"end_time": 1735693200
}
}'
{
"content": [
{
"type": "text",
"text": "Successfully created calendar event 'Team Meeting' with ID: evt_abc123"
}
],
"isError": false
}
{
"content": [
{
"type": "text",
"text": "Error: Invalid timestamp format. Expected Unix timestamp (integer)."
}
],
"isError": true
}
Execute a specific MCP tool with the provided arguments. The tool will run within the isolated session defined by your tags.
Contact Scale to receive Docker images for your environments.
Request Body
Response
curl -X POST http://localhost:3004/call-tools \
-H "Content-Type: application/json" \
-d '{
"image": "agent-environment:latest",
"tags": {"assignmentId": "my-test-session"},
"toolName": "add_calendar_event",
"toolArguments": {
"title": "Team Meeting",
"start_time": 1735689600,
"end_time": 1735693200
}
}'
{
"content": [
{
"type": "text",
"text": "Successfully created calendar event 'Team Meeting' with ID: evt_abc123"
}
],
"isError": false
}
{
"content": [
{
"type": "text",
"text": "Error: Invalid timestamp format. Expected Unix timestamp (integer)."
}
],
"isError": true
}