Skip to main content
Glama

Youtarr Api Keys

youtarr_api_keys

Manage Youtarr API keys: list, create, update policy or channel grants, regenerate, and revoke keys through an operation-based tool.

Instructions

api keys operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.

  • youtarr_list_api_keys(): List API key metadata without raw key values; requires a full session.

  • youtarr_create_api_key(name, role=None, policy=None, channel_ids=None): WRITE: Create a download, status_read, or constrained external key; the raw key is shown once.

  • youtarr_update_api_key_policy(key_id, policy): WRITE: Replace a constrained external API key's policy.

  • youtarr_get_api_key_channels(key_id): Read the exact channel grants for an active constrained external API key.

  • youtarr_replace_api_key_channels(key_id, channel_ids): WRITE: Replace an external API key's exact channel grant set.

  • youtarr_replace_api_key_external_access(key_id, policy, channel_ids): WRITE: Atomically replace a constrained key's policy and channel grants.

  • youtarr_regenerate_api_key(key_id): WRITE: Regenerate an API key; the new raw key is shown once.

  • youtarr_revoke_api_key(key_id): DESTRUCTIVE: Revoke an API key while retaining its audit record.

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": {
      "operation": "<operation>"
    },
    "name": "youtarr_api_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the safety burden and does so well: it flags WRITE and DESTRUCTIVE operations, warns that raw keys are shown only once on create and regenerate, notes revoke retains the audit record, and states list requires a full session. It omits permission/role requirements for non-list operations, whether revoke is reversible, and error behavior.

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?

One lead sentence establishes the contract, followed by a scannable bullet per operation with the operation name matching the enum exactly, so mapping arguments to operations is trivial. The WRITE/DESTRUCTIVE prefixes and the 'shown once' warnings are load-bearing rather than filler.

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?

An output schema exists, so return-value explanation is rightly omitted, and the description covers operation selection plus parameter names for all eight branches. The remaining shortfall is structural detail for the untyped `arguments` payload (policy and channel_ids shapes) and prerequisites beyond the list operation's session requirement.

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

Parameters4/5

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

Schema coverage is 0% and the `arguments` object is untyped (`additionalProperties: true`), so the description must compensate, and it does by enumerating each operation's parameter names and adding meaning: role choices (download, status_read, constrained external), that policy belongs to constrained external keys, and that channel_ids is an exact grant set. The gap is that it never states the shape or type of policy, channel_ids, or key_id, which matters given the untyped arguments bag.

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 first line names the resource domain (API keys on Youtarr) and the dispatcher contract, then enumerates eight specific operations each with a verb+object (list, create, update policy, get channels, replace channels, replace external access, regenerate, revoke). An agent can tell instantly that this tool is the API-key surface and not auth, config, jobs, or media_servers.

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 the calling convention ('Pass operation and an arguments dict matching that operation's parameters') and gives selection cues between near-duplicate operations, notably 'Atomically replace' for youtarr_replace_api_key_external_access versus the two narrower replace operations. It does not give explicit when-not guidance (e.g. update policy vs regenerate vs revoke, or what to do when a key is already revoked), which keeps it below a 5.

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