Get Tool by Name
curl --request GET \
--url https://api.danubeai.com/v1/tools/name/{tool_name} \
--header 'danube-api-key: <api-key>'import requests
url = "https://api.danubeai.com/v1/tools/name/{tool_name}"
headers = {"danube-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'danube-api-key': '<api-key>'}};
fetch('https://api.danubeai.com/v1/tools/name/{tool_name}', 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://api.danubeai.com/v1/tools/name/{tool_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"danube-api-key: <api-key>"
],
]);
$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://api.danubeai.com/v1/tools/name/{tool_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("danube-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.danubeai.com/v1/tools/name/{tool_name}")
.header("danube-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.danubeai.com/v1/tools/name/{tool_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["danube-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"service_id": "<string>",
"parameters": {},
"tags": [
"<string>"
]
}{
"detail": "<string>"
}Tools
Get Tool by Name
Retrieve a specific tool by its name
GET
/
tools
/
name
/
{tool_name}
Get Tool by Name
curl --request GET \
--url https://api.danubeai.com/v1/tools/name/{tool_name} \
--header 'danube-api-key: <api-key>'import requests
url = "https://api.danubeai.com/v1/tools/name/{tool_name}"
headers = {"danube-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'danube-api-key': '<api-key>'}};
fetch('https://api.danubeai.com/v1/tools/name/{tool_name}', 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://api.danubeai.com/v1/tools/name/{tool_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"danube-api-key: <api-key>"
],
]);
$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://api.danubeai.com/v1/tools/name/{tool_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("danube-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.danubeai.com/v1/tools/name/{tool_name}")
.header("danube-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.danubeai.com/v1/tools/name/{tool_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["danube-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"service_id": "<string>",
"parameters": {},
"tags": [
"<string>"
]
}{
"detail": "<string>"
}Look up a tool by its exact name. Useful when you know the tool name but not the ID.
Example
curl -X GET "https://api.danubeai.com/v1/tools/name/Gmail%20-%20Send%20Email" \
-H "danube-api-key: YOUR_API_KEY"
Authorizations
Your Danube API key
Path Parameters
The name of the tool
Response
Tool details
Unique identifier for the tool
Display name of the tool
What the tool does
ID of the service this tool belongs to
JSON Schema defining the tool's input parameters
Whether the tool is currently active
Available options:
active, inactive Tags for categorizing the tool
⌘I
