Skip to main content
Glama

Search And Add Show

search_and_add_show

Find TV shows from natural-language descriptions and optionally add the matching series to Sonarr.

Instructions

Search for TV shows using natural language description and optionally add to Sonarr.

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": {
      "description": "<description>"
    },
    "name": "search_and_add_show"
  }
}

Input Schema

NameRequiredDescriptionDefault
auto_addNoIf True and only one result found, automatically add to Sonarr
descriptionYesNatural language description of the TV show (e.g., "British time travel show with the Doctor")

Output Schema

NameRequiredDescriptionDefault
resultsYes
auto_add_resultNo
auto_add_requestedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.2.2
    • addedInput schema / properties / auto_add / description
      Added value: +"If True and only one result found, automatically add to Sonarr"
    • addedInput schema / properties / description / description
      Added value: +"Natural language description of the TV show\n(e.g., \"British time travel show with the Doctor\")"
    • addedOutput schema / properties / auto_add_requested
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / auto_add_result
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "media_id": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "success": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "success",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "items": {
      -    "properties": {
      -      "media_type": {
      -        "type": "string"
      -      },
      -      "overview": {
      -        "type": "string"
      -      },
      -      "poster_path": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "tmdb_id": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "tvdb_id": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "year": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "overview",
      -      "media_type"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / results
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "media_type": {
      +        "type": "string"
      +      },
      +      "overview": {
      +        "type": "string"
      +      },
      +      "poster_path": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "tmdb_id": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "tvdb_id": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "year": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "overview",
      +      "media_type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "results",
      +  "auto_add_requested"
      +]
    • removedOutput schema / x-fastmcp-wrap-result
      Removed value: -true
  2. Changed10 schema fields changedv0.1.1
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / auto_add / title
      Removed value: -"Auto Add"
    • removedInput schema / properties / description / title
      Removed value: -"Description"
    • removedOutput schema / $defs
      Removed value: -{
      -  "MediaSearchResult": {
      -    "properties": {
      -      "media_type": {
      -        "title": "Media Type",
      -        "type": "string"
      -      },
      -      "overview": {
      -        "title": "Overview",
      -        "type": "string"
      -      },
      -      "poster_path": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Poster Path"
      -      },
      -      "title": {
      -        "title": "Title",
      -        "type": "string"
      -      },
      -      "tmdb_id": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Tmdb Id"
      -      },
      -      "tvdb_id": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Tvdb Id"
      -      },
      -      "year": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Year"
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "overview",
      -      "media_type"
      -    ],
      -    "title": "MediaSearchResult",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / result / items / $ref
      Removed value: -"#/$defs/MediaSearchResult"
    • addedOutput schema / properties / result / items / properties
      Added value: +{
      +  "media_type": {
      +    "type": "string"
      +  },
      +  "overview": {
      +    "type": "string"
      +  },
      +  "poster_path": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "title": {
      +    "type": "string"
      +  },
      +  "tmdb_id": {
      +    "anyOf": [
      +      {
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "tvdb_id": {
      +    "anyOf": [
      +      {
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "year": {
      +    "anyOf": [
      +      {
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  }
      +}
    • addedOutput schema / properties / result / items / required
      Added value: +[
      +  "title",
      +  "overview",
      +  "media_type"
      +]
    • addedOutput schema / properties / result / items / type
      Added value: +"object"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"_WrappedResult"
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

readOnlyHint=false already tells the agent this can mutate, and the description confirms the add-to-Sonarr side effect. It adds no detail on what happens with multiple matches, whether anything is added without the flag, or what permissions/config the Sonarr add requires — a meaningful gap for a tool that writes.

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?

One front-loaded sentence with no filler; the search action comes first and the optional mutation second. It is efficient, though the terseness leaves the behavioral questions above unaddressed.

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

Completeness3/5

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

With only two parameters and an output schema present, return values need not be explained. But for a mutation-capable tool with thin annotations, the definition should clarify the multi-result path and when the add actually fires, which the schema only partially covers via auto_add.

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 explains auto_add's 'only one result' condition and gives a natural-language example for description. The description merely restates the natural-language phrasing and the optional add, adding essentially nothing beyond the structured fields, so baseline 3 applies.

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 gives a specific verb and resource ('Search for TV shows') plus a secondary mutation ('optionally add to Sonarr'), which separates it from add_show_by_tvdb_id (adds by ID rather than searching). It does not name that sibling explicitly, but the search-by-description framing makes the distinction inferable.

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?

'using natural language description' implies this is the path when you lack a TVDB ID, and 'optionally add' signals a two-stage use. However, there is no explicit statement of when to prefer this over add_show_by_tvdb_id, nor any prerequisite or exclusion guidance.

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