Skip to main content
Glama

trash_get_quality_sizes

Retrieve TRaSH Guides recommended min, max, and preferred sizes for each quality level for Radarr or Sonarr, with optional content type (movie, anime, series).

Instructions

Get TRaSH Guides recommended min/max/preferred sizes for each quality level

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceYesWhich service
typeNoContent type: 'movie', 'anime' for Radarr; 'series', 'anime' for Sonarr

Implementation Reference

  • src/index.ts:828-846 (registration)
    Tool registration: defines the trash_get_quality_sizes tool name, description, and input schema in the TOOLS array. Requires 'service' (radarr/sonarr), optional 'type' parameter.
    {
      name: "trash_get_quality_sizes",
      description: "Get TRaSH Guides recommended min/max/preferred sizes for each quality level",
      inputSchema: {
        type: "object" as const,
        properties: {
          service: {
            type: "string",
            enum: ["radarr", "sonarr"],
            description: "Which service",
          },
          type: {
            type: "string",
            description: "Content type: 'movie', 'anime' for Radarr; 'series', 'anime' for Sonarr",
          },
        },
        required: ["service"],
      },
    },
  • Handler: receives service and optional type, calls trashClient.getQualitySizes(), formats the response with min/preferred/max sizes (converting special values 1999/2000 to 'unlimited').
    case "trash_get_quality_sizes": {
      const { service, type } = args as { service: TrashService; type?: string };
      const sizes = await trashClient.getQualitySizes(service, type);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            service,
            type: type || 'all',
            profiles: sizes.map(s => ({
              type: s.type,
              qualities: s.qualities.map(q => ({
                quality: q.quality,
                min: q.min + ' MB/min',
                preferred: q.preferred === 1999 ? 'unlimited' : q.preferred + ' MB/min',
                max: q.max === 2000 ? 'unlimited' : q.max + ' MB/min',
              })),
            })),
          }, null, 2),
        }],
      };
    }
  • Helper method in TrashClient: fetches quality size recommendations from TRaSH Guides GitHub repo. For Radarr fetches movie/anime, for Sonarr fetches series/anime. Uses cache, and filters by optional type parameter.
    async getQualitySizes(service: TrashService, type?: string): Promise<TrashQualitySize[]> {
      const sizeTypes = service === 'radarr'
        ? ['movie', 'anime']
        : ['series', 'anime'];
    
      const sizes: TrashQualitySize[] = [];
    
      for (const sizeType of sizeTypes) {
        const key = `${service}/${sizeType}`;
        let size = cache.getQualitySize(key);
    
        if (!size) {
          try {
            size = await fetchJSON<TrashQualitySize>(
              `${TRASH_BASE_URL}/${service}/quality-size/${sizeType}.json`
            );
            cache.setQualitySize(key, size);
          } catch {
            continue;
          }
        }
    
        if (!type || size.type === type) {
          sizes.push(size);
        }
      }
    
      return sizes;
    }
  • Type definition for the TrashQualitySize interface returned by the tool. Contains trash_id, type, and an array of quality entries with min/preferred/max size values.
    export interface TrashQualitySize {
      trash_id: string;
      type: string;
      qualities: Array<{
        quality: string;
        min: number;
        preferred: number;
        max: number;
      }>;
    }
Behavior2/5

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

No annotations provided, so description carries full burden. It only states what the tool gets, with no mention of side effects, idempotency, authorization needs, or response behavior. Fails to disclose default values or error cases.

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?

Single sentence, no wasted words. Front-loaded with action and resource. Could be slightly improved by adding a brief usage hint without increasing length significantly.

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

Completeness2/5

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

Given zero annotations and no output schema, the description should provide more context about return value format or default behavior. It is insufficient for an agent to fully understand what to expect.

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?

Input schema has 100% coverage with descriptions for both parameters. The description adds nothing beyond the schema's information, so baseline score of 3 is appropriate. No additional meaning or context provided.

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?

Description clearly states verb 'Get' and resource 'TRaSH Guides recommended min/max/preferred sizes for each quality level'. It distinguishes from sibling tools like trash_get_naming or trash_get_profile. However, it could be more explicit about what 'quality level' refers to.

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?

No guidance on when to use this tool over alternatives. The description does not provide context, exclusions, or mention of prerequisites, leaving the agent to infer from sibling tool names.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aplaceforallmystuff/mcp-arr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server