Request a route
tzcloud_request_routeRequest a deployed route with HTTP GET if your shell cannot reach it, using tzcloud_write_route for other methods.
Omitted environment always selects production, regardless of the deploy target. test_end_user supplies a temporary session. session_as bearer sends it as a bearer token. Without a session, a 401 on invited or workforce routes outside session-free paths may be the router's gate.
A GET that changes data still has those effects.
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": {
"application": "<application>"
},
"name": "tzcloud_request_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | One request uses `path`, a batch uses `routes`. Paths start with one `/` and may include a query. Leading `//`, spaces and control characters are refused `invalid_request`. | |
| method | No | Default `GET`. Other methods use `tzcloud_write_route`. | |
| routes | No | Ordered batch. `max_body_bytes` and `test_end_user` stay at the top level; one sign-in serves the list. No top-level `method`, `path`, `headers` or `follow_redirects`. Each entry counts toward 60 shared requests per clock minute. Response body per entry: 12 KiB; list: 60 s. | |
| headers | No | No line breaks. Refused `invalid_request`: `accept-encoding`, `host`, `content-length`, hop headers, and `x-forwarded-`, `x-azure-`, `x-fd-`, `x-envoy-`, `x-k8se-`, `x-ms-containerapp-`, `x-turnzero-cloud-` except `x-turnzero-cloud-client`, or `x-app-cloud-`. | |
| session_as | No | How to send the test user's session: `cookie` by default, or `bearer` as `Authorization: Bearer` with no cookie. Needs `test_end_user`; with `bearer`, omit your own `authorization` header. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| environment | No | Target environment. Default production, regardless of deploy target. Requesting `development` before it is created is refused `environment_not_created`; an environment without a serving version is refused `never_deployed`. | |
| test_end_user | No | Test user's id or label for a temporary session, under `tzcloud_sign_in_test_end_user`'s rules. Needs `environment`; omit `cookie`. Use `session_as` `bearer` for a bearer-only route. | |
| max_body_bytes | No | Decoded response bytes returned. It only lowers the cap: 64 KiB for one request, 12 KiB per batch entry. Zero returns status and headers alone. | |
| follow_redirects | No | Default true. False returns a same-host redirect with its status and `location`. |