Skip to main content
Glama

Delete system logs

bazarr_delete_system_logs
DestructiveIdempotent

Force Bazarr system log rotation and create a new log file through Arr Mcp. Use it to clear current system logs when troubleshooting or managing log storage.

Instructions

Force log rotation and create a new log file

DELETE /api/system/logs

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": "bazarr_delete_system_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false, so the safety profile is covered. The description does add one piece of real value beyond them — that old log content is rotated out and a fresh log file created, rather than the logging subsystem being disabled — but it says nothing about irreversibility, disk/permission effects, or the confirmation requirement handled by the `confirm` parameter.

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?

Two short lines, effect first and endpoint second, with no filler. The endpoint line is mildly redundant with the tool name but is useful for an agent reasoning about the API surface.

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 one-parameter destructive tool with full annotation coverage and no output schema, the description gives the essential effect plus the HTTP endpoint. The remaining gap is guidance on when this should be invoked versus reading or backing up logs first, which is a usage rather than a completeness failure.

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?

The single `confirm` parameter is fully documented in the schema (100% coverage, including when it is needed), so the schema carries the semantics. The description adds nothing about confirmation behavior, leaving it at the baseline for high-coverage schemas.

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?

States a concrete effect: 'Force log rotation and create a new log file', plus the underlying DELETE /api/system/logs endpoint. That is a specific verb-plus-resource pair an agent can match to a log-management intent, though the phrasing ('rotation') differs from the tool name ('delete'), so the agent must reconcile that the destructive removal happens implicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as bazarr_get_system_logs for reading logs before clearing them. The agent must infer the use case entirely from the name and endpoint.

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

Deploy Server

Other Tools