v1
latestOpenAPI 3.0.12026-07-226992320.0 KBIntegration Tools
Create Tool
Creates a new API tool under the specified integration. Define the HTTP endpoint, method, and parameter schema the agent will use when invoking the tool. Returns the created tool including its toolId, which is required for subsequent get, update, delete, and execute calls.
post/v1/integrations/{integrationId}/tools
Path parameters
integrationIdstring required
Unique identifier of the integration to create the tool under.
Request body
Example request
{
"name": "get_customer",
"description": "Fetches a Shopify customer record by customer ID. Call this tool when you need to look up customer details such as name, email, or order history.",
"method": "GET",
"url": "https://my-store.myshopify.com/admin/api/2024-01/customers/{{customerId}}.json",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"queryParams": [
{
"key": "status",
"value": "{{status}}"
}
],
"bodyParams": {
"first_name": "{{firstName}}",
"email": "{{email}}"
}
}Response
Created
Example response
{
"toolId": "tool_X9pLm2Wq8Rt3",
"integrationId": "intg_AuUKK371Spr5",
"name": "get_order_details",
"description": "Fetches order details from Shopify by order ID. Call this tool when you need to retrieve order status, line items, or shipping info.",
"method": "GET",
"url": "https://my-store.myshopify.com/admin/api/2024-01/orders/{{orderId}}.json",
"scope": "local",
"headers": {
"customer_name": "Michael",
"account_id": "ACC-001"
},
"queryParams": {
"customer_name": "Michael",
"account_id": "ACC-001"
},
"bodyParams": {
"customer_name": "Michael",
"account_id": "ACC-001"
},
"createdAt": "2024-04-20T10:00:00.000Z",
"updatedAt": "2024-04-21T08:30:00.000Z"
}