Skip to content

Vector Store Question Answer Tool generates invalid schema in v2.6.3 - breaks OpenAI and Anthropic #25276

@AlphaBeez

Description

@AlphaBeez

Bug Description

The bug:
After upgrading from n8n v2.4.7 to v2.6.3, the Vector Store Question Answer Tool (toolVectorStore v1.1)
generates invalid tool schemas that both OpenAI and Anthropic APIs reject.

Error with OpenAI:
Invalid schema for function 'protocol_knowledge': schema must be a JSON Schema of 'type: "object"', got 'type:
"None"'.

Error with Anthropic:
tools.0.custom.input_schema.type: Field required

To Reproduce

To Reproduce:

  1. Create workflow with: Chat Trigger → AI Agent (v3.1) → OpenAI/Anthropic Chat Model
  2. Add Vector Store Question Answer Tool (v1.1) connected to AI Agent
  3. Connect PGVector Store (v1.3) + Embeddings + Chat Model to the Vector Store Tool
  4. Activate and send a message that triggers the tool

Expected behavior

Expected behavior:
Tool should generate valid JSON schema with type: "object" for function calling.

Workaround:
Downgrade to n8n v2.4.7 where it worked.

Environment:

  • n8n v2.6.3 (npm, self-hosted)
  • PostgreSQL
  • Node versions: toolVectorStore 1.1, agent 3.1, vectorStorePGVector 1.3

Debug Info

Debug info

core

  • n8nVersion: 2.6.3
  • platform: npm
  • nodeJsVersion: 24.13.0
  • nodeEnv: production
  • database: postgres
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)
  • consumerId: 70d2c345-ccff-4fc0-9ea2-0552f008b06a

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 720 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/605.1.15 (khtml, like gecko) version/26.2 safari/605.1.15
  • isTouchDevice: false

Generated at: 2026-02-04T04:32:32.663Z

Operating System

Ubuntu Linux 6.8.0-86-generic

n8n Version

2.6.3

Node.js Version

v24.13.0

Database

PostgreSQL

Execution mode

main (default)

Hosting

self hosted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions