Skip to main content
Glama

create_video_from_xhs

Convert a Xiaohongshu post URL into a vertical 9:16 video with background music and optional style annotations for TikTok/Reels.

Instructions

Create a short video from a Xiaohongshu post.

Downloads images from the XHS post, adds background music, and generates a vertical (9:16) video suitable for TikTok/Reels.

Args: url: Xiaohongshu post URL (supports various formats including share links) bgm: BGM file name from bgm folder, or "random" to pick randomly. Set to "none" to create video without music. duration_per_image: How many seconds each image should be displayed (default: 3) style_prompt: Natural-language style instructions for image annotation. Example: 在第一张图里把"马云"蓝色高亮并红笔圈出来

Returns: A dict containing: - video_path: Full path to the generated video file - images_count: Number of images in the video - duration: Total video duration in seconds - bgm_used: Name of the BGM file used (or null if none) - title: Title of the original XHS post - style_report: Style parsing/OCR diagnostics (or null when not used)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bgmNorandom
urlYes
style_promptNo
duration_per_imageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool downloads images, adds background music, and generates a video, and it describes the return dict fields including style_report diagnostics. It doesn't mention potential side effects like network access, file creation locations, or failure modes, but for a content-generation tool the described behavior is reasonably transparent.

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?

The description is well-structured with a short summary, an Args section, and a Returns section. It is front-loaded with the core purpose. The only minor issue is that the Returns section is somewhat verbose, but it is useful for an agent to know what to expect. Overall, every sentence earns its place.

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?

Given the tool's complexity (4 params, no output schema, no annotations), the description covers the main aspects: what it does, how to use each parameter, and what it returns. It lacks explicit error-handling or edge-case guidance (e.g., what happens if the URL is invalid or images fail to download), but for a typical agent invocation it is sufficiently complete.

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 description coverage is 0%, so the description must compensate. It does: it explains url formats, bgm options ('random', 'none', or a file name), duration_per_image default, and style_prompt with a concrete example. This adds substantial meaning beyond the bare schema. It could be slightly stronger by clarifying the exact format of style_prompt or the expected language, but the example helps.

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 ('create'), a specific resource ('short video from a Xiaohongshu post'), and the output format (vertical 9:16 for TikTok/Reels). It clearly distinguishes this from sibling tools like list_bgm_files and get_video_config, which are about listing/configuring rather than generating.

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?

The description explains the core workflow (downloads images, adds BGM, generates video) and gives practical parameter guidance (e.g., 'random' for BGM, 'none' for no music). It doesn't explicitly state when to use this tool versus siblings, but the purpose is so distinct that the usage context is clear. It could be improved by noting prerequisites like needing a valid XHS URL or BGM files existing.

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