Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Purge logs

tzcloud_purge_logs
Destructive

Erase every log entry and counter total for one application environment, or all environments if you pass none, before retention ends. It can clear log_capacity_reached. This cannot be undone. The control plane's own record stays. Container console output stays in the hosting provider's logs for up to thirty days, beyond any purge.

Destructive: needs a signed-in session or a token minted with destructive. Give approval_url to the account's owner for browser approval. Nothing is erased before it. Read read_approval_status to its end for the counts erased.

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

Input Schema

NameRequiredDescriptionDefault
request_idNoAny string you choose. A repeat from the same account while that pending action is live returns it again, creating no second one. Omitted, every call creates a new one.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentNoErase `development`, `production` or `local`; omitted or empty erases all. Other strings draw `invalid_request` before any approval request.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: it declares irreversibility, states that nothing is erased before browser approval, specifies what survives (the control plane's own record, and container console output for up to thirty days), and explains where to get the erased counts. This is exactly the operational context an agent needs before invoking a destructive tool.

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?

Front-loads what is erased and the irreversibility warning before the approval mechanics, which is the right ordering for a destructive tool. Slightly dense – the permission and approval details could be split more cleanly – but nearly every sentence carries distinct information.

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

Completeness5/5

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

For a destructive, no-output-schema tool, the description covers what is destroyed, what is preserved, irreversibility, authorization requirements, the approval handshake, and where to retrieve post-hoc results. Nothing an agent needs in order to call this safely is missing.

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 all three parameters are already documented in the schema, including the `environment` all-if-omitted behavior and the `request_id` replay semantics. The description restates the environment default but adds no new syntax or format detail, so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb (erase) and a specific resource (every log entry and counter total), plus the exact scope options (one application environment, or all if none is passed). It also names a concrete secondary outcome (`log_capacity_reached` cleared) that distinguishes this tool from a generic delete.

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 the triggering condition ('can clear `log_capacity_reached`') and the required authorization path (signed-in session or a token minted with `destructive`), plus the follow-up step (read `read_approval_status`). It does not explicitly contrast with the read sibling `tzcloud_read_logs`, so the agent must infer that reading is the non-destructive alternative.

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