Integration Failure: MCP Client Tool Triggers 400 Bad Request with Google Vertex AI
An n8n user reports a 400 Bad Request when attaching an MCP Client Tool to a Vertex AI chat model - though the same OAuth credentials work in other workflows. The error suggests a schema or tooling incompatibility between n8n's MCP tool invocation and Vertex's expected request shape, but n8n's UI doesn't surface the full Google error for diagnosis.
Likely root causes. The failure pattern - successful auth elsewhere but a 400 when the MCP Client is used as a tool - points to a schema mismatch or malformed request payload when n8n translates the MCP tool call into Vertex Chat API parameters. Vertex Chat models (including gemini-2.5-flash) expect tool definitions and invocation payloads in a precise structure; small differences in content-type, field names, or nested JSON shapes will trigger a 400. Region or model-specific constraints and missing required fields (e.g., tool metadata, input schema) are also common culprits.
Business and operational impact. For teams relying on low-code automation (n8n) to orchestrate recruiting systems like Zoho via MCP, this breaks agent-driven workflows, delaying automation rollouts and increasing manual work. Lack of actionable error messages from n8n amplifies mean-time-to-resolution and forces engineering time to trace raw HTTP traffic.
What leaders and engineers should do now. Triage immediately by enabling debug/http logging in n8n or routing calls through a proxy (e.g., an internal API gateway or mitm proxy) to capture the raw request/response. Compare the MCP tool payload against Vertex's expected schema (tools API docs) and look for missing/extra fields, header mismatches, or encoding issues. If inspection is blocked, reproduce with a minimal script calling Vertex directly to isolate the n8n layer. File detailed issues with n8n and Google with sanitized request snippets; include model, region, and exact payloads.
Mitigations and longer-term fixes. Temporarily implement a small wrapper service that adapts n8n's MCP payload to Vertex's schema if fixes aren't immediate. Push for improved error surfacing in n8n and add integration tests in CI for tool-based agent workflows. For enterprise deployments, require observability (request logging, structured errors) on all middleware connecting to third-party LLM APIs.
Original Source
n8n Community
