Skip to main content
Glama

Create Depth Map

create_depth_map

Turn a video into a DEPTH MAP: a grayscale video where brightness encodes distance, used as a motion reference so a new generated subject moves exactly like your source clip. Pass video_url (a public https video URL) OR one of your own Switch video ids (from list_my_videos or list_my_assets). For an external URL also pass duration_seconds (the clip length; your own Switch videos carry it automatically) because the render is billed per second of video. Returns a task_id right away; poll get_depth_map_status until the download URL is ready (usually a few minutes). If the render fails, your tokens are returned automatically.

Input Schema

NameRequiredDescriptionDefault
video_urlYesA public https video URL, OR one of your own Switch video ids.
duration_secondsNoClip length in seconds. Required for external URLs; your own Switch videos are measured automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover readOnly/destructive/openWorld hints; the description adds genuinely behavioral facts: asynchronous task_id return, std::poll workflow, typical few-minute latency, per-second billing, and automatic token refund on failure. That is exactly the context annotations cannot carry.

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?

Dense but front-loaded: the what/why comes first, then input rules, then the async/polling and billing consequences. Every sentence carries actionable information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description fully covers the return contract (task_id, poll get_depth_map_status, download URL, failure behavior). Nothing an agent needs to invoke and follow up correctly is missing.

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 already 100%, so the baseline is 3. The description restates the external-URL-vs-Switch-video distinction for duration_seconds that the schema description also makes, adding little new syntax or format detail beyond it.

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?

Names a specific verb+resource and defines the artifact itself ('a grayscale video where brightness encodes distance'), plus the downstream use case (motion reference for a generated subject). An agent can distinguish this from siblings like analyze_video or generate_video without opening the schema.

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?

Explains input options clearly (public https URL vs own Switch video id, sourced from list_my_videos/list_my_assets) and the duration_seconds rule for each path. It also routes the agent to get_depth_map_status for polling. It lacks an explicit 'when not to use this / use sibling X instead' statement, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources