Skip to main content
Glama
CTDO YTB MCP

CTDO YTB MCP

by thanhdo1110

yt_kb

Index YouTube video transcripts into a local hybrid RAG knowledge base and semantically search exact timestamped moments using SQLite FTS5 BM25 plus vector RRF.

Instructions

Local Hybrid RAG Knowledge Base (SQLite FTS5 BM25 + Vector RRF): index video transcripts and semantically search exact timestamped moments.

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": {
      "action": "<action>"
    },
    "name": "yt_kb"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoTranscript language when indexing
limitNoMax search hits (default 8)
queryNoSemantic/lexical query when action="search"
actionYes
formatNo
videosNoVideo IDs/URLs to index or remove
playlistNoOptional playlist ID/URL to batch-index

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses only the storage/retrieval mechanism (SQLite FTS5 BM25 + Vector RRF) and that the index is local. It says nothing about the destructive scope of remove and clear, whether indexing is idempotent or costs embedding calls, or where the data persists — all material for a tool whose enum includes irreversible actions.

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?

A single front-loaded sentence with the two primary actions first and the technical stack in parentheses; nothing is redundant. The stack detail is mildly wasteful for an agent that mainly needs action semantics, but it does convey that search is hybrid.

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?

Seven parameters, five distinct actions, no annotations, and no output schema is a high-complexity surface, and the description covers only two of the actions with no return-format or result-shape information. An agent would have to open the schema and guess at the behavior of list, remove, and clear.

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

Parameters2/5

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

With 71% schema coverage the schema already documents most fields, yet the description adds meaning for only 'query' and 'videos'/'lang' indirectly via 'index video transcripts' and 'semantically search'. It never explains the action enum values, the format choices, the playlist batch option, or what 'exact timestamped moments' means for result shape beyond a default limit.

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 names two concrete operations on a specific resource — indexing video transcripts and semantically searching timestamped moments in a local knowledge base — which clearly separates it from transcript-fetching or YouTube-side search siblings. It falls short of 5 because the enum's other three actions (list, remove, clear) are never surfaced, so the stated scope understates what the tool actually does.

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?

There is no explicit when-to-use guidance: nothing says to index before searching, when to prefer this over yt_search or yt_transcript, or what state must exist first. The index-then-search workflow is only weakly implied by the verb order, so the agent must infer both sequencing and alternatives.

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