Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Read app logs

tzcloud_read_logs
Read-onlyIdempotent

Read your application's logs for one environment.

container is stdout/stderr. app is logging-package output. router keeps 5xx responses whole within its cap. tzcloud_read_status has failed paths in server_errors. all or no source merges stored sources and console by time. Recognized level, or field, filter, contains or until, excludes console from that read.

container gives invalid_request for local or serverless applications. Read pool for functions' console lines and failures, or omit source. On a server's container read, a recognized level or nonempty field gives invalid_request. It ignores until. It gives lines without entries. Waits need since. Without compute, kept failed-check lines can answer. An in-flight version, or an upload to a deploy target with no history, gives deploy_in_flight. Otherwise no compute gives never_deployed. Store reads with no version and nothing serving give never_deployed. local needs no deploy.

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_read_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldNoStructured field matched with `value`. Without `value`, any entry with the field. For a response's `x-request-id`, use `request_id` here, its header as `value`, and no `source`. This finds stored records, not console lines.
levelNoStore minimum: `debug`, `info`, `warn` or `error`. A recognized level gives `invalid_request` for `container` and excludes console lines from an all-source read. Other values are ignored.
limitNoNewest entries retained, from 1 to 1000; default 100.
sinceNoInclusive timestamp with a time zone: `YYYY-MM-DDTHH:mm[:ss[.fraction]]`, then `Z` or `±HH:mm`. Fraction has 1–9 digits, T/Z ignore case. Malformed gives `invalid_request`. Default open, except 24 hours back for a container environment's console.
untilNoInclusive end, with `since` syntax and validation. Default open.
valueNoJSON-typed equality with `field`, including null. Omitted matches any entry with the field.
filterNoConnections to hosts declared or undeclared in the manifest's `egress` at the read. Naming `source` selects its page: `egress` reads the proxy's records, `harness` connections made without the proxy. With no source, the returned page may hold neither.
sourceNo`container`: server stdout/stderr; serverless: `pool`. `app`: logging package. `egress`: outbound proxy. `harness`: runtime harness. `pool`: functions. `platform`, `router`. `all`/absent merges by time; `level` when recognized, or `field`, `filter`, `contains` or `until`, excludes console lines.
containsNoMessage text. On `container`, case-insensitive over the newest 1000 lines, with indented continuation lines, before `limit`.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentNoDefault production. `local` needs no deploy. Store reads with no version and nothing serving give `never_deployed`. Without compute, `container` may return kept failed-check lines or refuse `deploy_in_flight` or `never_deployed`; read the detail. `container` with `local` gives `invalid_request`.
wait_secondsNoWait for an entry, with `since`. For `container`, the console is followed for at most 40 seconds. Out of range gives `invalid_request`.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds substantial behavior: specific error codes (`invalid_request`, `deploy_in_flight`, `never_deployed`), the container-specific rule that `level`/`field` triggers `invalid_request`, that `until` is ignored, that waits require `since`, and the 40-second console follow cap. The disclosure is genuinely additive but written in compressed, allusive phrasing ('An in-flight version, or an upload to a deploy target with no history') that an agent may have to re-read.

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

Conciseness3/5

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

The first sentence front-loads the purpose, which is good, but the remainder is a dense, backtick-heavy block of telegraphic clauses with no structure for 12 parameters, and several rules duplicate the schema's `source`, `level`, and `environment` descriptions. It is not padded with pleasantries, but it is not economical either.

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 12-parameter tool with no output schema, the definition covers the failure modes, environment-dependent behavior, wait semantics, and source merging that an agent needs to call it correctly. Return-shape hints (`lines` without `entries`) are mentioned but never explained, leaving a small gap about what a successful response actually contains.

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 parameters are already fully documented; the description largely restates the same rules (the `level`-excludes-console rule and the `all` merge behavior appear nearly verbatim in the schema). It adds little syntax or default information not already present in the schema. Baseline 3 applies when the schema carries the weight.

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?

Opens with a specific verb and resource: 'Read your application's logs for one environment', then enumerates the log sources it spans. It also names a sibling, stating that failed paths live in `tzcloud_read_status`'s `server_errors`, so the agent can partially separate the two. It stops short of distinguishing this tool from other read siblings such as `tzcloud_read_export`, so it is clear but not fully differentiated.

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?

Gives concrete routing rules: use `container` for stdout/stderr, `app` for logging-package output, `pool` for functions, and 'read `pool` ... or omit `source`' when `container` would return `invalid_request`. It also redirects failure inspection to `tzcloud_read_status`. No explicit when-not-to-use-this-tool statement exists, keeping it below a 5.

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