Skip to content

Invalid JSON Schema: component_builder tool has array without items definition #116

@MadGraph

Description

@MadGraph

Bug Description

When using the Webflow MCP server with Factory Droid (and likely other MCP clients), the component_builder tool fails validation with:

Error: 400 Invalid schema for function 'webflow___component_builder': 
In context=('properties', 'actions', 'items', 'properties', 'component_schema', 'properties', 'slots', 'items', 'properties', 'children'), 
array schema missing items.

Root Cause

The JSON Schema for the component_builder tool has a children field of type array that is missing the required items property. According to JSON Schema specification, arrays must define their items schema.

Expected Schema Structure

{
  "children": {
    "type": "array",
    "items": { ... }  // <-- This is missing
  }
}

Impact

This causes the MCP server to fail initialization in any MCP client that performs strict JSON Schema validation. In Factory Droid Missions, this blocks the scrutiny/validation phase entirely.

Environment

Workaround

Users must remove/disable the Webflow MCP to proceed with their workflows.

Related

PR #106 fixed similar validation issues with Zod schema ordering - this may be another instance of the same pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions