Disable one tool without revoking the agent
curl --request DELETE \
--url https://app.trustivan.com/api/v1/agents/{id}/tools/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents/{id}/tools/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/agents/{id}/tools/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/agents/{id}/tools/{name}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Disable one tool without revoking the agent
The narrow kill switch: the agent keeps working and one capability stops. What an operator wants when a single tool misbehaves and the agent is otherwise doing useful work.
A disabled tool is refused whatever the agent’s delegation says: an operator’s switch outranks the delegation.
Deliberately NOT available to the agent itself, even for its own tools:
an agent that could disable its own could be made to disable the one an
operator is watching it with. Behind workloads:manage.
The reason is a query parameter rather than a body, because a DELETE with a body is refused or ignored by enough intermediaries that a reason sent that way sometimes vanishes, and “why was this disabled” is the first question afterwards.
DELETE
/
agents
/
{id}
/
tools
/
{name}
Disable one tool without revoking the agent
curl --request DELETE \
--url https://app.trustivan.com/api/v1/agents/{id}/tools/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents/{id}/tools/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/agents/{id}/tools/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/agents/{id}/tools/{name}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The disabled tool.