Engine API
Get Agent Tools
Tools used by a specific agent
GET
/
api
/
v1
/
agents
/
{agent_id}
/
tools
Get Agent Tools
curl --request GET \
--url http://localhost:8000/api/v1/agents/{agent_id}/toolsimport requests
url = "http://localhost:8000/api/v1/agents/{agent_id}/tools"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/api/v1/agents/{agent_id}/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_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/api/v1/agents/{agent_id}/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:8000/api/v1/agents/{agent_id}/tools"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/api/v1/agents/{agent_id}/tools")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/api/v1/agents/{agent_id}/tools")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"tool_name": "<string>",
"tool_category": "<string>",
"call_count": 123,
"error_count": 123,
"first_seen": "<string>",
"last_seen": "<string>"
}Returns each tool an agent has invoked, with call/error counts and first/last seen timestamps.
Path Parameters
string
required
The unique agent identifier.
Response
Array ofAgentTool objects:
string
Tool name
string
Tool category (e.g.,
memory_read, http, code_exec)integer
Total invocations
integer
Number of erroring invocations
string
ISO-8601 timestamp
string
ISO-8601 timestamp
⌘I
Get Agent Tools
curl --request GET \
--url http://localhost:8000/api/v1/agents/{agent_id}/toolsimport requests
url = "http://localhost:8000/api/v1/agents/{agent_id}/tools"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/api/v1/agents/{agent_id}/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_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/api/v1/agents/{agent_id}/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:8000/api/v1/agents/{agent_id}/tools"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/api/v1/agents/{agent_id}/tools")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/api/v1/agents/{agent_id}/tools")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"tool_name": "<string>",
"tool_category": "<string>",
"call_count": 123,
"error_count": 123,
"first_seen": "<string>",
"last_seen": "<string>"
}
