CallWixSiteAPI
Call apis on site "Grafika" (https://www.grafikatbilisi.com/_api/mcp). Use this to perform an action on visitor's behalf, for example, query the site's data or book an appointment. Before calling this tool, you should ALWAYS check the rest docs (use "SearchSiteApiDocs" tool) for the specific API you want to call. The mentioned tool will give you instructions how to use the API.', 'NEVER try to guess the API or endpoint, ALWAYS check the docs using "SearchSiteApiDocs" tool. The url param should be taken from the "SearchSiteApiDocs" tool. It usually starts with "https://www.wixapis.com". Authentication: when the caller sent an access token in the Authorization header, this tool uses that token and you should omit "visitorToken". Otherwise pass "visitorToken" from the GenerateVisitorToken tool.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"method": "<method>"
},
"name": "CallWixSiteAPI"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The url of the api to call - ALWAYS get the information from the API docs retrieved using the 'SearchSiteApiDocs' tool or from the conversation context, the URL MUST BE ABSOLUTE URL. Usually it starts with 'https://www.wixapis.com'. | |
| body | No | A string representing of a valid JSON object to describe the body of the request | |
| method | Yes | The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE) | |
| visitorToken | No | Visitor access token. Omit it when the caller sent an access token in the Authorization header - that token is used instead. Otherwise: if you have a visitor token in your context, ALWAYS use it and do not create a new one; if you do not have one, use the GenerateVisitorToken tool to get it. |