curl -X POST \ -H "Authorization: Bearer gmcp_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "create_customer", "description": "Create a new customer in Stripe", "endpoint_url": "https://api.stripe.com/v1/customers", "http_method": "POST", "input_schema": { "type": "object", "properties": { "email": { "type": "string", "format": "email", "description": "Customer email address" }, "name": { "type": "string", "description": "Customer full name" } }, "required": ["email"] }, "auth_type": "bearer", "auth_credentials": { "token": "sk_live_your_stripe_key" }, "parameter_mapping": { "email": {"location": "body"}, "name": {"location": "body"} }, "timeout": 30, "status": "active" }' \ "https://yoursite.com/wp-json/getmcp/v1/servers/2/tools"
{ "id": 5, "server_id": 2, "name": "create_customer", "description": "Create a new customer in Stripe", "endpoint_url": "https://api.stripe.com/v1/customers", "http_method": "POST", "input_schema": { "type": "object", "properties": { "email": {"type": "string", "format": "email"}, "name": {"type": "string"} }, "required": ["email"] }, "auth_type": "bearer", "auth_credentials": null, "parameter_mapping": { "email": {"location": "body"}, "name": {"location": "body"} }, "cache_ttl": 0, "timeout": 30, "sort_order": 0, "status": "active", "created_at": "2025-03-18T10:00:00", "updated_at": "2025-03-18T10:00:00" }
Create a new tool within a server.
get_weather
snake_case
{param}
GET
POST
PUT
PATCH
DELETE
none
api-key
bearer
basic
oauth2
path
query
body
header
active
paused