Skip to main content
Glama
sonarr-mcp

sonarr-mcp

by OrellBuehler

get_log_file

Read-only

Downloads the contents of a specified Sonarr log file as text, enabling inspection of diagnostics after selecting a filename from the available logs.

Instructions

Download the contents of one log file as text.

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": {
      "filename": "<filename>"
    },
    "name": "get_log_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesLog file name from list_log_files, e.g. 'sonarr.txt'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / filename / pattern
      Added value: +"^(?!\\.+$)[\\w.-]+$"
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already declares the safety profile, so the bar is lower; the description adds that output is plain text, which is useful beyond the annotation. It says nothing about large-file behavior, truncation, or what happens if the filename is invalid, which matters for a download tool.

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

Conciseness5/5

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

A single front-loaded sentence with no redundant wording. Every clause contributes either the action, the scope, or the return format.

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 read-only tool with a fully documented schema and no output schema, the description covers the essentials. Minor gaps remain around failure modes and large-file handling, but nothing blocks correct invocation.

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 coverage is 100% and the schema already supplies the pattern and a concrete example ('sonarr.txt') plus the pointer to list_log_files, so the description adds no parameter meaning. Baseline 3 is appropriate when the schema carries the field semantics.

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 states a specific verb and resource ('Download the contents of one log file') plus the return format ('as text'), which separates it from the listing tool. It stops short of naming list_log_files explicitly, so the sibling distinction is only inferable from the word 'one'.

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

Usage Guidelines3/5

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

Usage is implied by 'download the contents' but there is no explicit when-to-use/when-not guidance or reference to alternatives. The only routing hint (get the filename from list_log_files) lives in the input schema's parameter description, not in this description.

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