On Google ADK getting error when connecting to Shopify Storefront API

When we are connecting shopify storefront mcp server then we are getting following error on Google ADK.
Other MCP servers are working well getting only with the Shopify Storefront MCP Server.


google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {‘error’: {‘code’: 400, ‘message’: ‘* GenerateContentRequest.tools[0].function_declarations[2].parameters.properties[add_items].required: only allowed for OBJECT type\n* GenerateContentRequest.tools[0].function_declarations[2].parameters.properties[add_items].required[0]: property is not defined\n* GenerateContentRequest.tools[0].function_declarations[2].parameters.properties[update_items].required: only allowed for OBJECT type\n* GenerateContentRequest.tools[0].function_declarations[2].parameters.properties[update_items].required[0]: property is not defined\n* GenerateContentRequest.tools[0].function_declarations[2].parameters.properties[remove_line_ids].required: only allowed for OBJECT type\n* GenerateContentRequest.tools[0].function_declarations[2].parameters.properties[remove_line_ids].required[0]: property is not defined\n’, ‘status’: ‘INVALID_ARGUMENT’}}


To reproduce this error

pip install google-adk
adk create my_agent

Here you will need to give the GOOGLE_API_KEY key you can get this key from Google AI Studio.

In the agent.py paste the below code

from google.adk.agents.llm_agent import Agent
from datetime import datetime
import os

from google.adk.agents import Agent
from google.adk.tools import google_search
from google.adk.tools.agent_tool import AgentTool
from google.adk.tools.mcp_tool import MCPToolset, StreamableHTTPConnectionParams

mcp_tools = MCPToolset(
    connection_params=StreamableHTTPConnectionParams(
        url="https://shopchatmcp.myshopify.com/api/mcp",
    )
)

root_agent = Agent(
    model='gemini-2.5-flash',
    name='shopift_agent',
    description="You are an shopify agent which will help users with the shopify store experience.",
    instruction="You are having an bunch of tools from shopify. Please use them accordingly.",
    tools=[mcp_tools],
)

In the terminal run adk web
For details about how to run adk you can refer Google’s ADK Docs.

When you send the message its tries to connect to MCP server and given the error.

Here is the MCP Tools Json file for debugging