Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Request a route

tzcloud_request_route
Read-onlyIdempotent

Request 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

NameRequiredDescriptionDefault
pathNoOne 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`.
methodNoDefault `GET`. Other methods use `tzcloud_write_route`.
routesNoOrdered 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.
headersNoNo 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_asNoHow 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.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentNoTarget 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_userNoTest 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_bytesNoDecoded 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_redirectsNoDefault true. False returns a same-host redirect with its status and `location`.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations it discloses real behavioral facts: omitted environment always means production regardless of deploy target, test_end_user mints a temporary session, bearer mode sends it as an Authorization header, and a 401 outside session-free paths may be the router's gate rather than a genuine auth failure. It also warns that a GET which mutates data still causes those effects, which usefully tempers the readOnlyHint/idempotentHint framing, though that caveat sits in mild tension with those hints rather than plainly contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the write-route fork are front-loaded, then defaults, session mechanics, and the side-effect caveat follow in a logical order with no filler. Some sentences are telegraphic to the point of being hard to parse on first read, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a ten-parameter tool with nested batch entries and no output schema, the description covers the risky parts: environment defaults, session provisioning, auth failure interpretation, and side effects. Return-shape details are correctly left to the schema, so remaining gaps are minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all ten parameters including the batch structure, header blocklist, and size caps; the baseline of 3 applies. The description reinforces a few cross-parameter rules (environment default, session_as requiring test_end_user) but adds little that the schema does not already state.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Request a deployed route with HTTP GET') and immediately distinguishes it from the write sibling ('using tzcloud_write_route for other methods'). The only softness is that 'route' is domain jargon for a deployed HTTP endpoint, which the description never unpacks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete selection condition ('if your shell cannot reach it') and an explicit exclusion routing non-GET methods to tzcloud_write_route. It does not cover other plausible alternatives a user might reach for (e.g. deploy/check tools), but the primary fork is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources