This document presents couple of the examples how could you use Spike’s MCP server to your benefit
curl -X POST "https://api.openai.com/v1/responses" \
-H "Authorization: Bearer <OPEN_AI_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "o4-mini",
"instructions": "<PREFERENCES>",
"input": "<REQUEST_PROMPT>",
"tools": [
{
"type": "mcp",
"server_label": "spike-health-data",
"server_url": "https://app-api.spikeapi.com/v3/mcp",
"headers": {
"Authorization": "Bearer <SPIKE_ACCESS_TOKEN>"
},
"server_description": "Health and fitness data analysis server providing daily and hourly statistics from connected wearables and health devices.",
"allowed_tools": ["query_statistics_daily"],
"require_approval": "never"
}
]
}'