Skip to main content
Glama

transloadit_lint_assembly_instructions

Validate Transloadit assembly instructions to identify errors before execution, returning structured issue reports for correction.

Instructions

Lint Assembly Instructions without creating an Assembly. Returns structured issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instructionsYes
strictNo
return_fixedNo

Implementation Reference

  • The tool handler for 'transloadit_lint_assembly_instructions' which uses createLintClient and processes the result.
    async ({ instructions, strict, return_fixed }) => {
      const client = createLintClient(options)
      const assemblyInstructions =
        instructions as LintAssemblyInstructionsInput['assemblyInstructions']
      const result = await client.lintAssemblyInstructions({
        assemblyInstructions,
        fix: return_fixed ?? false,
        fatal: strict ? 'warning' : 'error',
      })
    
      const payload: Record<string, unknown> = {
        status: result.success ? 'ok' : 'error',
        linting_issues: toLintIssues(result.issues),
      }
    
      if (return_fixed && result.fixedInstructions) {
        payload.normalized_instructions = safeJsonParse(result.fixedInstructions)
      }
    
      return buildToolResponse(payload)
  • The registration of 'transloadit_lint_assembly_instructions' in the McpServer instance.
    server.registerTool(
      'transloadit_lint_assembly_instructions',
      {
        title: 'Lint Assembly Instructions',
        description:
          'Lint Assembly Instructions without creating an Assembly. Returns structured issues.',
        inputSchema: lintAssemblyInputSchema,
        outputSchema: lintAssemblyOutputSchema,
      },

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