Skip to content

gemini 2.5pro issue with certain mcp tools #32429

@pattenyang

Description

@pattenyang

Summary

Error interacting with language model
failed to stream completion
error during streamGenerateContent, status code: 400, body:

{
  "error": {
    "code": 400,
    "message": "Invalid JSON payload received. Unknown name \"type\" at 'tools[0].function_declarations[35].parameters.properties[1].value.items': Proto field is not repeating, cannot start list.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "field": "tools[0].function_declarations[35].parameters.properties[1].value.items",
            "description": "Invalid JSON payload received. Unknown name \"type\" at 'tools[0].function_declarations[35].parameters.properties[1].value.items': Proto field is not repeating, cannot start list."
          }
        ]
      }
    ]
  }
}

Zed Version and System Specs

Zed: v0.189.5 (Zed)
OS: macOS 15.4.1
Memory: 32 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresarea:ai/mcpModel Context Protocolfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagemeta:easy repro stepsSteps to reproduce are easypriority:P2Average run-of-the-mill bugsstate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions