Skip to main content
Glama
vidhook
by vidhook

Validate a render and estimate credits

validate

Validate a movie definition to preview credit cost and catch errors before rendering. Returns estimated credits and reports errors for invalid inputs.

Instructions

Validate a Movie definition (and optional webhook) WITHOUT starting a render or consuming any credits, and return the estimated credit cost. Use this to preview cost and catch errors before calling render. estimatedCredits equals the credits render would reserve for the same body. Invalid Movies or SSRF-rejected webhook URLs are returned as errors (HTTP 400) from the API. Authentication and watermarking are set by the VIDHOOK_API_KEY environment variable only (never a tool argument): vh_test_… renders a free/watermarked draft, vh_live_… renders clean/paid. The target environment is selected independently by VIDHOOK_API_BASE_URL (base URL), not by the key type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
movieYesMovie definition (json2video-compatible). resolution/scenes/elements etc. All asset references (video/image/audio src) must be URLs — vidhook does not generate assets; compose them on the agent side. Validated by the vidhook API.
webhookNoOptional completion-notification webhook (alongside the Movie fields).
Behavior4/5

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

Discloses that no credits are consumed, no render started, and that errors are returned for invalid movies or webhooks. Mentions authentication and environment variable dependencies. Lacks detail on the exact response structure (e.g., if only estimatedCredits is returned), but overall well-covered for a validation tool with no annotations.

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 a single paragraph of four sentences, front-loaded with the core purpose. Includes necessary details on authentication and error handling without excessive verbosity. Could be slightly more structured, but efficient.

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 role as a pre-render validation, the description covers when to use, what it does, authentication, and error handling. No output schema exists, so lack of response detail is acceptable. Sufficient for an agent to use correctly.

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 100%, and the description adds valuable context: asset references must be URLs and the agent must compose assets. The webhook parameter's purpose as a completion notification is clarified, adding beyond the schema's basic property descriptions.

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 clearly states the tool validates a Movie definition, estimates credits without consuming them, and distinguishes from 'render' (which starts a render) and 'get_status' (status retrieval). The verb 'validate' and resource 'Movie definition' are specific.

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?

Explicitly advises to 'use this to preview cost and catch errors before calling render.' Also explains that authentication is via environment variables, guiding correct usage. Clear when-to-use and what not to expect (no render start).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vidhook/vidhook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server