Skip to main content
Glama
NemoN

Tvheadend MCP

by NemoN

tvh_map_services

Destructive

Maps explicit Tvheadend service UUIDs to channels through the native service mapper; use dry-run previews and status monitoring to validate the mapping.

Instructions

Start Tvheadend's native service-to-channel mapper for explicit service UUIDs.

Optional fields: encrypted, merge_same_name, check_availability, type_tags, etc. Uses service/mapper/save, which starts the mapper; there is no mapper/start API. Empty selection is rejected. Monitor mapper_status and list_channels afterwards.

Input Schema

NameRequiredDescriptionDefault
dry_runNo
optionsNo
service_uuidsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already disclose that this is destructive, non-read-only, non-idempotent, and open-world. The description adds useful behavioral context by noting the underlying service/mapper/save endpoint, the absence of a mapper/start API, empty-selection rejection, and recommended post-call monitoring.

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 front-loaded, compact, and structured around purpose, implementation detail, validation behavior, and follow-up monitoring. Every sentence provides actionable information without excessive verbosity.

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?

The tool has annotations and an output schema, reducing the description's burden for safety and return-value documentation. The description covers the main operational flow and post-call monitoring, though it could more fully explain the options object and dry_run behavior.

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 0%, so the description must carry parameter meaning. It explains service_uuids as explicit service UUIDs and lists several options fields, but it omits dry_run entirely and uses 'etc.' rather than fully documenting the options object.

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 states a specific verb and resource: starting Tvheadend's native service-to-channel mapper for explicit service UUIDs. This is clear enough to distinguish it from sibling tools such as tvh_mapper_status, tvh_stop_mapper, and tvh_list_services.

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

Usage Guidelines4/5

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

It explains that the tool is for explicit service UUIDs, that empty selections are rejected, and that mapper_status and list_channels should be monitored afterwards. It does not explicitly compare itself with alternatives like tvh_assign_services, but the operational context is clear.

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