List MCP server tools
import requests
url = "https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/tools"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/tools \
--header 'Authorization: Bearer <token>'{
"server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "ok",
"error": "<string>",
"tools": [
{
"name": "<string>",
"description": "<string>",
"read_only_hint": true,
"classification": "read",
"allowed": true,
"granted_roles": [
"<string>"
]
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}MCP Servers
List MCP server tools
Connects to the server now and returns every tool it offers, including tools outside allowed_tools, with Ankra’s read or write verdict, whether the tool is allowed and the roles it is granted to. Use it to widen a narrowed allowed_tools list. A server that cannot be reached is still a 200, with status error and the reason.
GET
/
api
/
v1
/
org
/
mcp-servers
/
{server_id}
/
tools
List MCP server tools
import requests
url = "https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/tools"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/tools \
--header 'Authorization: Bearer <token>'{
"server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "ok",
"error": "<string>",
"tools": [
{
"name": "<string>",
"description": "<string>",
"read_only_hint": true,
"classification": "read",
"allowed": true,
"granted_roles": [
"<string>"
]
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The registered MCP server's id.
Response
The tool inventory
ok when the server answered, error when it could not be reached or refused, unsupported_transport for a stdio server, which cannot be probed.
Available options:
ok, error, unsupported_transport Why the probe failed, or null.
Every tool the server offers, sorted by name.
Show child attributes
Show child attributes