Skip to main content
Glama

Clear stored logs

clear_logs
DestructiveIdempotent

Permanently clear stored console logs and script errors for all clients or a single client, giving a clean slate so subsequent reads show only new output.

Instructions

Permanently delete the console logs and script errors that the bridge has stored, for all clients or only for one. The bridge keeps them in memory only, so a cleared entry cannot be recovered. Nothing else is touched: the Roblox console, snapshots, recipes and the game itself stay as they are. Use it to get a clean slate right before you reproduce a problem, so that get_logs, get_errors and wait_for_log only show new lines. Do not use it to hide old output you may still need: read it with get_logs or get_errors first. It does not need a running game, and clearing an empty store is harmless. Returns { cleared: true, client } where client is null when everything was cleared.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientNoOnly delete the entries of this client id, as listed by list_clients. Default: delete the entries of all clients.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.1
    • changedInput schema / properties / client / description
      Previous value: -"Only clear the entries of this client id (default: all)."New value: +"Only delete the entries of this client id, as listed by list_clients. Default: delete the entries of all clients."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known, yet the description adds real context: entries are in-memory only and therefore unrecoverable, no other state (console, snapshots, recipes, game) is affected, no running game is required, clearing an empty store is harmless, and the exact return shape is given. It never contradicts the annotations and materially reduces the chance of an unwanted destructive call.

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-loaded with the destructive action and its scope, then the irreversibility, then the exclusions and usage guidance. It runs five sentences, which is slightly long, but each one carries distinct information (what is deleted, what is not, when to use, prerequisites, return value), so there is no filler.

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 zero-required-parameter, single-optional-param mutation with no output schema, the description covers blast radius, recoverability, prerequisites (no running game), the harmless empty case, and the return shape. Nothing an agent needs before calling a destructive tool 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% and the single optional `client` parameter is fully documented in the schema, including its default, so the baseline is 3. The description restates the scope choice and adds the return value's `client: null` meaning, but contributes no syntax or edge-case detail about the parameter itself beyond what is already structured.

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?

Opens with a specific verb and resource: "Permanently delete the console logs and script errors that the bridge has stored," and immediately scopes it ("for all clients or only for one"). An agent can distinguish it from get_logs, get_errors and wait_for_log without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ("right before you reproduce a problem, so that get_logs, get_errors and wait_for_log only show new lines") and an explicit when-not-to-use ("Do not use it to hide old output you may still need: read it with get_logs or get_errors first"). It also names the sibling tools an agent should use instead, rather than leaving the alternative implicit.

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