Listar ferramentas utilizadas durante a chamada
curl --request GET \
--url https://suasofia.online/api/user/tools \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://suasofia.online/api/user/tools"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>",
"Accept": "<accept>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Authorization: '<authorization>',
'Content-Type': '<content-type>',
Accept: '<accept>'
}
};
fetch('https://suasofia.online/api/user/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://suasofia.online/api/user/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://suasofia.online/api/user/tools"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://suasofia.online/api/user/tools")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://suasofia.online/api/user/tools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "get_weather",
"description": "Use esta ferramenta para obter o clima atual em uma cidade específica. Chame isto quando o cliente perguntar sobre condições climáticas.",
"endpoint": "https://api.openweathermap.org/data/2.5/weather",
"method": "GET",
"timeout": 10,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer sk_..."
}
],
"schema": [
{
"name": "city",
"type": "string",
"description": "O nome da cidade para obter o clima"
},
{
"name": "temperature",
"type": "number",
"description": "Valor da temperatura atual"
},
{
"name": "is_raining",
"type": "boolean",
"description": "Se está chovendo atualmente"
}
],
"created_at": "2025-10-10T12:00:00.000000Z",
"updated_at": "2025-10-10T12:00:00.000000Z"
},
{
"id": 2,
"name": "send_notification",
"description": "Use esta ferramenta para enviar uma notificação ao cliente. Chame isto quando o cliente solicitar atualizações.",
"endpoint": "https://api.suaempresa.com/notifications/send",
"method": "POST",
"timeout": 15,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"schema": [
{
"name": "message",
"type": "string",
"description": "A mensagem de notificação a ser enviada"
},
{
"name": "priority_level",
"type": "number",
"description": "Nível de prioridade de 1 a 5"
},
{
"name": "send_sms",
"type": "boolean",
"description": "Se também deve enviar notificação por SMS"
}
],
"created_at": "2025-10-09T14:30:00.000000Z",
"updated_at": "2025-10-10T09:15:00.000000Z"
}
]
Ferramentas de Chamada
Listar ferramentas utilizadas durante a chamada
Recuperar todas as ferramentas utilizadas durante a chamada
GET
/
user
/
tools
Listar ferramentas utilizadas durante a chamada
curl --request GET \
--url https://suasofia.online/api/user/tools \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://suasofia.online/api/user/tools"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>",
"Accept": "<accept>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Authorization: '<authorization>',
'Content-Type': '<content-type>',
Accept: '<accept>'
}
};
fetch('https://suasofia.online/api/user/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://suasofia.online/api/user/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://suasofia.online/api/user/tools"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://suasofia.online/api/user/tools")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://suasofia.online/api/user/tools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "get_weather",
"description": "Use esta ferramenta para obter o clima atual em uma cidade específica. Chame isto quando o cliente perguntar sobre condições climáticas.",
"endpoint": "https://api.openweathermap.org/data/2.5/weather",
"method": "GET",
"timeout": 10,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer sk_..."
}
],
"schema": [
{
"name": "city",
"type": "string",
"description": "O nome da cidade para obter o clima"
},
{
"name": "temperature",
"type": "number",
"description": "Valor da temperatura atual"
},
{
"name": "is_raining",
"type": "boolean",
"description": "Se está chovendo atualmente"
}
],
"created_at": "2025-10-10T12:00:00.000000Z",
"updated_at": "2025-10-10T12:00:00.000000Z"
},
{
"id": 2,
"name": "send_notification",
"description": "Use esta ferramenta para enviar uma notificação ao cliente. Chame isto quando o cliente solicitar atualizações.",
"endpoint": "https://api.suaempresa.com/notifications/send",
"method": "POST",
"timeout": 15,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"schema": [
{
"name": "message",
"type": "string",
"description": "A mensagem de notificação a ser enviada"
},
{
"name": "priority_level",
"type": "number",
"description": "Nível de prioridade de 1 a 5"
},
{
"name": "send_sms",
"type": "boolean",
"description": "Se também deve enviar notificação por SMS"
}
],
"created_at": "2025-10-09T14:30:00.000000Z",
"updated_at": "2025-10-10T09:15:00.000000Z"
}
]
Este endpoint permite que você recupere todas as ferramentas utilizadas durante a chamada. As ferramentas utilizadas durante a chamada permitem que seus assistentes de IA interajam com APIs externas durante uma chamada.
Cabeçalhos
string
required
Token Bearer para autenticação
string
required
Deve ser
application/jsonstring
required
Deve ser
application/jsonCampos de resposta
array
Array de ferramentas utilizadas durante a chamada
Show propriedades
Show propriedades
integer
O identificador único da ferramenta
string
O nome da ferramenta (minúsculas com sublinhados)
string
Explicação detalhada de quando e como a IA deve usar esta ferramenta
string
A URL do endpoint da API que será chamado
string
Método HTTP (GET, POST, PUT, PATCH, DELETE)
integer
Timeout da solicitação em segundos (1-30)
array
array
string
Timestamp ISO 8601 de quando a ferramenta foi criada
string
Timestamp ISO 8601 de quando a ferramenta foi atualizada pela última vez
[
{
"id": 1,
"name": "get_weather",
"description": "Use esta ferramenta para obter o clima atual em uma cidade específica. Chame isto quando o cliente perguntar sobre condições climáticas.",
"endpoint": "https://api.openweathermap.org/data/2.5/weather",
"method": "GET",
"timeout": 10,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer sk_..."
}
],
"schema": [
{
"name": "city",
"type": "string",
"description": "O nome da cidade para obter o clima"
},
{
"name": "temperature",
"type": "number",
"description": "Valor da temperatura atual"
},
{
"name": "is_raining",
"type": "boolean",
"description": "Se está chovendo atualmente"
}
],
"created_at": "2025-10-10T12:00:00.000000Z",
"updated_at": "2025-10-10T12:00:00.000000Z"
},
{
"id": 2,
"name": "send_notification",
"description": "Use esta ferramenta para enviar uma notificação ao cliente. Chame isto quando o cliente solicitar atualizações.",
"endpoint": "https://api.suaempresa.com/notifications/send",
"method": "POST",
"timeout": 15,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"schema": [
{
"name": "message",
"type": "string",
"description": "A mensagem de notificação a ser enviada"
},
{
"name": "priority_level",
"type": "number",
"description": "Nível de prioridade de 1 a 5"
},
{
"name": "send_sms",
"type": "boolean",
"description": "Se também deve enviar notificação por SMS"
}
],
"created_at": "2025-10-09T14:30:00.000000Z",
"updated_at": "2025-10-10T09:15:00.000000Z"
}
]
Atribuindo Ferramentas a Assistentes
Para usar estas ferramentas com assistentes, veja:- Criar Assistente - Anexe ferramentas usando o parâmetro
tool_ids - Atualizar Assistente - Gerencie atribuições de ferramentas usando o parâmetro
tool_ids
⌘I

