Skip to content

Error when submitting an array in 'output' parameter #16

@petersonbasso

Description

@petersonbasso

MCP server throws error when output is an array

Hi,

I noticed that the MCP server currently throws an error when the output parameter is provided as an array (e.g., ["hostid", "name"]) instead of a single string. It seems that only a string value like "extend" is accepted.

This prevents users from specifying multiple fields to return in the response. It would be great if the MCP server could support an array for the output parameter, similar to the Zabbix API behavior.

Steps to reproduce

Call the MCP server endpoint with output as an array:

{
  "method": "host.get",
  "params": {
    "output": ["hostid", "name"]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions