Skip to main content
Glama

Build Vidleaf Deep-Reading Link

build_vidleaf_open_link
Read-onlyIdempotent

Normalize video links and mobile share snippets into Vidleaf reader URLs, domain-swap shortcuts, and Markdown citations offline.

Instructions

Offline-normalize any YouTube, Bilibili, Facebook, Douyin, Xiaohongshu, or X video link or mobile share snippet into a direct Vidleaf reader URL (https://vidleaf.app/open?url=...), domain-swap shortcut, and Markdown citation without making network requests. Use when generating clickable deep-reading links, AI chapter-summary handoffs (goal='summary'), or Obsidian/Notion citations. To fetch actual subtitle text, use read_video_transcript instead.

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": {
      "url": "<url>"
    },
    "name": "build_vidleaf_open_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesVideo URL, Bilibili BV/av ID, or pasted Douyin/Xiaohongshu/Bilibili mobile share text.
goalNoTarget reader view: 'transcript' for interactive captions or 'summary' for AI chapter outline.transcript
localeNoOptional Vidleaf interface locale (zh, zh-Hant, en, es, ja, pt-BR).
start_secondsNoOptional playback timestamp in seconds (`t=`) for YouTube and Bilibili links.

Output Schema

NameRequiredDescriptionDefault
open_urlYesDirect Vidleaf `/open` handoff URL.
platformYesDetected video platform.
extracted_urlYesCleaned video URL extracted from input.
domain_swap_urlYesAddress-bar domain-swap URL when supported, else null.
summary_open_urlYesDirect Vidleaf `/open?...&goal=summary` URL.
markdown_citationYesReady-to-paste Markdown citation block.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, and the description reinforces this with 'without making network requests', which is real behavioral context. It also enumerates the three return artifacts, but leaves unclear what the 'domain-swap shortcut' actually is and how unsupported or malformed links are handled.

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?

Front-loaded with the purpose in the first clause and terminated with a routing rule, no filler sentences. However, the first sentence is dense and stacks jargon such as 'domain-swap shortcut' without unpacking it, slightly hurting scanability.

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 values need no spelling out, and the description covers platforms, outputs, and sibling routing adequately for a 4-parameter tool. The remaining gap is edge-case behavior: what happens on unparseable input or with unsupported platforms, and what the domain-swap shortcut contains.

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 enum and default descriptions for goal and locale, so the schema does most of the work. The description adds meaning only for goal by tying 'summary' to AI chapter handoffs; locale and start_seconds get no extra explanation in the description, so this stays at the baseline.

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?

States a specific verb and resource ('Offline-normalize any YouTube, Bilibili, Facebook, Douyin, Xiaohongshu, or X video link') plus the concrete artifacts produced (reader URL, domain-swap shortcut, Markdown citation). It is clearly distinguishable from read_video_transcript, which it explicitly names as the tool for fetching subtitle text.

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

Usage Guidelines5/5

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

Gives explicit when-to-use contexts (clickable deep-reading links, AI chapter-summary handoffs with goal='summary', Obsidian/Notion citations) and an explicit when-not / alternative ('To fetch actual subtitle text, use read_video_transcript instead'). Nothing important is left to inference.

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