import requests
url = "https://api.diga.io/v1/integration/{integration_id}/tool"
payload = {
"name": "<string>",
"description": "<string>",
"endpoint_path": "<string>",
"method": "GET",
"query": [],
"body": [],
"headers": {},
"timeout": 5,
"approval_required": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"headers": {},
"method": "GET",
"type": "HTTP",
"description": "<string>",
"endpoint_path": "<string>",
"query": [],
"body": [],
"timeout": 5,
"approval_required": false
}Create a new custom HTTP tool for an HTTP integration. Only works with HTTP integrations. MCP tools are synced automatically from the MCP server.
import requests
url = "https://api.diga.io/v1/integration/{integration_id}/tool"
payload = {
"name": "<string>",
"description": "<string>",
"endpoint_path": "<string>",
"method": "GET",
"query": [],
"body": [],
"headers": {},
"timeout": 5,
"approval_required": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"headers": {},
"method": "GET",
"type": "HTTP",
"description": "<string>",
"endpoint_path": "<string>",
"query": [],
"body": [],
"timeout": 5,
"approval_required": false
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Integration ID
The name of the tool
The description given to the agent to understand the tool
The URL to the endpoint of the tool
The HTTP method for the tool
GET, POST, PUT, DELETE, PATCH The query parameters for the tool
Mostrar atributos secundarios
The body parameters for the tool
Mostrar atributos secundarios
The headers for the tool
Mostrar atributos secundarios
Timeout for the API to send a response
If true, the agent will ask for confirmation before executing
Successful Response
The unique identifier for the tool
The name of the tool
The headers for the tool
Mostrar atributos secundarios
The HTTP method for the tool
GET, POST, PUT, DELETE, PATCH "HTTP"The description given to the agent to understand the tool
The URL to the endpoint of the tool
The query parameters for the tool
Mostrar atributos secundarios
The body parameters for the tool
Mostrar atributos secundarios
Timeout for the API to send a response
If true, the agent will ask for confirmation before executing