Execute Tool Endpoint
POST/v1/execute_tool
Execute a tool with specified parameters and get results.
Request Body
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
tool_name | string | Yes | - | Name of tool to execute |
params | object | Yes | - | Tool-specific parameters |
timeout | integer | No | 30000 | Timeout in milliseconds |
Response
Examples
Create GitHub PR
Deploy to AWS
Using SDK
Error Responses
Tool Not Found (404)
Invalid Parameters (400)
Timeout (504)
Execution Failed (500)
Best Practices
-
Always handle errors
-
Set appropriate timeouts
- Quick operations: 5-10 seconds
- API calls: 15-30 seconds
- Infrastructure tasks: 60+ seconds
-
Validate parameters before executing
- Check required fields
- Validate formats (URLs, names, etc.)
-
Implement retry logic
Next Steps
Retrieve Tools
Find tools before executing.
Real Examples
See execution flows.
Error Handling
Common error codes.
Ready to execute tools? See sample queries for real workflows! 🚀