Skip to main content
Glama

transloadit_wait_for_assembly

Monitors Transloadit assembly processing until completion or timeout, providing status updates for media encoding and file conversion tasks.

Instructions

Polls until the Assembly completes or timeout is reached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assembly_urlNo
assembly_idNo
timeout_msNo
poll_interval_msNo

Implementation Reference

  • The handler implementation for the transloadit_wait_for_assembly tool.
    async ({ assembly_url, assembly_id, timeout_ms, poll_interval_ms }, extra) => {
      const access = resolveAssemblyAccess(options, extra, { assembly_url, assembly_id })
      if ('error' in access) return access.error
    
      const start = Date.now()
      const assembly = await access.client.awaitAssemblyCompletion(access.assemblyId, {
        timeout: timeout_ms,
        interval: poll_interval_ms,
        assemblyUrl: access.assemblyUrl,
      })
      const waited_ms = Date.now() - start
    
      return buildToolResponse({
        status: 'ok',
        assembly,
        waited_ms,
      })
  • Registration of the transloadit_wait_for_assembly tool.
    server.registerTool(
      'transloadit_wait_for_assembly',
      {
        title: 'Wait for Assembly completion',
        description: 'Polls until the Assembly completes or timeout is reached.',
        inputSchema: waitForAssemblyInputSchema,
        outputSchema: waitForAssemblyOutputSchema,
      },

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/transloadit/node-sdk'

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