Call a maviapi endpoint
call_apiFetch live, structured JSON from endpoints for websites without direct APIs by passing an API slug, endpoint, and parameters; each successful request uses one maviapi credit.
Instructions
Fetch live, structured JSON from a website through a maviapi endpoint. api is the API slug (or domain), endpoint the endpoint name or path from get_api, and params its parameters, path parameters such as {id} included. List endpoints return 10 results unless you pass limit; page with offset. Each successful call uses one maviapi credit.
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": {
"api": "<api>",
"endpoint": "<endpoint>"
},
"name": "call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | Yes | API slug (e.g. "booking") or the site's domain. | |
| params | No | Endpoint parameters, as listed by get_api. | |
| endpoint | Yes | Endpoint name (e.g. "search") or path (e.g. "/search"). |