Skip to main content
Glama

Wait for Assembly completion

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorsNo
statusYes
assemblyNo
warningsNo
waited_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,
      },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions polling and timeout behavior, which is useful, but lacks details on error handling, what happens upon completion (e.g., returns assembly data or just status), rate limits, or authentication needs. This leaves significant gaps for a tool that involves network operations and potential timeouts.

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?

The description is a single, efficient sentence that front-loads the core action ('Polls') and outcome ('until the Assembly completes or timeout is reached'). There is no wasted verbiage, making it highly concise and well-structured for quick understanding.

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

Completeness3/5

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

Given the tool's complexity (polling with timeout), lack of annotations, and 0% schema coverage, the description is incomplete—it misses key behavioral and parameter details. However, the presence of an output schema mitigates some need to explain return values. Overall, it provides a basic overview but lacks depth for safe and effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 for undocumented parameters. It only references 'timeout' generically, without explaining the four parameters (assembly_url, assembly_id, timeout_ms, poll_interval_ms) or their relationships (e.g., whether assembly_url or assembly_id is required). This fails to add meaningful semantics beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Polls') and the goal ('until the Assembly completes or timeout is reached'), making the purpose understandable. It distinguishes from siblings like 'transloadit_get_assembly_status' by emphasizing polling behavior rather than a one-time status check. However, it could be more specific about what 'completes' entails (e.g., success, failure, or both).

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

Usage Guidelines3/5

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

The description implies usage when waiting for assembly completion is needed, but it doesn't explicitly state when to use this tool versus alternatives like 'transloadit_get_assembly_status' for immediate status checks or 'transloadit_create_assembly' for initiating assemblies. No exclusions or prerequisites are mentioned, leaving usage context somewhat vague.

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

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