Skip to main content
POST
/
wp-json
/
getmcp
/
v1
/
servers
/
{server_id}
/
tools
/
reorder
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "tool_ids": [3, 1, 5, 2, 4]
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/servers/1/tools/reorder"
{
  "reordered": true
}
Updates the display order for multiple tools at once. Tools are presented to AI clients in this order via tools/list.

Path Parameters

server_id
integer
required
The numeric ID of the server whose tools to reorder.

Body Parameters

tool_ids
array
required
Ordered array of tool IDs. The first ID gets sort_order 0, second gets 1, etc.
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "tool_ids": [3, 1, 5, 2, 4]
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/servers/1/tools/reorder"
{
  "reordered": true
}