curl -H "Authorization: Bearer gmcp_your_api_key" \
"https://yoursite.com/wp-json/getmcp/v1/servers/1/tools"
[
{
"id": 1,
"server_id": 1,
"name": "get_weather",
"description": "Get current weather for a city",
"endpoint_url": "https://wttr.in/{city}?format=j1",
"http_method": "GET",
"input_schema": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city name"
}
},
"required": ["city"]
},
"auth_type": "none",
"parameter_mapping": {
"city": {"location": "path"}
},
"cache_ttl": 300,
"timeout": 30,
"sort_order": 0,
"status": "active",
"created_at": "2025-03-01T10:00:00",
"updated_at": "2025-03-01T10:00:00"
}
]
Retrieve all tools configured for a specific server.
curl -H "Authorization: Bearer gmcp_your_api_key" \
"https://yoursite.com/wp-json/getmcp/v1/servers/1/tools"
[
{
"id": 1,
"server_id": 1,
"name": "get_weather",
"description": "Get current weather for a city",
"endpoint_url": "https://wttr.in/{city}?format=j1",
"http_method": "GET",
"input_schema": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city name"
}
},
"required": ["city"]
},
"auth_type": "none",
"parameter_mapping": {
"city": {"location": "path"}
},
"cache_ttl": 300,
"timeout": 30,
"sort_order": 0,
"status": "active",
"created_at": "2025-03-01T10:00:00",
"updated_at": "2025-03-01T10:00:00"
}
]
active, paused. Leave empty for all.| Header | Description |
|---|---|
X-WP-Total | Total number of tools |
curl -H "Authorization: Bearer gmcp_your_api_key" \
"https://yoursite.com/wp-json/getmcp/v1/servers/1/tools"
[
{
"id": 1,
"server_id": 1,
"name": "get_weather",
"description": "Get current weather for a city",
"endpoint_url": "https://wttr.in/{city}?format=j1",
"http_method": "GET",
"input_schema": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city name"
}
},
"required": ["city"]
},
"auth_type": "none",
"parameter_mapping": {
"city": {"location": "path"}
},
"cache_ttl": 300,
"timeout": 30,
"sort_order": 0,
"status": "active",
"created_at": "2025-03-01T10:00:00",
"updated_at": "2025-03-01T10:00:00"
}
]