Call a deployed endpoint for real
call_endpointSends a real HTTP request to a deployed endpoint and reports status, content type, and body to verify the live URL, path, method, and API key work.
Instructions
Makes a REAL HTTP request to a deployed endpoint — the same request a browser or a customer makes — and reports the status, content type and body. This is the ONLY check that goes through the live URL: the deployment, the path, the allowed verbs and the API key are all exercised, and none of them are visible to test_block or execute_workspace, which talk to the sandbox directly. Run it as the last step of anything with a URL in it, and FIRST when a page's own calls are failing: a 404 here means nothing is deployed at that path (setting endpointPath on a block publishes nothing — deploy_endpoint does), while a 500 means the block behind it threw. Name the domain and the path; the URL is built from that domain's own baseUrl, so there is no address to pass and no way to test a URL that is not the one your users were given. The request really runs the block and counts as one API call.
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": {
"domainId": "<domainId>",
"path": "<path>"
},
"name": "call_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Raw body, as a string. Sent as application/json unless you set a Content-Type header. | |
| path | Yes | The deployed path, e.g. "api/orders". Empty string is the domain root. | |
| query | No | ||
| apiKey | No | Only for an endpoint deployed with isAnonymous:false — mint one with create_domain_api_key. Sent as a bearer token. | |
| method | No | GET (default), POST, PUT, PATCH, DELETE or HEAD. | |
| headers | No | ||
| domainId | Yes | The domain's id — from list_domains. |