Call an API endpoint
call_apiMake a live request to a dataandapis.com API with the user's API key (sent as X-Api-Key on this MCP connection). Give the API slug, the endpoint path from get_api (path parameters already filled in, e.g. '/v1/products/3017620422003'), optional query parameters and, for POST, a JSON body. Most calls cost 1 token.
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": {
"slug": "<slug>",
"path": "<path>"
},
"name": "call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST endpoints. | |
| path | Yes | Endpoint path such as '/v1/screen'. A leading '/v1' is added when missing. | |
| slug | Yes | ||
| query | No | Query parameters. | |
| method | No | GET |