Skip to main content
POST
/
wp-json
/
getmcp
/
v1
/
tools
/
{id}
/
test
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "arguments": {
      "city": "London"
    }
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/tools/1/test"
{
  "success": true,
  "status_code": 200,
  "response_time_ms": 342,
  "content": [
    {
      "type": "text",
      "text": "{\"current_condition\":[{\"temp_C\":\"12\",\"temp_F\":\"54\",\"weatherDesc\":[{\"value\":\"Partly cloudy\"}]}]}"
    }
  ]
}
Executes the tool against the real API using the provided arguments. Uses the server’s test credentials if configured.

Path Parameters

id
integer
required
The numeric ID of the tool to test.

Body Parameters

arguments
object
Key-value pairs matching the tool’s input schema properties.
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "arguments": {
      "city": "London"
    }
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/tools/1/test"
{
  "success": true,
  "status_code": 200,
  "response_time_ms": 342,
  "content": [
    {
      "type": "text",
      "text": "{\"current_condition\":[{\"temp_C\":\"12\",\"temp_F\":\"54\",\"weatherDesc\":[{\"value\":\"Partly cloudy\"}]}]}"
    }
  ]
}