Skip to main content
Glama

Get log file filename

sonarr_get_log_file_filename
Read-onlyIdempotent

Retrieve a Sonarr log file by filename so AI agents can inspect specific logs for troubleshooting.

Instructions

Get log file filename.

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

Input Schema

NameRequiredDescriptionDefault
filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.1

TDQS

D1.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so safety is covered externally. The description adds nothing beyond that — no statement of what the call returns, whether the filename must come from a prior listing, or how path traversal or missing files are handled.

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

Conciseness2/5

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

The single sentence is short but empty: it is under-specification rather than conciseness, since it spends its only clause repeating the tool name instead of front-loading any actionable detail.

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

Completeness1/5

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

With no output schema, zero parameter documentation, and an ambiguous contract (filename in vs. what out), the description leaves the agent unable to invoke this tool confidently. Nothing in the definition resolves the ambiguity the name creates.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single required parameter `filename`, and the description does not compensate at all — it never states the expected format (bare name, relative path, URL-encoded), where such a filename originates, or whether it is case- or extension-sensitive.

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

Purpose2/5

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

"Get log file filename" merely restates the tool name and title with no additional specificity. It does not clarify whether the result is a path string, a filename entry from a log listing, or file contents, and it gives no basis for choosing it over sonarr_get_log_file or sonarr_get_log_file_update_filename.

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

Usage Guidelines1/5

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

The description provides no when-to-use guidance, no prerequisites, and no mention of the closely named siblings (sonarr_get_log_file, sonarr_get_log_file_update_filename). An agent is left to guess the distinction from the name alone.

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