cURL
curl --request POST \ --url https://api.globalwebindex.com/v1/spark-api/mcp \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": "req-123", "method": "tools/call", "params": { "name": "chat_gwi", "arguments": { "prompt": "What marketing channels work best for Audi drivers in the US?" } } } '
{ "jsonrpc": "2.0", "id": "<string>", "result": { "content": [ { "type": "text", "text": "<string>" } ], "isError": true } }
This endpoint handles both MCP tools through JSON-RPC:
1. chat_gwi - Query audience insights
2. explore_insight_gwi - Get detailed statistics
Format: Bearer YOUR_TOKEN
JSON-RPC request for either chat_gwi or explore_insight_gwi tool
JSON-RPC version
2.0
Unique request identifier
"req-123"
Method name for MCP tool calls
tools/call
Show child attributes
Successful response with insights
Request identifier echoed back
Was this page helpful?