Skip to main content
Glama

trash_get_profile

Retrieve a specific TRaSH Guides quality profile for Radarr or Sonarr, including custom format scores, quality settings, and implementation details.

Instructions

Get a specific TRaSH Guides quality profile with all custom format scores, quality settings, and implementation details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceYesWhich service
profileYesProfile name (e.g., 'remux-web-1080p', 'uhd-bluray-web', 'hd-bluray-web')

Implementation Reference

  • src/index.ts:770-788 (registration)
    Registration of the 'trash_get_profile' tool with its name, description, and input schema (service + profile name)
    {
      name: "trash_get_profile",
      description: "Get a specific TRaSH Guides quality profile with all custom format scores, quality settings, and implementation details",
      inputSchema: {
        type: "object" as const,
        properties: {
          service: {
            type: "string",
            enum: ["radarr", "sonarr"],
            description: "Which service",
          },
          profile: {
            type: "string",
            description: "Profile name (e.g., 'remux-web-1080p', 'uhd-bluray-web', 'hd-bluray-web')",
          },
        },
        required: ["service", "profile"],
      },
    },
  • Handler for 'trash_get_profile' tool call. Calls trashClient.getProfile(service, profileName) and returns the profile details including custom format scores, quality settings, etc.
    case "trash_get_profile": {
      const { service, profile: profileName } = args as { service: TrashService; profile: string };
      const profile = await trashClient.getProfile(service, profileName);
      if (!profile) {
        return {
          content: [{
            type: "text",
            text: JSON.stringify({
              error: `Profile '${profileName}' not found for ${service}`,
              hint: "Use trash_list_profiles to see available profiles",
            }, null, 2),
          }],
          isError: true,
        };
      }
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            name: profile.name,
            description: profile.trash_description?.replace(/<br>/g, '\n'),
            trash_id: profile.trash_id,
            upgradeAllowed: profile.upgradeAllowed,
            cutoff: profile.cutoff,
            minFormatScore: profile.minFormatScore,
            cutoffFormatScore: profile.cutoffFormatScore,
            language: profile.language,
            qualities: profile.items.map(i => ({
              name: i.name,
              allowed: i.allowed,
              items: i.items,
            })),
            customFormats: Object.entries(profile.formatItems || {}).map(([name, trashId]) => ({
              name,
              trash_id: trashId,
            })),
          }, null, 2),
        }],
      };
    }
  • Input schema for trash_get_profile: requires 'service' (radarr|sonarr) and 'profile' (string profile name)
      name: "trash_get_profile",
      description: "Get a specific TRaSH Guides quality profile with all custom format scores, quality settings, and implementation details",
      inputSchema: {
        type: "object" as const,
        properties: {
          service: {
            type: "string",
            enum: ["radarr", "sonarr"],
            description: "Which service",
          },
          profile: {
            type: "string",
            description: "Profile name (e.g., 'remux-web-1080p', 'uhd-bluray-web', 'hd-bluray-web')",
          },
        },
        required: ["service", "profile"],
      },
    },
  • The underlying helper method TrashClient.getProfile() that fetches profile JSON from TRaSH Guides GitHub repo and caches it
    async getProfile(service: TrashService, profileName: string): Promise<TrashQualityProfile | null> {
      const key = `${service}/${profileName}`;
      const cached = cache.getProfile(key);
      if (cached) return cached;
    
      try {
        const profile = await fetchJSON<TrashQualityProfile>(
          `${TRASH_BASE_URL}/${service}/quality-profiles/${profileName}.json`
        );
        cache.setProfile(key, profile);
        return profile;
      } catch {
        return null;
      }
    }
Behavior3/5

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

No annotations provided; description mentions it returns 'custom format scores, quality settings, and implementation details' but does not explicitly confirm it's a read-only operation or disclose any side effects, permissions, or rate limits.

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?

The description is a single sentence, front-loaded with the verb and resource, and contains no extraneous information.

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?

While no output schema exists, the description covers the key return elements: custom format scores, quality settings, and implementation details. It could be more detailed about response structure, but is fairly complete for a getter.

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% with descriptions; the description adds minimal extra meaning beyond the schema, such as referencing 'TRaSH Guides' context, but the examples in the schema already clarify usage.

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?

The description clearly states the verb 'Get' and the specific resource 'TRaSH Guides quality profile', distinguishing it from sibling tools like trash_list_profiles (which lists) and trash_compare_profile (which compares).

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?

The description implies usage when needing full details of a specific profile, contrasting with listing or comparing, but does not explicitly state when to use or exclude alternatives.

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