curl --request GET \
--url https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags \
--header 'Authorization: Bearer gmcp_your_api_key'
import requests
response = requests.get(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
headers={"Authorization": "Bearer gmcp_your_api_key"},
)
print(response.json())
const response = await fetch(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
{
headers: { "Authorization": "Bearer gmcp_your_api_key" },
}
);
const data = await response.json();
$response = wp_remote_get(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
["headers" => ["Authorization" => "Bearer gmcp_your_api_key"]]
);
$data = json_decode( wp_remote_retrieve_body( $response ), true );
{
"tags": ["billing", "customers", "products", "webhooks"]
}
{
"tags": []
}
{
"code": "getmcp_not_found",
"message": "Server not found.",
"data": { "status": 404 }
}
Tools
List Tool Tags
Return every distinct tag in use across a server’s tools.
GET
/
wp-json
/
getmcp
/
v1
/
servers
/
{server_id}
/
tools
/
tags
curl --request GET \
--url https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags \
--header 'Authorization: Bearer gmcp_your_api_key'
import requests
response = requests.get(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
headers={"Authorization": "Bearer gmcp_your_api_key"},
)
print(response.json())
const response = await fetch(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
{
headers: { "Authorization": "Bearer gmcp_your_api_key" },
}
);
const data = await response.json();
$response = wp_remote_get(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
["headers" => ["Authorization" => "Bearer gmcp_your_api_key"]]
);
$data = json_decode( wp_remote_retrieve_body( $response ), true );
{
"tags": ["billing", "customers", "products", "webhooks"]
}
{
"tags": []
}
{
"code": "getmcp_not_found",
"message": "Server not found.",
"data": { "status": 404 }
}
Returns the union of all tag strings attached to any tool on the server, deduplicated. Useful for populating tag pickers in admin UIs or building tag-faceted dashboards without scanning every tool record.
Path Parameters
string
required
The UUID of the server (e.g.
836995ae-1cff-41ec-823e-a4f07ccca3a0). Numeric IDs are also accepted for backwards compatibility.curl --request GET \
--url https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags \
--header 'Authorization: Bearer gmcp_your_api_key'
import requests
response = requests.get(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
headers={"Authorization": "Bearer gmcp_your_api_key"},
)
print(response.json())
const response = await fetch(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
{
headers: { "Authorization": "Bearer gmcp_your_api_key" },
}
);
const data = await response.json();
$response = wp_remote_get(
"https://yoursite.com/wp-json/getmcp/v1/servers/836995ae-1cff-41ec-823e-a4f07ccca3a0/tools/tags",
["headers" => ["Authorization" => "Bearer gmcp_your_api_key"]]
);
$data = json_decode( wp_remote_retrieve_body( $response ), true );
{
"tags": ["billing", "customers", "products", "webhooks"]
}
{
"tags": []
}
{
"code": "getmcp_not_found",
"message": "Server not found.",
"data": { "status": 404 }
}
Response Fields
array
Distinct tag strings in use across the server’s tools, in the order returned by
ToolManager::get_distinct_tags(). Empty array when no tools are tagged.
